Problem with virtual memory rlimits

Alexandre Julliard julliard at
Fri Feb 24 11:55:14 CST 2006

Marcus Meissner <meissner at> writes:

> If you limit the virtual memory size using "ulimit -v 1400000" for
> instance, wine will only crash.
> The problem is, that VIRTUAL_alloc_teb() tries to allocate a memory
> area within the acceptable userspace ... but it does so much mmap()s
> that it runs out of available mmap space before.
> I was only able to reproduce this on AMD64 machines up to now, 
> which pass out memory starting from 0xf7fffffff somewhere.
> Any clue how to solve this?

I don't think you can. We are using MAP_NORESERVE, which could be
argued should not count against the limit, but if it does then we need
a limit high enough to reserve everything above 0x80000000.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list