Friday, August 31, 2012

Kernel lock profiling on FreeBSD

Ensure that the kernel was compiled with

options  LOCK_PROFILING

To start lock profiling

sh# sysctl debug.lock.prof.enable=1

To stop lock profiling

sh# sysctl debug.lock.prof.enable=0

To display the statistics

sh# sysctl debug.lock.prof.stats

To reset the stats

sh# sysctl debug.lock.prof.reset =1

man LOCK_PROFILING for more options and to understand the output of the stats

Remove any compiler optimization flags (-O2 etc) to get the correct file and line numbers in the output

Solaris 11 Destkop installation

Simple step to install a desktop (Gnome) on Solaris 11 As root run the following command # pkg install solaris-desktop If the download ...