From owner-freebsd-hackers Tue Aug 28 6:17:35 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from gandalf.vi.bravenet.com (gandalf.bravenet.com [139.142.105.50]) by hub.freebsd.org (Postfix) with SMTP id 11A5437B401 for ; Tue, 28 Aug 2001 06:17:33 -0700 (PDT) (envelope-from dphoenix@bravenet.com) Received: (qmail 400 invoked by uid 1001); 28 Aug 2001 13:28:30 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 28 Aug 2001 13:28:30 -0000 Date: Tue, 28 Aug 2001 06:28:29 -0700 (PDT) From: Dan To: Subject: memory + apache Message-ID: <20010828054406.Q99717-100000@gandalf.bravenet.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG i am seeing problems where apache is running into swap at times. When all is said and done...i see alot of available memory from top and alot still stuck in swap. Restarting apache at that point clears the swap space right out and memory is used properly again. These seem to be short bursting peeks which i can;t get to in time to run vmstat on. When i login i never see any paging or swapping going on maybe 2 blocked processes waiting to run seems the average under the b column in vmstat. Another thing to note is cpu sky rockets when those burts happen. How can a process go into swap really badly yet seem to not use all available memory first. Disk I/O does not seem like a factor. What I am thinking of doing is decreasing buffer cache size. Currently there is 512 megs of ram. So 512-(kernel executable size)/5 i figure decrease it to around 25 megs instead of default for the buffer cache. Currently i see it using about 61 megs of buffer cache. I see in the LINT kernel config an option to set it, how do i tell what the current default is? nbufs in not currently in the kernel i have configured. I know I will decrease I/O performance doign this but it doesn;t seem to be the factor. -- Dan +------------------------------------------------------+ | BRAVENET WEB SERVICES | | dan@bravenet.com | | screen;cd /usr/src;make buildworld;cd ~ | | cp MYKERNEL /sys/i386/conf;cd /usr/src | | make buildkernel KERNCONF=MYKERNEL | |make installkernel KERNCONF=MYKERNEL;make installworld| +______________________________________________________+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message