From owner-freebsd-stable@FreeBSD.ORG Tue Dec 21 20:53:49 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 795EC16A4CE for ; Tue, 21 Dec 2004 20:53:49 +0000 (GMT) Received: from smtp13.wxs.nl (smtp13.wxs.nl [195.121.6.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A96743D2F for ; Tue, 21 Dec 2004 20:53:49 +0000 (GMT) (envelope-from ronald-freebsd8@klop.yi.org) Received: from ronald.echteman.nl (ip51cdc5d2.speed.planet.nl [81.205.197.210])2004))freebsd-stable@freebsd.org; Tue, 21 Dec 2004 21:53:48 +0100 (CET) Received: (qmail 23384 invoked from network); Tue, 21 Dec 2004 20:53:46 +0000 Received: from unknown (HELO laptop.thuis.klop.ws) (192.168.1.4) by ronald.echteman.nl with SMTP; Tue, 21 Dec 2004 20:53:46 +0000 Received: (qmail 815 invoked from network); Tue, 21 Dec 2004 20:53:29 +0000 Received: from localhost (HELO smtp.local) (127.0.0.1) by localhost with SMTP; Tue, 21 Dec 2004 20:53:29 +0000 Date: Tue, 21 Dec 2004 21:53:27 +0100 From: Ronald Klop In-reply-to: <200412211049.29386.michael.riexinger@de.clara.net> To: Michael Riexinger , freebsd-stable@freebsd.org Message-id: MIME-version: 1.0 Content-type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 Content-transfer-encoding: 7BIT User-Agent: Opera M2/7.54u1 (FreeBSD, build 892) References: <200412211049.29386.michael.riexinger@de.clara.net> Subject: Re: 'vmpfw' state X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2004 20:53:49 -0000 On Tue, 21 Dec 2004 10:49:29 +0100, Michael Riexinger wrote: > Hi, > > i have a imap server with cyrus running under FreeBSD 5.3-RELEASE. There > are around 25000 mailboxes (around 30gb small mails). When starting > cyrus, the lmtpd is in vmpfw state for around 15 minutes and consumes > very much cpu and memory. When using truss, i see a lseek loop. What > exactly is the vmpfw state and how can i accelerate that thing? I did this in /usr/src. grep -r --mmap vmpfw * sys/vm/vm_fault.c: if (!vm_page_sleep_if_busy(fs.m, TRUE, "vmpfw")) Just above this line is a comment explaining what is happening here in a technical way. I think your imap server is mapping all files in memory which can take quite long if your memory isn't 30GB. Do you have more info about your system? Memory/CPU/NFS?/local disk? Are the mailboxes in mbox format or Maildir? Searching in google on 'vmpfw' gives nfs issues with it while using pine on a nfs mounted mail folder. (results from 1999 about older versions freebsd) Ronald. -- Ronald Klop, Amsterdam, The Netherlands