Re: how to list the current HZ value?

2009-08-05 Thread Mulyadi Santosa
Hi... On 8/2/09, Greg KH wrote: > The following C program should properly show you the kernel HZ. > > thanks, > > greg k-h > > -- > > #include > #include > #include > > int main() > { > struct timespec res; > double resolution; > > printf("UserHZ %ld\n", sysconf

Re: how to list the current HZ value?

2009-08-03 Thread Greg KH
On Tue, Aug 04, 2009 at 09:42:41AM +0800, Pei Lin wrote: > 2009/8/2 Greg KH : > > On Sat, Aug 01, 2009 at 03:36:21PM -0400, Robert P. J. Day wrote: > >> On Sat, 1 Aug 2009, Greg KH wrote: > >> > >> > On Fri, Jul 31, 2009 at 11:23:15AM +0700, Mulyadi Santosa wrote: > >> > > On Fri, Jul 31, 2009 at 6

Re: how to list the current HZ value?

2009-08-03 Thread Pei Lin
2009/8/2 Greg KH : > On Sat, Aug 01, 2009 at 03:36:21PM -0400, Robert P. J. Day wrote: >> On Sat, 1 Aug 2009, Greg KH wrote: >> >> > On Fri, Jul 31, 2009 at 11:23:15AM +0700, Mulyadi Santosa wrote: >> > > On Fri, Jul 31, 2009 at 6:52 AM, Karel Zak wrote: >> > > It seems that user space sees HZ as 1

Re: how to list the current HZ value?

2009-08-01 Thread Greg KH
On Sat, Aug 01, 2009 at 03:36:21PM -0400, Robert P. J. Day wrote: > On Sat, 1 Aug 2009, Greg KH wrote: > > > On Fri, Jul 31, 2009 at 11:23:15AM +0700, Mulyadi Santosa wrote: > > > On Fri, Jul 31, 2009 at 6:52 AM, Karel Zak wrote: > > > It seems that user space sees HZ as 100, while in fact my curr

Re: how to list the current HZ value?

2009-08-01 Thread Robert P. J. Day
On Sat, 1 Aug 2009, Greg KH wrote: > The following C program should properly show you the kernel HZ. > > thanks, > > greg k-h > > -- > > #include > #include > #include > > int main() > { > struct timespec res; > double resolution; > > printf("UserHZ %ld\n", sysco

Re: how to list the current HZ value?

2009-08-01 Thread Robert P. J. Day
On Sat, 1 Aug 2009, Greg KH wrote: > On Fri, Jul 31, 2009 at 11:23:15AM +0700, Mulyadi Santosa wrote: > > On Fri, Jul 31, 2009 at 6:52 AM, Karel Zak wrote: > > >  Linux exports HZ to userspace via AT_CLKTCK auxiliary vector entry, > > >  for more details see include/linux/auxvec.h. > > > > > >  Th

Re: how to list the current HZ value?

2009-08-01 Thread Greg KH
On Fri, Jul 31, 2009 at 11:23:15AM +0700, Mulyadi Santosa wrote: > On Fri, Jul 31, 2009 at 6:52 AM, Karel Zak wrote: > >  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

Re: how to list the current HZ value?

2009-07-31 Thread Mulyadi Santosa
On Fri, Jul 31, 2009 at 6:52 AM, Karel Zak wrote: >  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. > >    K

Re: how to list the current HZ value?

2009-07-30 Thread Karel Zak
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_CL

Re: how to list the current HZ value?

2009-07-29 Thread Jeffrey Cao
On 2009-07-29, Mulyadi Santosa wrote: > On Wed, Jul 29, 2009 at 10:06 PM, 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 un

RE: how to list the current HZ value?

2009-07-29 Thread Adrian Cornish
-Original Message- From: Robert P. J. Day [mailto:rpj...@crashcourse.ca] > nope. on an x86 system, all that tells me is the *default* tick > rate, not the *actual* one. So guessing this isnt the c program you were going to use #include #include int main(int argc, char *argv[]) {

RE: how to list the current HZ value?

2009-07-29 Thread Robert P. J. Day
On Wed, 29 Jul 2009, Adrian Cornish wrote: > How about > grep -w HZ /usr/include/asm/param.h nope. on an x86 system, all that tells me is the *default* tick rate, not the *actual* one. rday -- Robert P. J. Day

RE: how to list the current HZ value?

2009-07-29 Thread Adrian Cornish
How about grep -w HZ /usr/include/asm/param.h -Original Message- From: kernelnewbies-bou...@nl.linux.org [mailto:kernelnewbies-bou...@nl.linux.org] On Behalf Of Robert P. J. Day Sent: Wednesday, July 29, 2009 9:07 AM To: Kernel Newbies Subject: how to list the current HZ value

Re: how to list the current HZ value?

2009-07-29 Thread Fawad Shahid Lateef
Hello, On Wed, Jul 29, 2009 at 5:26 PM, SandeepKsinha wrote: > > On Wed, Jul 29, 2009 at 9:43 PM, Robert P. J. Day > wrote: > > On Wed, 29 Jul 2009, Belisko Marek wrote: > > > >> Hi, > >> > >> On Wed, Jul 29, 2009 at 5:06 PM, Robert P. J. Day > >> wrote: > >> > > >> >  almost certainly about to

Re: how to list the current HZ value?

2009-07-29 Thread Mulyadi Santosa
On Wed, Jul 29, 2009 at 10:06 PM, 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? I forgot which kernel confi

Re: how to list the current HZ value?

2009-07-29 Thread Robert P. J. Day
On Wed, 29 Jul 2009, Belisko Marek wrote: > Hi, > > On Wed, Jul 29, 2009 at 5:06 PM, 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

Re: how to list the current HZ value?

2009-07-29 Thread SandeepKsinha
On Wed, Jul 29, 2009 at 9:43 PM, Robert P. J. Day wrote: > On Wed, 29 Jul 2009, Belisko Marek wrote: > >> Hi, >> >> On Wed, Jul 29, 2009 at 5:06 PM, Robert P. J. Day >> wrote: >> > >> >  almost certainly about to embarrass myself with this question, but >> > is there a quick way to list the curren

Re: how to list the current HZ value?

2009-07-29 Thread Belisko Marek
On Wed, Jul 29, 2009 at 6:13 PM, Robert P. J. Day wrote: > On Wed, 29 Jul 2009, Belisko Marek wrote: > >> Hi, >> >> On Wed, Jul 29, 2009 at 5:06 PM, Robert P. J. Day >> wrote: >> > >> >  almost certainly about to embarrass myself with this question, but >> > is there a quick way to list the curren

Re: how to list the current HZ value?

2009-07-29 Thread Belisko Marek
Hi, On Wed, Jul 29, 2009 at 5:06 PM, 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? In case you have in /pro

Re: how to list the current HZ value?

2009-07-29 Thread SandeepKsinha
Robert, On Wed, Jul 29, 2009 at 8:36 PM, 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? > Did you try /proc/

how to list the current HZ value?

2009-07-29 Thread Robert P. J. Day
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? rday -- Robert P.