Re: lug-bg: CPU
- Subject: Re: lug-bg: CPU
- From: mspasov@xxxxxxx (Martin Spasov)
- Date: Fri, 18 Feb 2000 18:40:02 +0200
On Fri, Feb 18, 2000 at 04:51:44AM -0800, Georgi Georgiev wrote:
>
>
> --- Jordan Damgov <jdamgov@xxxxxxxxxxxx> 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.
ami :)).. ima si .. eto quote ot /etc/security (twa e na rh based distros, ot
pam.d ..
--cut--
#<domain> can be:
# - an user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
#<type> can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#<item> can be one of the following:
# - 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
--cut--
raboti mnogo dobre...
ima i nqkolko patcha za kernel-a da se izbegne fork bomn i t.n..
> Az naprimer skoro si prispah Debiana s edna neumelo
> napisana ot men programka, deto 400000 pati
> zemashe po 1K pamet (biah propusnal da ia
> osvobojdavam).
Izpolzwaj electric fence..
> Rezultata beshe, che mi zaspa X-a i izobshto sichko,
> shtoto ne mojeshe da se pusne nikakav userski proces.
hehe.. ako stignesh do tam -- magic sysrq wurshi rabota..
> Predpolagam, 4e i s CPU resursa polojenieto e
> sashtoto.
nqma problem s cpu, samo s prekaleno mnogo maloc() -cheta..
no i twa se patchwa na user i kernel level..
> >
> > M/u drugoto kakvo znachi stepping 2 v /proc/cpuinfo
> > ?
hmm..
--
Regards: Martin Spasov
(mspasov@xxxxxxx)
==================================================================
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
|