From owner-freebsd-fs@FreeBSD.ORG Tue Aug 8 05:14:19 2006 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43BC516A4DD for ; Tue, 8 Aug 2006 05:14:19 +0000 (UTC) (envelope-from qdolan@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6F0B43D46 for ; Tue, 8 Aug 2006 05:14:18 +0000 (GMT) (envelope-from qdolan@gmail.com) Received: by py-out-1112.google.com with SMTP id c59so19680pyc for ; Mon, 07 Aug 2006 22:14:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:in-reply-to:references:content-type:message-id:from:subject:date:to:x-mailer; b=X0nv8hxjus08eQYHwR5d74mUAlDHGGGvJwsUDKmgxcnqqXPmtkklAWy46qalnqcWNABbv7pqO05zUFFnzn13M+uRij8IU/LoS0gnHv7bMWFpqi7EhtbiuyQEniJ1WYdfBTpZIRdu3w7jPXEMc2OdsPFDablBwGgnCaehF5N8VA4= Received: by 10.35.51.13 with SMTP id d13mr13872116pyk; Mon, 07 Aug 2006 22:14:17 -0700 (PDT) Received: from ?172.22.1.30? ( [203.13.70.60]) by mx.gmail.com with ESMTP id 10sm151342nzo.2006.08.07.22.14.14; Mon, 07 Aug 2006 22:14:16 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: References: Message-Id: <06530464-7491-4BC1-97C7-87285B03F2EB@gmail.com> From: Q Date: Tue, 8 Aug 2006 15:14:10 +1000 To: freebsd-fs@freebsd.org X-Mailer: Apple Mail (2.752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Problem with ufs not releasing vm_pages on busy volume. (soft updates related) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Aug 2006 05:14:19 -0000 On 02/08/2006, at 8:10 PM, Q wrote: > I have a problem that seems to be related to something ufs related > not releasing some vm_pages on busy filesystems. I have two servers > running PostgreSQL, one running 6.0-RELEASE, the other 6.1-RELEASE. > Both are under the same (fairly heavy) load, performing the same > operations in bursts every five minutes. The filesystems in > question are 450-500Gig, each server using a different brand of > RAID card, they both have soft-updates enabled. > > The problem is that both servers are seeing an accumulation of > about 100Mb of active pages per day (looking at > vm.stats.vm.v_active_count) that never get released. The only way > to release these pages is to unmount the filesystem and remount it. > Failing to do this results in the server eventually locking up. > > If someone could provide me with some direction on how to go about > tracking down what might be causing this to happen it would be much > appreciated. I have narrowed the cause of this issue down further to something to do with soft updates. If I turn off soft updates for the filesystem hosting the database the system no longer accumulates active vm_pages constantly. Instead for accumulating 100Mb a day of active vm pages until all memory is consumed, it will hover around 50-60Mb with soft updates disabled. If someone familiar with the softupdates code is willing to help me pinpoint the cause of this problem it would be much appreciated. -- Seeya...Q -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- _____ / Quinton Dolan - qdolan@gmail.com __ __/ / / __/ / / / __ / _/ / / Gold Coast, QLD, Australia __/ __/ __/ ____/ / - / Ph: +61 419 729 806 _______ / _\