From owner-freebsd-questions Thu Jun 20 11:56:24 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA01341 for questions-outgoing; Thu, 20 Jun 1996 11:56:24 -0700 (PDT) Received: from seagull.rtd.com (root@seagull.rtd.com [198.102.68.2]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA01333 for ; Thu, 20 Jun 1996 11:56:21 -0700 (PDT) Received: (from tony@localhost) by seagull.rtd.com (8.7.5/1.2) id LAA04471; Thu, 20 Jun 1996 11:54:39 -0700 (MST) Date: Thu, 20 Jun 1996 11:54:39 -0700 (MST) From: Tony Jones Message-Id: <199606201854.LAA04471@seagull.rtd.com> To: khetan@iafrica.com Subject: Re: swap problem - more information Cc: questions@freebsd.org Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Khetan Gajjar (khetan@iafrica.com) wrote: : The problem is that the drive pages so often, that the machine is : unuseable. It is really, really slow. Anyone have any idea why it's so : slow or how to speed it up so that it's as fast as my swap partition ? Welcome to the world of Unix performance tuning :-) The problem isn't that the 'drive pages so often', it's paging as much as you are asking it to do :-). The problem is likely 'how' it is paging. I'm pretty sure paging on FreeBSD is round robin, so you are hitting your vnode/fs swap area constantly. Especially with the VSZ requirements you have. Going through a vnode, to the filesystem layer, to the block layer is adding at least two levels of indirection. You have just discovered that Virtual memory isn't a transparent panacea. How fast you can get blocks to/from the paging space is critical for system performance. Spinning in the idle loop because you have no runnable processes is going to hurt your performance. It's going to hurt even if the vnode/fs layers have been carefully optimised. Also, I hope you don't have the vnode/fs page file on the same spindle as the raw partition ? Rule #1 for multiple swap areas is seperate spindles. I'd be backing up and doing a disk re-org to add another swap partition on a different spindle or enlarge your current area if you have only one spindle. tony