I have a multi-user system, where active users should get a fair share of the available memory.
Can I set up Linux to kill a process of the user with the highest total memory consumption?
This will happen when the system is out of memory. I suppose the largest of this user's processes should be killed.
I don't want to set memory limits on users, since their number varies and because there would be wasted memory if most of the users are not working. Killing the largest process would work, but it should be per user. Otherwise one user might spawn many small processes and cause another user's medium process to be killed.