Re: how to list the current HZ value?

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

 



Hello,

On Wed, Jul 29, 2009 at 5:26 PM, SandeepKsinha <sandeepksinha@xxxxxxxxx> wrote:
>
> On Wed, Jul 29, 2009 at 9:43 PM, Robert P. J. Day<rpjday@xxxxxxxxxxxxxx> wrote:
> > On Wed, 29 Jul 2009, Belisko Marek wrote:
> >
> >> Hi,
> >>
> >> On Wed, Jul 29, 2009 at 5:06 PM, Robert P. J. Day<rpjday@xxxxxxxxxxxxxx> 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?
> >> In case you have in /proc/config.gz file existing:
> >> cat /proc/config.gz | gzip -d | grep CONFIG_HZ should give you all configs.
> >> For my kernel is HZ=250.
> >>  # CONFIG_HZ_100 is not set
> >> CONFIG_HZ_250=y
> >> # CONFIG_HZ_300 is not set
> >> # CONFIG_HZ_1000 is not set
> >> CONFIG_HZ=250
> >
> >  i'd rather find a way that doesn't involve /proc/config.gz.  is
> > there any other way?
> >
>
> Will /proc/cpuinfo not help ?

Here HZ is not referring to CPU frequency, in kernel HZ refers to
number of timer ticks per second which is configurable during kernel
compilation (in .config) and its value effects system performance.

And /proc/cpuinfo gives information regarding CPU only.


>
> ~Sandeep.
>
> > rday
> > --
> >
> > ========================================================================
> > Robert P. J. Day                               Waterloo, Ontario, CANADA
> >
> >        Linux Consulting, Training and Annoying Kernel Pedantry.
> >
> > Web page:                                          http://crashcourse.ca
> > Twitter:                                       http://twitter.com/rpjday
> > "Kernel Newbie Corner" column @ linux.com:          http://cli.gs/WG6WYX
> > ========================================================================
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> Please read the FAQ at http://kernelnewbies.org/FAQ
>



--
Fawad Lateef

--
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