Date: Mon, 30 Mar 2009 16:22:33 +0000 (GMT) From: Wenji Wu <wenji@fnal.gov> To: Kris Kennaway <kris@FreeBSD.org> Cc: freebsd-current@freebsd.org Subject: Re: LOCK_PROFILING does not work on FreeBSD 8.0-CURRENT Message-ID: <fb3cf94118893.49d0f1c9@fnal.gov> In-Reply-To: <49D0070D.2060905@FreeBSD.org> References: <C5F55E20.2D99%wenji@fnal.gov> <49D0046C.8020909@FreeBSD.org> <49D0070D.2060905@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Kris, I beleive something is wrong with FreeBSD 8.0's configuration or compiling. I just made "LOCK_PROFILING" work in my system. Here is my procedures, (1) $ uname -a FreeBSD wan-koi.fnal.gov 8.0-CURRENT FreeBSD 8.0-CURRENT #11: Mon Mar 30 14:17:49 UTC 2009 root@wan-koi.fnal.gov:/usr/obj/usr/src/sys/wenjikernel amd64 (2) go to "/usr/obj/usr/src/sys/wenjikernel", then run "vi config.c", and check "OPTIONS LOCK_PROFILING" is included. (3) go to "/usr/src", run "make buildkernel KERNCONF=wenjikernel", "make installkernel KERNCONF=wenjikernel", "reboot" (4) run "sysctl -a|grep lock", NO "LOCK_PROFILING" capability! (5) go to "/usr/obj/usr/src/sys/wenjikernel", then run "vi config.c", comment out ""#ifdef INCLUDE_CONFIG_FILE" (6) go to "/usr/src", run "make buildkernel KERNCONF=wenjikernel", "make installkernel KERNCONF=wenjikernel", "reboot" (7) run "sysctl -a|grep lock", NO "LOCK_PROFILING" capability! (8) $ uname -a FreeBSD wan-koi.fnal.gov 8.0-CURRENT FreeBSD 8.0-CURRENT #11: Mon Mar 30 14:17:49 UTC 2009 root@wan-koi.fnal.gov:/usr/obj/usr/src/sys/GENERIC amd64 please note here: "GENERIC", I was actually compiling and installing with "wenjikenrel". I do not know why it automatically goes with "GENERIC" (9) go to "/usr/src/sys/amd64/conf", add "OPTIONS LOCK_PROFILING" to GENERIC (10) go to "/usr/src", run "make buildkernel KERNCONF=wenjikernel", "make installkernel KERNCONF=wenjikernel", "reboot" (11) "uname -a" $ uname -a FreeBSD wan-koi.fnal.gov 8.0-CURRENT FreeBSD 8.0-CURRENT #11: Mon Mar 30 14:17:49 UTC 2009 root@wan-koi.fnal.gov:/usr/obj/usr/src/sys/wenjikernel amd64 (12) run "sysctl -a|grep lock|grep debug" $ sysctl -a|grep lock|grep debug debug.acpi.reset_clock: 1 debug.rwlock.loops: 10000 debug.rwlock.retry: 10 debug.to_avg_lockcalls: 11 debug.lock.prof.enable: 0 debug.lock.prof.reset: 0 debug.lock.prof.stats: debug.lock.prof.rejected: 0 debug.lock.prof.skipcount: 0 debug.lock.prof.skipspin: 0 Now you see, "LOCK_PROFILING" works now! I just repeat the procedures, So, something is wrong with the configuration and compling! wenji
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fb3cf94118893.49d0f1c9>