Subject: Re: sysctl HW_PAGESIZE
To: Alfred Perlstein <bright@mu.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: tech-perform
Date: 02/23/2002 21:38:30
> Afaik several arches allow for variable page sizes, not just 4k vs 4meg
> pages either, something like 4, 8 and 16k pages I've _heard_ for ia64,
> it's possible that a system administrator (if the OS allowed it) would
> want larger pages on large memory machines or smaller pages on small
> memory machines, therefore doing at compile time isn't a really good
> idea.  It might make sense to somehow hand that info over to the process
> during exec() somehow, a lame way would be to use the environment space
> but I'm sure there's more clever ways of doing something like that.

Ok, it was just a stupid question. :o)
It seems we are moving toward an uniform dynamic ELF system, then it
makes sense to get the value from the ELF auxiliary table and fallback
to the system call if it does not work. 

Using an environemement variable means you will have an environement
variable name that could conflict with a user variable name, dosn't it?

-- 
Emmanuel Dreyfus.  
Hiroshima 45. Tchernobyl 86. Windows 95. 
manu@netbsd.org