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