Re: sysconf (was Re: RLIM_INFINITY inconsistency between archs)

From: H. Peter Anvin (
Date: Tue Aug 01 2000 - 11:19:23 EST

David Woodhouse wrote:
> said:
> > I don't think we want to do this! IMO, HZ should not get exported to
> > user space *AT ALL*. Instead, for the few interfaces that need it,
> > we'll export a "user space HZ" (USER_HZ) which is fixed. No need for
> > a kernel hack. When we support nonstandard values for HZ, we need to
> > fix the few interfaces that actually export jiffies values to convert
> > from "user jiffies" to real jiffies.
> No. Why do the arithmetic in the kernel when we could just export the raw
> data, with full accuracy, and let user-space sort it out?

Because HZ may be different from kernel to kernel, or even runtime changeable.

> User-space may want to know the value of HZ for other reasons anyway.
> if (HZ < 1000) {
> perror("You must hack your kernel to improve scheduling latency");
> exit(1);
> }

GACK!!! Save us from such user-space idiocy!


<> at work, <> in private!
"Unix gives you enough rope to shoot yourself in the foot."

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Aug 07 2000 - 21:00:06 EST