home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!microsoft!wingnut!satishc
- From: satishc@microsoft.com (Satish Chittamuru)
- Subject: Re: Swap speed - my machine is a potted plant!
- Message-ID: <1992Nov05.025804.28176@microsoft.com>
- Date: 05 Nov 92 02:58:04 GMT
- Organization: Microsoft Corporation
- References: <Nov.4.11.16.57.1992.1608@gandalf.rutgers.edu>
- Lines: 39
-
- In article <Nov.4.11.16.57.1992.1608@gandalf.rutgers.edu> glenw@gandalf.rutgers.edu (Glenn Wasserman) writes:
- > Is there any way to make swapping more efficient under linux? I don't want to
- > make a swap partition, but when the system needs resources under X and resorts
- > to swapping, the speed of the system degrades to a point where it's almost use-
- > less. I have to simply wait until it's done swapping.
-
- What type partition is your swapfile on? If it is EXTFS, you will get
- lousy performance. I ran iozone on my system. And the results are:
-
- Writing a 15MB file
- 486/33
- 8MB ram & 12MB swap
- linux 0.98.1
-
- /dev/hda2 - 25MB MINIX partition
- read - ~620000 bytes/second
- write - ~540000 bytes/second
-
- /dev/hda3 - 119 MB EXTFS partition
- read - ~170000 bytes/second
- write - ~140000 bytes/second
-
- The worst part of this is that the EXTFS is the outer partition on
- my drive (a multizone recorded drive). My old MINIX partition used
- to show a noticeable increase on the outer partitions.
- (obviously, I use a dedicated swap partition).
-
- Also if you partition is badly fragmented, you will have a noticeable
- drop in performance. Some one posted a frag.c program a while ago.
- You can try running that on your swapfile and see how many fragments
- it has. The fewer the better. See if you repack your stuff and create
- an unfragmented swapfile.
-
- > Thanks,
- > Glenn
-
-
- --
- Satish K. Chittamuru satishc@microsoft.com
- =====
- Disclaimer: The opinions expressed herein, either stated or implied, are
- solely my own and do not reflect Microsoft's views in any manner.
-