From owner-freebsd-questions@FreeBSD.ORG Mon Oct 27 19:41:03 2008 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 A5CA21065683 for ; Mon, 27 Oct 2008 19:41:03 +0000 (UTC) (envelope-from freebsd@optiksecurite.com) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.freebsd.org (Postfix) with ESMTP id 7973C8FC26 for ; Mon, 27 Oct 2008 19:41:03 +0000 (UTC) (envelope-from freebsd@optiksecurite.com) MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from [69.69.69.183] ([69.70.93.206]) by VL-MO-MR001.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTP id <0K9E002CUXCET8J5@VL-MO-MR001.ip.videotron.ca> for freebsd-questions@freebsd.org; Mon, 27 Oct 2008 15:41:02 -0400 (EDT) Message-id: <4906196C.8000407@optiksecurite.com> Date: Mon, 27 Oct 2008 15:41:32 -0400 From: FreeBSD User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) To: Simon Chang References: <49060AE0.3000301@optiksecurite.com> <8efc42630810271157u2202e7f7xfb89a7004d072ae9@mail.gmail.com> In-reply-to: <8efc42630810271157u2202e7f7xfb89a7004d072ae9@mail.gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: collecting pv entries -- suggest increasing PMAP_SHPGPERPROC 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, 27 Oct 2008 19:41:03 -0000 Simon Chang a écrit : >> collecting pv entries -- suggest increasing PMAP_SHPGPERPROC >> >> I've read that this is mainly caused by Apache spawning too many processes. >> Everyone seems to suggest to decrease the MaxClients directive in Apache(set >> to 450 at the moment), but here's the problem...i need to increase it ! >> During peaks all the processes are in use, we even have little drops >> sometime because there isn't enough processes to serve the requests. Our >> traffic is increasing slowly over time so i'm affraid that it'll become a >> real problem soon. Any tips on how I could deal with this situation, >> Apache's or FreBSD's side ? > > On page 85 of Michael Lucas' "Absolute BSD", there is a solution to > your problem that someone else had come across before. The solution > involves (1) increasing the PMAP_SHPGPERPROC parameter in the kernel > to a higher value and rebuilding the kernel, and (2) increasing the > amount of physical RAM to complement it. > > For more details, go to > > http://books.google.com/books?id=vebgS-r9fP8C&pg=PA85&lpg=PA85&dq=Michael+Lucas+collecting+pv+entries&source=web&ots=9Fl2T_Uyqi&sig=6LgchiUI5r0NTL6PaK3sxnFuIBI&hl=en&sa=X&oi=book_result&resnum=1&ct=result > > Good luck, > > Simon Chang Thanks for the links, pretty helpful but this server is the only production web server we have. I don't really like the idea of recompiling the kernel with a new option... I don't really understand why we are getting this error since there is plenty of Inactive RAM in the system (2G inactive on a 4G server with amd64). Is this a "normal" error in this case? Thank you for your quick reply.