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

From: volodya@mindspring.com
Date: Fri Jul 28 2000 - 15:12:36 EST


On Fri, 28 Jul 2000, Linus Torvalds wrote:

>
> If glibc _really_ really doesn't like the fact that Linux has a constant
> NGROUPS, then create a stupid configuration file in /etc/sysconf, and have
> some bootup entity recomupte the constants every time. Then, the magic
> sysctl() call ends up being reading that sysconf file, and it allows
> sysadmins etc to even edit it (or, because it is probably better off being
> a binary file, edit the file generator) if they want to artificially
> report other values.

And perhaps that configuration file should be generated during kernel
compile, much like System.map file is.

> Read my lips: if it doesn't change value during the running of the
> machine, it should not be a system call. Getting the maximum amount of
> memory (_SC_PHYS_PAGES) is another example of where asking for a system
> call is _stupid_. Same goes for __SC_PAGESIZE - even if it will change in
> future kernels (possible), it will NOT change dynamically. You can have a
> config file.

I was under impression that the amount of physical memory is already
readable in /proc/meminfo .

                                 Vladimir Dergachev

-
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/



This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:28 EST