PE stack trick not working on lowmem machines

Marcus Meissner meissner at suse.de
Wed Nov 26 06:41:03 CST 2003


On Mon, Nov 24, 2003 at 12:38:34PM -0800, WINE wrote:
> Marcus Meissner <meissner at suse.de> writes:
> 
> > So ld.so really wants to get 20xMB memory but fails.
> >
> > -> Not good on low memory machines.
> 
> Hmmm I would have expected it to overcommit that memory. Do you have
> memory limits set?

No. But the SuSE 8.2 has a "overcommit" sysctl, which is default off.
In this case at least the SuSE kernel uses a heuristic on left over
memory to chek mmap()s. And it limits it at this amount of memory apparently.
If I do
	echo -n 1 >/proc/sys/vm/overcommit_memory
it works again.
 
Ciao, Marcus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20031126/9da7b212/attachment.pgp


More information about the wine-devel mailing list