From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fa528,b5d616e70f5edebb X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-01-10 02:35:58 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!newsgate.tandem.com!mailint03.im.hou.compaq.com!not-for-mail From: Robert Mulley Newsgroups: comp.unix.tru64 Subject: Re: two swap disks versus one swap disk Date: Wed, 10 Jan 2001 10:31:56 +0000 Organization: Compaq Computer Corp. Message-ID: <3A5C3A1C.25C9FA5C@one.net.au> References: <93fka9$1qf$1@nnrp1.deja.com> <93fpkg$bf9$1@mailint03.im.hou.compaq.com> Reply-To: gnscon@one.net.au NNTP-Posting-Host: 16.37.50.195 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: mailint03.im.hou.compaq.com 979122706 21041 16.37.50.195 (10 Jan 2001 10:31:46 GMT) X-Complaints-To: usenet@mailint03.im.hou.compaq.com NNTP-Posting-Date: 10 Jan 2001 10:31:46 GMT X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en Xref: supernews.google.com comp.unix.tru64:1392 "Alan Rollow - Dr. File System's Home for Wayward Inodes." wrote: > In article <93fka9$1qf$1@nnrp1.deja.com>, estratosfera@my-deja.com writes: > > >Hello, I have to install a machine which has two hard disks so I would > >like to install one swap area in each disk because I have heard that > >the system will work faster than a system with only one swap area. > > > > >A Compaq technical person has recommended don't do it but I don�t > >believe him. > > I wouldn't believe him either, since the installation procedure > give you the opportunity to setup two page/swap spaces. Many > people setup more than just two. > > >What is your opinion or your experience with the swap > >areas? Two swap areas in two hard disks or only one big swap area in > >only one hard disk? > > Or one area mirrored on the two disks... > > You need page/swap space as a means to support some desired amount > of virtual memory. Either as a maximum if you use the default (eager) > mode of page/swap space reservation, or as an addition to available > memory if you use lazy. The organization of it isn't really that > relevant if the I/O rate to it is sufficiently low. > > When you start paging enough that the performance of the page/swap > space becomes relevant the first question you should is "can I afford > more memory"? I would expect that the performance difference between > having more memory and not paging, and needing to page, is enough to > make this serious consideration. Once you can't throw more memory > at the problem, you're faced with how to make a *really bad* performance > problem be merely *bad*. > > At that point spreading the page/swap I/O out over more disks and > more controllers might offer some benefit over a single device. > With two disks you can at least some overlapped seeking. With > those two disks on separate controllers, you might get parallel > transfers. > > > > >Thank you for your help > > > > > >Sent via Deja.com > >http://www.deja.com/ > > > > -- > Alan Rollow alan@nabeth.cxo.dec.com I remember reading or being told that it is better to have one large swap partition versus two disparately sized partitions. e.g. swap1 being 50M and swap2 being 8G. As the method of paging tries to write equally between the swap partitions, therefore when swap1 fills up, the alogrithm wastes time trying to write to it, before writing to swap2. Granted it's probably not a great overhead, but on a system that is thrashing swap it could be a problem. Also I could be mistaken in this belief. Obviously two swap partitions the same size, on different disks, is better than one. Robert Mulley Unix admin