lpi1:ressourcenverwaltung
Inhaltsverzeichnis
Zugriff auf Ressourcen beschränken
ulimit
Softlimit für CPU-Zeit setzen
ulimit -S -t 5
testen
gzip < /dev/zero > /dev/null
Softlimit für CPU-Zeit aufheben
ulimit -S -t unlimited
Hardlimit für CPU-Zeit setzen
ulimit -t 5
pam_limits
/etc/security/limits.conf :
Anzahl logins
testuser - maxlogins 2
testen
ssh testuser@localhost
3 x wiederholen
CPU Zeit, RAM, offene Dateien und mehr
testuser - cpu 1 testuser soft nproc 10 testuser hard nproc 15 testuser - priority 5
testen
ps -p $$ -o pid,user,nice,cmd
ulimit -a
forkbomb(){ forkbomb | forkbomb & }; forkbomb
oder kurz
:(){ :|:& };:
Dateizugriffsrechte
siehe Dateirechte
Plattenplatz
siehe quota
CPU Auswahl
Stichwort: taskset
Disk IO
Stichwort: ( ab Kernel 2.6.13 mit CFQ io scheduler )
ionice
/usr/src/linux/Documentation/block/ioprio.txt
Links
lpi1/ressourcenverwaltung.txt · Zuletzt geändert: 2013/10/11 11:12 von ingo_wichmann
