From owner-freebsd-questions Fri Jan 31 6:25:24 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 6BD0837B405 for ; Fri, 31 Jan 2003 06:25:23 -0800 (PST) Received: from mailout02.sul.t-online.com (mailout02.sul.t-online.com [194.25.134.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id D38A543E4A for ; Fri, 31 Jan 2003 06:25:22 -0800 (PST) (envelope-from florenzen@web.de) Received: from fwd09.sul.t-online.de by mailout02.sul.t-online.com with smtp id 18ec6b-00086l-05; Fri, 31 Jan 2003 15:25:21 +0100 Received: from ossa6.dyndns.org (520079644566-0001@[217.224.236.58]) by fmrl09.sul.t-online.com with esmtp id 18ec6N-2I9jZwC; Fri, 31 Jan 2003 15:25:07 +0100 Received: from web.de (pierre.ossa6.net [192.168.0.2]) by ossa6.dyndns.org (Postfix) with ESMTP id BD88EAC0D for ; Fri, 31 Jan 2003 15:25:06 +0100 (CET) Message-ID: <3E3A8791.D9A3730@web.de> Date: Fri, 31 Jan 2003 15:26:25 +0100 From: Florian Lorenzen X-Mailer: Mozilla 4.79 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Limiting memory usage of a certain process. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Sender: 520079644566-0001@t-dialin.net 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 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. 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