From owner-freebsd-bugs Fri May 10 07:40:06 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA22795 for bugs-outgoing; Fri, 10 May 1996 07:40:06 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA22782 Fri, 10 May 1996 07:40:04 -0700 (PDT) Resent-Date: Fri, 10 May 1996 07:40:04 -0700 (PDT) Resent-Message-Id: <199605101440.HAA22782@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, root@jc.f1.ru Received: from relay.f1.ru (jc.f1.ru [194.87.86.1]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA22217 for ; Fri, 10 May 1996 07:33:07 -0700 (PDT) Received: by relay.f1.ru id AA00717 (5.65/IDA-simtel for FreeBSD-gnats-submit@freebsd.org); Fri, 10 May 1996 14:31:17 GMT Message-Id: <199605101431.AA00717@relay.f1.ru> Date: Fri, 10 May 1996 14:31:17 GMT From: Super user Reply-To: root@jc.f1.ru To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/1186: MFS doesn't mark memory free when it's filespace cleaned Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1186 >Category: kern >Synopsis: MFS doesn't mark memory free when it's filespace cleaned >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri May 10 07:40:02 PDT 1996 >Last-Modified: >Originator: Super user >Organization: F1 Communications >Release: FreeBSD 2.1-STABLE i386 >Environment: Any versions before and including 2.1-RELEASE I think.. >Description: Memory, occupied by mount_mfs becames dirty and lives in swap during work.. >How-To-Repeat: 1) mount_mfs /dev/wd0s1b /mnt (or whatever device appropriate) 2) swapinfo (near your normal swap usage) 3) dd if=/dev/rwd0 of=/tmp/bigfile bs=1024 count=30000 (or what you prefer to make long file in /mnt) 4) swapinfo (swap usage will increase if you have no enough real memory) 5) rm -f /tmp/bigfile 6) swapinfo (swap usage will not decrease to your normal values) Congratulations - you just converted at least part of your swap partitions into /mnt filespace. I think it's not MFS was coded for :( >Fix: Don't know.. May be mark some pages `clean' (if such technology exist?) when file removed.. Or dynamically allocate memory `on demand'.. >Audit-Trail: >Unformatted: