Skip to contentSkip to conversation

limit cpu

DISCUSSION Eduardo Cortés 3 participants 3 messages Aug 16, 2001 – Aug 17, 2001

lore
Share & tools
lore
#0 lore raw

hi,
i want to know if linux can limit the max cpu usage (not cpu time) per user, like freebsd login classes. I see /etc/security/limits.conf and ulimit from bash, but they limit the max cpu time, not de max cpu usage (%cpu). Thanks.

#1 lore raw
Quoted 4 lines · Eduardo Cortés

hi,
i want to know if linux can limit the max cpu usage (not cpu time) per user, like freebsd login classes. I see /etc/security/limits.conf and ulimit from bash, but they limit the max cpu time, not de max cpu usage (%cpu).

There are a couple of patches:

http://www.cs.umass.edu/~lass/software/qlinux/
http://fairsched.sourceforge.net/
http://www.surriel.com/patches/2.3/2.3.99-3-schedpatch5

Wes Felter
System Software Department
IBM Austin Research Lab
11400 Burnet Rd., Austin, TX 78758
Tel 512-838-7933

#2 lore raw
Quoted 5 lines · Wes Felter
Quoted 3 lines · Eduardo Cortés

i want to know if linux can limit the max cpu usage (not cpu time) per user, like freebsd login classes. I see /etc/security/limits.conf and ulimit from bash, but they limit the max cpu time, not de max cpu usage (%cpu).

There are a couple of patches:

A quick summary below, maybe somebody wants to work on this issue,

Quoted 1 line

http://www.cs.umass.edu/~lass/software/qlinux/

Last modified: Thu Jul 1 14:52:41 EDT 1999
it patches neither 2.2.19 nor 2.4.9 (or other recent kernels)

Quoted 1 line

http://fairsched.sourceforge.net/

Last updated on 11 July 2000
it patches neither 2.2.19 nor 2.4.9 (or other recent kernels)

Quoted 1 line

http://www.surriel.com/patches/2.3/2.3.99-3-schedpatch5

Last modified: Tue Apr 4 15:43:40 2000
it patches neither 2.2.19 nor 2.4.9 (or other recent kernels)

Eduardo, as it was mentioned before, you can "mimic" CPU usage limitation using the 'priority' item in /etc/security/limits.conf that's basically sets the nice(1) values. It made some people happy.

Szaka