[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: resource limits



Actually, I have a related question.

We offering web hosting to our clients. When people run huge CGIs, normally
we are notified, and kill them manually. We've also got a small script we
run periodically to kill of any "stuck" or "hanged" processes by users' cgis
(we use suexec so they run under their usernames).

HOWEVER, as this is a reactive measure, rather than a PROactive measure,
we'd rather have a way of LIMITING their usage like we do diskspace.

By putting it in the /etc/init.d/apache script, it would limit the apache
server as well (www-data) user, and thats bad. We ONLY want to limit the
user's cgi processes. We haven't founded any script that suexec uses to run
user cgis, so we can't limit it that way.

Any ideas???

Thanks in advance.

----- Original Message -----
From: "Kasatenko Ivan Alex." <skywriter@rnc.ru>
To: <debian-isp@lists.debian.org>
Sent: Friday, November 03, 2000 4:56 PM
Subject: Re: resource limits


Hello Jeremy,

Friday, November 03, 2000, 3:09:35 AM, you wrote:

JCR> What is an easy way to find out how much of certain resources I am
using?

JCR> In particular, how can I easily find out the following in use by the
shell
JCR> and the processes started by it?

JCR> - the total size of all process's data segments
JCR> - total resident memory size
JCR> - the number of file descriptors I have in use (open files)
JCR> - the total stack size I have in use
JCR> - total CPU time in seconds
JCR> - total number of processes (per this session)
JCR> - total amount of virtual memory used by the shell

JCR> Does the "maximum resident set size" limit for all processes or just
one
JCR> process? If for all, then how can I easily find out?

JCR> What does "pipe size" mean? How can I know how much I am using?

JCR> How do sh/bash ulimits or csh limits correlate with
JCR> /etc/security/limits.conf, /etc/limits, /etc/login.defs (ULIMIT) or
JCR> BSD-type login.conf session resource limits settings?

JCR> Does anyone have any answers to any of these questions?

JCR> Thanks

JCR>   Jeremy C. Reed
JCR>   http://www.reedmedia.net/
JCR>   http://bsd.reedmedia.net/


JCR> --
JCR> To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
JCR> with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org

Try the following kernel patch:
http://www.asp-linux.com/
It helped me in such a situation.

--
Regards,
 Ivan                            mailto:skywriter@rnc.ru



--
To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org





Reply to: