From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1020c6,ef228e1d868b72fe,start X-Google-Attributes: gid1020c6,public X-Google-Thread: fee84,48d5bec4003cac17 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-03-24 15:55:25 PST Xref: sparky comp.unix.osf.osf1:189 comp.unix.admin:8069 Newsgroups: comp.unix.osf.osf1,comp.unix.admin Path: sparky!uunet!stanford.edu!nntp.Stanford.EDU!fafner.Stanford.EDU!mosedale From: mosedale@fafner.Stanford.EDU (Dan Mosedale) Subject: Inefficiency of filesystem paging (was Re: How to specify additional swap space on OSF1/alpha) Message-ID: <1993Mar24.235320.12958@leland.Stanford.EDU> Followup-To: comp.unix.admin Keywords: DEC alpha swap mkfile Sender: news@leland.Stanford.EDU (Mr News) Organization: Stanford Yeast Genome Project References: <1od7p0$i34@harpo.wi.mit.edu> <1993Mar20.180711.2110@nntpd.lkg.dec.com> <1993Mar23.184645.19498@bernina.ethz.ch> Date: Wed, 24 Mar 93 23:53:20 GMT karrer@bernina.ethz.ch (Andreas Karrer) writes: >>In article <1od7p0$i34@harpo.wi.mit.edu>, lstein@genome.wi.mit.edu (Lincoln Stein) writes: >>|>On a sun, it's easy to create a swap file using mkfile, and then >>|>designate it as swap using swapon. > >this is probably the most inefficient way to create more swapping space >on SunOS 4.x. swap files created with "mkfile" are ok for diskless >clients, but not for anything else. when you are swapping or paging, you want >to talk to as "raw" a disk as you can get. But is it actually that bad? To quote from O'Reilly's _System Performance Tuning_: "Filesystem paging is slightly less efficient than using a dedicated swap partition. In the best case, filesystem paging can equal the speed of a dedicated swap partition, but this assumes special high-performance filesystems that haven't generally been adopted by UNIX vendors*. [...] Disk fragmentation is the big enemy of filesystem swapping: paging performance is better if the file is one contiguous area on the disk [...] fragmentation will be minimal if you create swapping files on relatively new, relatively empty filesystems." * to which filesystems is the author referring? Also, for those who haven't seen it, this book is by Mike Loukides, published by O'Reilly & Associates, ISBN 0-937175-60-9. It's definitely a worthwhile book, and is very useful for picking out a single chapter or section in order to see how you can optimize some specific part of your sysmtem(s). -Dan Mosedale mosedale@genome.Stanford.EDU