lkml.org 
[lkml]   [2004]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: finding out the value of HZ from userspace
Andi Kleen wrote:
>>These programs could (and should) use sysconfig(_SC_CLK_TCK) to find out
>>how many ticks there are in a second so this does not constitute a good
>>reason for USER_HZ not being equal to HZ.
>
>
> These programs are usually shell scripts that initialise some sysctls.

Which ones? Top and ps don't appear to be scripts on my system (Red Hat
9.0).

> It's not easy to call sysconf from there.

A small utility program would suffice.

> Also we tend to avoid breaking
> things that would fail silently instead of failing with an obvious error
> message. This would be such a case. Silent breakage is an extremly bad
> thing.

This is the responsibility of the authors of the programs in question
not the kernel.

Peter
--
Dr Peter Williams, Chief Scientist peterw@aurema.com
Aurema Pty Limited Tel:+61 2 9698 2322
PO Box 305, Strawberry Hills NSW 2012, Australia Fax:+61 2 9699 9174
79 Myrtle Street, Chippendale NSW 2008, Australia http://www.aurema.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:1.082 / U:2.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site