From owner-freebsd-questions@FreeBSD.ORG Mon Oct 27 19:24:47 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 6C24C106566C for ; Mon, 27 Oct 2008 19:24:47 +0000 (UTC) (envelope-from simonychang@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.231]) by mx1.freebsd.org (Postfix) with ESMTP id 3E4568FC08 for ; Mon, 27 Oct 2008 19:24:47 +0000 (UTC) (envelope-from simonychang@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so2084529rvf.43 for ; Mon, 27 Oct 2008 12:24:46 -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:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=pvC76hVruM/aX71ruTtLE44+D6i5wZj0+lvMWeUULMc=; b=dojJyu/y+7j5NZSTrro90TJPGPy/lesz15Tx/SRizNzJI6LV8cFWSVglxeq6zLqr/b uc/6P+LeHMLXZb+Gws4d8OMe37Ai1Usm4CNcVUMeqrVxilpuggzRVEZoDk0si71zvIp4 4HX4vccLm+nqfJu4LtsAhzZ3DVIuXJCvFH9hY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=mqObp1aFvOK0bl4QtLy+wMiJIOXvOh9FHW7PrrEdmuFZO9nxQfsoGCPqyMRLXGGwuM JYWv16WHHnHT+fVKb+xWbloUjmVEynx3iipo3XweOwyhMi5FC/f1PczRfqjtjdDqz25d qx2lN/cFoYWbERcuO7HluBwT/0/ZPzmy54u8Y= Received: by 10.141.4.3 with SMTP id g3mr3454849rvi.116.1225133821338; Mon, 27 Oct 2008 11:57:01 -0700 (PDT) Received: by 10.141.132.16 with HTTP; Mon, 27 Oct 2008 11:57:01 -0700 (PDT) Message-ID: <8efc42630810271157u2202e7f7xfb89a7004d072ae9@mail.gmail.com> Date: Mon, 27 Oct 2008 14:57:01 -0400 From: "Simon Chang" To: "=?ISO-8859-1?Q?Francis_Dub=E9?=" In-Reply-To: <49060AE0.3000301@optiksecurite.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <49060AE0.3000301@optiksecurite.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:24:47 -0000 > 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