httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Khrustalev <d...@bog.msu.su>
Subject Re: on large numbers of virtual hosts and memory use
Date Sun, 19 Oct 1997 01:33:55 GMT
On Sat, 18 Oct 1997, Marc Slemko wrote:
> On Sat, 18 Oct 1997, Dmitry Khrustalev wrote:
> 
> > 
> > Walking pconf in standalone_main before starting daemons and doing
> > mprotect(.., PROT_READ) on each memory block should help.
> 
> I'm not convinced that will change anything because a process may change
> the protection back to read/write at any time, so the kernel (on systems
> that really like reserving swap space) will reserve it anyway.

Indeed. what's strange, solaris does not really like reserving swap space
- if you do not touch allocated memory, it would not reserve anything. 

mmap(MAP_PRIVATE|MAP_NORESERVE) work.

	-Dima

> 


Mime
View raw message