On Tuesday 01 July 2003 22:52, Meir Michanie wrote: > in the file /etc/security/limits.conf you can setup: > "cpu - max CPU time (MIN)" or "nproc - max number of processes" I do not > know if when a proccess reach this limit is killed or suspended. anyway cpu
When the user maxes out his "max number of processes", subsequent fork()s would fail. As to "max CPU time", here's a simple experiment: $ ulimit -t 2 $ cat /dev/zero > /dev/null Killed > How can I limit the percentage of CPU for a regular user? A better approach would be: how do I make the system divide CPU time equally between users rather than between processes? > If the proccess that is limited jump to the execution to system level (like > writing to hdd) will still hang the PC. Shouldn't happen. Make sure your hard drive and CDROM use the optimal settings; especially 32-bit transfers and DMA. Use the 'hdparm' utility to tune your IDE device settings. ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
