From owner-freebsd-questions Wed Jan 21 23:26:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA21356 for questions-outgoing; Wed, 21 Jan 1998 23:26:20 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA21348 for ; Wed, 21 Jan 1998 23:26:14 -0800 (PST) (envelope-from nadav@barcode.co.il) Received: (from smap@localhost) by gatekeeper.barcode.co.il (8.8.7/8.8.7) id JAA06065; Thu, 22 Jan 1998 09:26:28 +0200 (IST) (envelope-from nadav@barcode.co.il) X-Authentication-Warning: gatekeeper.barcode.co.il: smap set sender to using -f Received: from localhost.barcode.co.il(127.0.0.1) by gatekeeper.barcode.co.il via smap (V2.0) id xma006063; Thu, 22 Jan 98 09:26:26 +0200 Message-ID: <34C6F413.5B5B@barcode.co.il> Date: Thu, 22 Jan 1998 09:24:03 +0200 From: Nadav Eiron X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.6 sun4u) MIME-Version: 1.0 To: Frank Mayhar CC: questions@FreeBSD.ORG Subject: Re: Memory leak in memfs? References: <199801200509.VAA09628@exit.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk Frank Mayhar wrote: > > I note my mount_mfs has several times seemed to grow without bound, viz: > > 1521 root 10 0 98780K 2016K mfsidl 0:17 0.00% 0.00% mount_mfs > > But the /tmp that it mounts is using less than a meg: > > [202]~ >df /tmp > Filesystem 1024-blocks Used Avail Capacity Mounted on > mfs:1521 95359 890 86841 1% /tmp > > This is after an uptime of around 5 1/2 days. Is there a leak in > mount_mfs? Or am I doing something wrong? > -- > Frank Mayhar frank@exit.com Seems alright to me. You have the process mapping an address space of 98780K, but using 2016K of it (actually, have 2016K of it in your RAM at the time). This seems OK to me. Note that it only takes space for memory it actually touches, but allocates enough for the whole size of the filesystem which is: 95359K in your case. Nadav