From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 2 21:32:21 2007 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71D5916A420 for ; Thu, 2 Aug 2007 21:32:21 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org (adsl-75-1-14-242.dsl.scrm01.sbcglobal.net [75.1.14.242]) by mx1.freebsd.org (Postfix) with ESMTP id 56F6713C483 for ; Thu, 2 Aug 2007 21:32:21 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id l72LKRUS001446; Thu, 2 Aug 2007 14:20:31 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <200708022120.l72LKRUS001446@gw.catspoiler.org> Date: Thu, 2 Aug 2007 14:20:27 -0700 (PDT) From: Don Lewis To: jonny@jonny.eng.br In-Reply-To: <46AEC3BF.4080309@jonny.eng.br> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Cc: hackers@FreeBSD.org Subject: Re: Problems with rpc.statd and PAE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2007 21:32:21 -0000 On 31 Jul, João Carlos Mendes Luís wrote: > Hi, > > Sent this to -questions, but got no answer. Now I'll try -hackers... > > I've just configured my first server with 4G RAM. To use it, I had > to select PAE in kernel config. I was a little bit troubled by it's > advice not to use modules (is it that critical?), but got it running. > > But when it is running on PAE, NFS statd refuses to run: > > # /etc/rc.d/nfslocking start > Starting statd. > rpc.statd: unable to mmap() status file: Cannot allocate memory > Segmentation fault > # > > Using strace I found it was trying to mmap the status file, at > /var/db/statd.status: > > open("/var/db/statd.status", O_RDWR) = 10 > mmap(0, 268435456, PROT_READ|PROT_WRITE, MAP_SHARED, 10, 0) = -1 ENOMEM > (Cannot allocate memory) > > It's really strange to have mmap len = 256M, specially because the > file is always small. But it works without PAE, and do not work with > PAE. And it is described in the handbook: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/book.html#STATD-MEM-LEAK I've been seeing this same problem for a long time on an 7.0-CURRENT i386 machine with 1GB of RAM, and I'm not using PAE. I haven't discovered any obvious cause for the problem.