From owner-freebsd-questions@FreeBSD.ORG Mon Mar 9 16:04:43 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C09B10656D6 for ; Mon, 9 Mar 2009 16:04:43 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id E89308FC19 for ; Mon, 9 Mar 2009 16:04:39 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id n29G4Gbc002743; Mon, 9 Mar 2009 17:04:16 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id n29G4Gdx002740; Mon, 9 Mar 2009 17:04:16 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Mon, 9 Mar 2009 17:04:16 +0100 (CET) From: Wojciech Puchar To: Nicolas Haller In-Reply-To: <20090309153057.GD1481@boiteameuh.org> Message-ID: References: <20090309153057.GD1481@boiteameuh.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Busy disk and page fault X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Mar 2009 16:04:44 -0000 > The server is overload, the disk is 100% busy with 250 write operations > per second and a throuput of 6MB/s. > My first idea is because of mass random access/write on the disk. But I also see > the server can make 20k page fault per second. what page fault? most page faults in FreeBSD doesn't mean disk access, just no mapping present in page tables, which gets mapped after the fault. Only if page is actually not present in memory it is fetched from disk. top shows in what state is a process. if it's biord or biorw - it's doing disk/file I/O, not swapping. that's about FreeBSD part - about postgress part ask on postgress mailing list. i don't use it so i can't help you.