Re: how to list the current HZ value?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 29, 2009 at 11:06:54AM -0400, Robert P. J. Day wrote:
> 
>   almost certainly about to embarrass myself with this question, but
> is there a quick way to list the current HZ value for the running
> kernel?  without writing a C program.  something under /proc, perhaps?

   sysconf(_SC_CLK_TCK)

 Linux exports HZ to userspace via AT_CLKTCK auxiliary vector entry,
 for more details see include/linux/auxvec.h.
 
 The vector is area between process's environ[] and argv[]. I guess glibc 
 reads the vector for the sysconf() call.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux