From owner-freebsd-stable@FreeBSD.ORG Sat May 17 00:53:07 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01986106566B; Sat, 17 May 2008 00:53:07 +0000 (UTC) (envelope-from tom.hurst@clara.net) Received: from spork.qfe3.net (spork.qfe3.net [212.13.207.101]) by mx1.freebsd.org (Postfix) with ESMTP id B291E8FC14; Sat, 17 May 2008 00:53:06 +0000 (UTC) (envelope-from tom.hurst@clara.net) Received: from [81.104.123.28] (helo=voi.aagh.net) by spork.qfe3.net with esmtp (Exim 4.66 (FreeBSD)) (envelope-from ) id 1JxAfY-0009i6-LU; Sat, 17 May 2008 01:53:04 +0100 Received: from freaky by voi.aagh.net with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JxAfY-000Gxf-At; Sat, 17 May 2008 01:53:04 +0100 Date: Sat, 17 May 2008 01:53:04 +0100 From: Thomas Hurst To: Evren Yurtesen Message-ID: <20080517005304.GA63122@voi.aagh.net> Mail-Followup-To: Evren Yurtesen , Jeremy Chadwick , freebsd-stable@freebsd.org References: <482B4DEE.3050705@ispro.net> <20080515010347.GA85202@eos.sc1.parodius.com> <482BE398.8010203@ispro.net> <20080516182044.GA5921@voi.aagh.net> <482DD410.6090102@ispro.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <482DD410.6090102@ispro.net> Organization: Not much. User-Agent: Mutt/1.5.17 (2007-11-01) Sender: Thomas Hurst Cc: Jeremy Chadwick , freebsd-stable@freebsd.org Subject: Re: Approaching the limit on PV entries, consider increasing either the vm.pmap.shpgperproc or the vm.pmap.pv_entry_max sysctl. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 May 2008 00:53:07 -0000 * Evren Yurtesen (yurtesen@ispro.net) wrote: > How do I see what process is sharing memory and how much memory? Guessing is normally sufficient; typically it's processes with the same name and similar size/res. On 7-STABLE you can use procstat -v to look at the VM mappings for a process, but typically that'll be overkill. > There are a bunch of apache 2.2 processes working normally about 20-30 > processes. This box doesnt do much more than that... > > I just checked the machine and here is what it looks like: > 2:32PM up 18 days, 5:40, 3 users, load averages: 0.41, 0.36, 0.27 > > web:/root#ps ax |grep http > 21429 ?? Ss 0:18.08 /usr/local/sbin/httpd > 86473 ?? S 0:00.09 /usr/local/sbin/httpd > 86659 ?? S 0:00.09 /usr/local/sbin/httpd > > Although I see now that for 2 days the PV entries error did not appear. I > wonder if it is spooling up somehow... They do look a bit small to be triggering it; assuming they're sharing most of that, that's still only about 400k pv entries; 5MB or so (12 bytes per entry). The systems I've seen pv entries run out on run to a couple of orders of magnitude more than that. > There is a cron job restarting apache everyday at midnight so it cant > be apache leaking perhaps. Load spikes maybe? Child count running into the stratosphere? Big PHP opcode cache? -- Thomas 'Freaky' Hurst http://hur.st/