Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: CPU


  • Subject: Re: lug-bg: CPU
  • From: pavel@xxxxxxxxxxxxx (Pavel Cholakov)
  • Date: Sat, 19 Feb 2000 02:39:54 +0200



On Fri, Feb 18, 2000 at 04:30:05PM +0200, Theodor Milkov wrote:
] > > Ima li nachin da se ogranichat dostupnite % CPU za
] > > daden user, 
] > > da rechem 50%, pyk ako shte v tjah da vlizat 10
] > > protsesa - nice ne
] > > vyrshi dobra rabota v sluchaja.
] 
] > Mai niama. Izobshto ima edin takav kusur v UNIX -
] > vseki user proces moje da iziade sichkia resurs
] > kato se forkva ili zaema pamet.
] 
] 	ulimit [-SHacdfmstpnuv [limit]]
] 
]         -t     the maximum amount of cpu time in seconds
] 
] 	Ako go slojish v /etc/profile i si sus bash da rechem...
] 
] 	Loshoto obache e che usera moje sam da si promenia limitite...

Ima nachin - polzwajte PAM. Ako se nastroi prawilno s hard limits oshte login
procesa shte ogranichi usera - i toj ne move da go promenq.

#        - core - limits the core file size (KB)
#        - data - max data size (KB)
#        - fsize - maximum filesize (KB)
#        - memlock - max locked-in-memory address space (KB)
#        - nofile - max number of open files
#        - rss - max resident set size (KB)
#        - stack - max stack size (KB)
#        - cpu - max CPU time (MIN)
#        - nproc - max number of processes
#        - as - address space limit
#        - maxlogins - max number of logins for this user
#        - priority - the priority to run user process with

(quote ot /etc/security/limits.conf, Debian Potato).
Movesh da restrict-nesh max broj procesi na userite, a s renice winagi movesh
da mu gi swalish do prakticheski spreli. Na praktika overhead ima pri mnogo
procesi, koito intenziwno polzwat CPU-to. Ako te sa samo nqkolko obache,
nqma golqm problem da gi kill-nesh, renice-nesh ili kakwoto ti dusha iska :-)
(primerno slay e gotino). btw w 2.2.15 shte ima preraboten task scheduler,
kojto se ochakwa da raboti po-dobre pri wisok load i mnogo procesi.
==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
Otpiswaneto RABOTI !!! : Majordomo@xxxxxxxxxxxxxxxxxx UNSUBSCRIBE LUG-BG
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora


  • Относно:
    • Re: lug-bg: CPU
      • Изпратено от: zimage@xxxxxxxxx (Theodor Milkov)

 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.