From owner-freebsd-newbies Mon Feb 5 19: 1:32 2001 Delivered-To: freebsd-newbies@freebsd.org Received: from coloradosurf.com (c769378-a.lakwod3.co.home.com [24.15.35.141]) by hub.freebsd.org (Postfix) with ESMTP id DDBBE37B401 for ; Mon, 5 Feb 2001 19:01:14 -0800 (PST) Received: from heike ([172.16.1.2]) by coloradosurf.com (8.9.3/8.9.3) with SMTP id TAA09390 for ; Mon, 5 Feb 2001 19:57:43 -0700 (MST) (envelope-from mike@coloradosurf.com) Message-ID: <003301c08fe9$63007460$020110ac@c769378a.lakwod3.co.home.com> From: "mike" To: Subject: limiting root process resources Date: Mon, 5 Feb 2001 20:02:48 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org What I'm looking for here is more of a discussion about this issue (that is why I didn't put it to -questions). I apologize if this would be the wrong forum for this. Background: I'm running a few boxes which would seem to have a simple (common?) setup. Mostly they are remote 'web' boxes with the standard internet services (named,apache,sendmail,proftp,with ipfw). No users have shell access. I have used login.conf to limit the resources that 'nobody' has. What I would like input/discussion on is the following. I created a cron job that basically rsync'ed a backup to other locations. Unfortunately, it was a poorly designed program (since fixed) that ate up all of the resources (memory) and proceeded to create a sendmail queue of roughly 1/2 gig (which really helped out with my memory situation when sendmail choked on that). While this is somewhat amusing (if it doesn't happen to you), it gave the machines in question server loads greater than 15-25. Screeching halt. Fortunately, it was quickly resolved. So anyway ... What are people's experiences/opinions about setting resource limits on root processes (pros/cons)? While I expect I'll not do that again, it's always nice to have a safety net. Certainly, I would love to hear suggestions (other than "don't do that" or "write better code" - I freely admit that I am a dumbass so please lets move beyond that :). mike -have the lists in general been flame happy lately or what? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message