[Wine] Is there a way to force wine to use more memory?

Ove Kaaven ovek at arcticnet.no
Thu Jun 26 19:01:02 CDT 2008


magmp skrev:
> Hello. I've noticed that some games(like Witcher) need more ram to use. Problem is that I've got 4gb (3,5) but after playing a while wine is crashing when memory riches 1,6 or 1,7 GB. Obviously  when you change some settings to low it runs longer, but some games just look great with full settings on(like Witcher:)  ) What I want to ask is that : Is there a way to force wine with some registry entry or with a patch to force wine to use 3GB or more of my RAM. Thanks for any answer on subject.

No, this is a limitation of the default 32-bit address space layout used 
by Windows. For compatibility reasons, Windows only reserves 2GB for 
user space. (Many (older) games *will* crash with a larger space.) 
However, some Windows executables may be designed for a 3GB space. These 
have a special flag set in the .exe file's PE header.

Perhaps there's some utility out there that would allow you to edit the 
.exe file to set that flag, but if the app isn't designed to be run like 
that, it might cause more problems than it solves.

If the app is leaking memory, perhaps it'd be better to figure out why, 
and if it's a Wine problem, file a bug...



More information about the wine-users mailing list