From owner-freebsd-questions@FreeBSD.ORG Fri Oct 10 20:57:04 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 3D6401065698 for ; Fri, 10 Oct 2008 20:57:04 +0000 (UTC) (envelope-from fbsdlists@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.236]) by mx1.freebsd.org (Postfix) with ESMTP id F03428FC1C for ; Fri, 10 Oct 2008 20:57:03 +0000 (UTC) (envelope-from fbsdlists@gmail.com) Received: by wx-out-0506.google.com with SMTP id s17so336229wxc.7 for ; Fri, 10 Oct 2008 13:57:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=+1uqP4EFIyPp3ZRjPFfLG5F1iKz6jW7lY6Ta8SntAP4=; b=BVi2V5qPIMaicNqp0PG7V0pNVdZt7yPPRs4wO0FEO+Yvg924tjzFVy3dWrt6fMk2De /3sKcgtPi/U0V/eN3Qm/iCFQyVKWdLXDEI8igOOjbmE/Vh6Q1YX119fISFVG9/9rym/V lxU+BDBqUYK8N2sbvUqktLtBS46xrIN2habeA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=RXdgbQ+TGQb0O5IK4liJ6uWaaBfR49L0hp+RMsYO2EdH7cHPc4X2H9bty+6vm/vtSg HQbM6zsoUeZGRvaGbcKmwDjOXypIyd/vAk/W1Zj+HmdTKx+77QmVsNt5cIfUy/6F/WfW j7TjlC/kKljfeMkkpQD2PSG3iigmACMxzv0a8= Received: by 10.150.158.8 with SMTP id g8mr2882276ybe.240.1223672223042; Fri, 10 Oct 2008 13:57:03 -0700 (PDT) Received: by 10.150.97.11 with HTTP; Fri, 10 Oct 2008 13:57:03 -0700 (PDT) Message-ID: <54db43990810101357o6f6396cfsb4ec48585a1c99b@mail.gmail.com> Date: Fri, 10 Oct 2008 16:57:03 -0400 From: "Bob Johnson" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: kernel: Approaching the limit on PV entries... 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: Fri, 10 Oct 2008 20:57:04 -0000 A web server with several jailed copies of Apache is having problems that seem to be caused by incorrect IPFW rules, but in the process of working on that, I find in the log the following repeated many times: Oct 8 23:29:50 spider kernel: Approaching the limit on PV entries, consider increasing either the vm.pmap.shpgperproc or the vm.pmap.pv_entry_max sysctl. Oct 8 23:30:52 spider kernel: Approaching the limit on PV entries, consider increasing either the vm.pmap.shpgperproc or the vm.pmap.pv_entry_max sysctl. sysctl gives me: # sysctl vm.pmap vm.pmap.pmap_collect_active: 0 vm.pmap.pmap_collect_inactive: 0 vm.pmap.pv_entry_spare: 45818 vm.pmap.pv_entry_allocs: 595716945 vm.pmap.pv_entry_frees: 595133939 vm.pmap.pc_chunk_tryfail: 0 vm.pmap.pc_chunk_frees: 3543052 vm.pmap.pc_chunk_allocs: 3546795 vm.pmap.pc_chunk_count: 3743 vm.pmap.pv_entry_count: 583006 vm.pmap.shpgperproc: 200 vm.pmap.pv_entry_max: 2243305 The system: FreeBSD .... 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #0: Wed Oct 1 07:51:58 UTC 2008 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 Can someone briefly explain what this is telling me and how to decide which sysctl to increase? I have found some old postings that predate the sysctls that suggested increasing shpgperproc in the kernel configuration, about 50 at a time until the problem goes away, but I still have no clue what that is accomplishing. Also, the system has been rebooted since I collected those messages, and they aren't happening any more, but I expect they will reappear eventually. Until then I probably can't actually test anything. Thanks for your time, -- Bob Johnson fbsdlists@gmail.com