Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: mosedale@fafner.Stanford.EDU (Dan Mosedale)
Subject: Inefficiency of filesystem paging (was Re: How to specify additional swap space on OSF1/alpha)
Date: Wed, 24 Mar 93 23:53:20 GMT	[thread overview]
Message-ID: <1993Mar24.235320.12958@leland.Stanford.EDU> (raw)
In-Reply-To: 1993Mar23.184645.19498@bernina.ethz.ch

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




      parent reply	other threads:[~1993-03-24 23:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-03-19 19:43 How to specify additional swap space on OSF1/alpha Lincoln Stein
1993-03-20 18:07 ` Matt Thomas
1993-03-22 10:16   ` ufe
1993-03-22 14:22     ` John Corne
1993-03-22 17:03     ` Rick Murphy
1993-03-23  0:25       ` Fred Velijanian
1993-03-25  9:18         ` Balendra Elangco
1993-03-23 18:46   ` Andreas Karrer
1993-03-23 21:00     ` Dave Sill
1993-03-24 23:53     ` Dan Mosedale [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox