Tuesday, December 18, 2007

Solaris 10 Kernel parameters with Dtrace

#!/usr/sbin/dtrace -qs
BEGIN
{
/*
header code coming
strings
*/
printf( "%12s %12s %12s\n", "Processes", "Threads", "Freemem" );
}
tick-3sec
{
/*
updating info lines coming
kvals in decimal numbers and free memory in bytes
*/
printf( "%12d %12d %12d\n", `nproc,`nthread,`freemem*8 );
}

0 comments: