ulimit memory
I was trying to get The Beginners Guide to work but couldn't. While checking out the launchit.sh (which seams to be named differently for different games). I noticed

ulimit -n 2048

The default is 1024 I don't know why they increase it. Anyway to add to that also to all games add a

ulimit -v 6000000

This will limit memory. I would say the limit should be

max(totalMemory*.90, totalMemory-1GB)

Once a game starts eating up that much memory it will probably be unusable anyway so better for it to crash. This will also prevent thrashing conditions. Realistically a game would not reach these limits unless there is a bug and this is just a preventative measure.
Last edited by Ben refactorial; Dec 1, 2015 @ 5:29pm
Date Posted: Dec 1, 2015 @ 5:28pm
Posts: 0