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
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
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
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
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
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
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
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
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
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
-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[])
{
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
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
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
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
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
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
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
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
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/
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.
21 matches
Mail list logo