I have a program that I want to use but it's very old and measures RAM in Kilobytes. It won't start because it complains that it can't run with less than 5000K RAM (even though I have vastly more). How do I limit the amount of RAM that WINE sees / tells the programs about?
I'm not sure if this will work, but I found a script here that limits the memory of a process.
The script is as follows:
You'll have to install
cgmanager
(sudo apt-get install cgmanager
), but it's little more than half of a megabyte.It's possible WINE (or the executable) will detect all the RAM you have, despite the limit, in which case this will most likely fail. If that happens, you can always delete the script and then uninstall
cgmanager
with a quicksudo apt-get autoremove --purge cgmanager
.