From owner-freebsd-questions@FreeBSD.ORG Mon Mar 9 16:43:54 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 71A25106568A for ; Mon, 9 Mar 2009 16:43:54 +0000 (UTC) (envelope-from nicolas@boiteameuh.org) Received: from popple.boiteameuh.org (popple.boiteameuh.org [82.232.215.170]) by mx1.freebsd.org (Postfix) with ESMTP id 27F9C8FC27 for ; Mon, 9 Mar 2009 16:43:54 +0000 (UTC) (envelope-from nicolas@boiteameuh.org) Received: by popple.boiteameuh.org (Postfix, from userid 1000) id E39904EC69; Mon, 9 Mar 2009 17:43:52 +0100 (CET) Date: Mon, 9 Mar 2009 17:43:52 +0100 From: Nicolas Haller To: freebsd-questions@freebsd.org Message-ID: <20090309164352.GE1481@boiteameuh.org> References: <20090309153057.GD1481@boiteameuh.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) 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:43:55 -0000 On Mon, Mar 09, 2009 at 05:04:16PM +0100, Wojciech Puchar wrote: >> 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. The box don't swap. I just ask if page fault interrupt postgresql process and fragment/de-optimize disk write. -- Nicolas Haller