Ulimit user session to prevent full freeze
Asked by
EricDHH
Question for 12.04: Howto limit memory and cpu to around 80% to prevent a machine from complete freeze. Cause you can throw the laptop to the wall, when it is on the swapway to hell for 30min until the guilty application will be killed by kernel. Off course there is no bugfix available since weeks and there is no session without this happening.
Where to place the ulimit command, cause i read on many places that ubuntu has disabled it in several manner. The complete xorg session should get a limit in memory exhaustion, to prevent running in the swapway to hell and protection rom crazy applications. Lots of googling shows very old ideas from ubuntu predecessors that will not work anymore, caused by changes. What is the 12.04 way for ulimit?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu procps Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- EricDHH
- Solved:
- Last query:
- Last reply:
To post a message you must log in.