From owner-freebsd-questions Fri Jan 31 7:56:53 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0038837B401 for ; Fri, 31 Jan 2003 07:56:51 -0800 (PST) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAA2243F3F for ; Fri, 31 Jan 2003 07:56:46 -0800 (PST) (envelope-from fbsd-q@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.6/8.12.6) with ESMTP id h0VFwXJi088592; Fri, 31 Jan 2003 16:58:34 +0100 (CET) (envelope-from stable@ei.bzerk.org) Received: (from stable@localhost) by ei.bzerk.org (8.12.6/8.12.6/Submit) id h0VFwXE4088591; Fri, 31 Jan 2003 16:58:33 +0100 (CET) Date: Fri, 31 Jan 2003 16:58:33 +0100 From: Ruben de Groot To: Florian Lorenzen Cc: freebsd-questions@freebsd.org Subject: Re: Limiting memory usage of a certain process. Message-ID: <20030131155833.GA88568@ei.bzerk.org> References: <3E3A8791.D9A3730@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E3A8791.D9A3730@web.de> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, On Fri, Jan 31, 2003 at 03:26:25PM +0100, Florian Lorenzen typed: > Hi all, > > I've got the following problem with my FBSD-4.7-STABLE-box: > > It is running a mldonkey-2.02-client under a dedicated user. This > process eats up all memory. Thus the system starts swapping. This is in > general not a big problem but it slows down the whole machine, which is > also running several other services. My question now is how to limit the > mldonkey-precess' memory usage. I've got 64 MB of core and the CPU is a > Pentium 166, so not to fast at all, but sufficient for everything else. > top tells me that under normal load, without the mldonkey, about about > five MB of core are free. mldonkey needs about 20 MB which are resistant > and overall size (as top says) gets up to 70 MB, thus about 80 MB of > swap space get used, nearly zero under normal load. top also says that > about 30 MB of core are "wired" all the time. I'd like to know, what > this means and wheather it makes sense to decrease this (and if, how), > so that more space is left in RAM. > > I tried to limit core-use of mldonkey by putting it into a seperate > login group with a lowered maxmemorysize but that had no effect. I also > niced it up, but that has no effect on swap usage, of course. When you put it in a separate login class (you do mean class, not group, do you?) did you run the command "cap_mkdb login.conf"? > > So, is there any possibility to speed up the machine except putting in > more physical RAM? > > Help appreciated. > > Florian > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message