lkml.org 
[lkml]   [1998]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch] jiffies wraparound [Re: 2.1.125 Show stopper list: Draft]
From
Date
In article <Pine.LNX.3.96.981022230121.23982E-100000@penguin.transmeta.com>,
Linus Torvalds <torvalds@transmeta.com> writes:

> A kernel that exports internal knowledge is a BAD kernel. And I will
> continue to refuse to make bad decisions like a sysctl() interface to HZ.

It already happened: most of the /proc/sys/net/ipv4/route* sysctls are in
jiffies. Also if I understood correctly the idea behind POSIX
sysconf(_CLK_TCK) is to give the application some minimum idea about the
to be expected granuality from timers for realtime purposes. How well this
works in practice I don't know, but I could imagine that it is useful to have
at least a rough idea at runtime of how much of the tv_usec field of struct
timerval is a lie.

if (sysconf(_CLK_TCK) < 500) {
printf("Sorry, you kernel is too slow for me\n");
exit(1);
}

For soft RT apps it makes sense to recompile the kernel with a higher HZ,
and it would be nice if it wasn't required to recompile glibc too @)

-Andi

> -

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

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