I'm using Centos5 for operating server and the machine has limited memory. There are many users using the server and some of them are running programs which use a lot of RAM.
When I check the used memory using top, both the RAM and the Swap are occupied by only a small number of users. So, I would likely to enforce a memory usage limit for each user.
How can I enforce such a limitation?