home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / linux / 15950 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.9 KB  |  53 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!microsoft!wingnut!satishc
  3. From: satishc@microsoft.com (Satish Chittamuru)
  4. Subject: Re: Swap speed - my machine is a potted plant!
  5. Message-ID: <1992Nov05.025804.28176@microsoft.com>
  6. Date: 05 Nov 92 02:58:04 GMT
  7. Organization: Microsoft Corporation
  8. References: <Nov.4.11.16.57.1992.1608@gandalf.rutgers.edu>
  9. Lines: 39
  10.  
  11. In article <Nov.4.11.16.57.1992.1608@gandalf.rutgers.edu> glenw@gandalf.rutgers.edu (Glenn Wasserman) writes:
  12.  > Is there any way to make swapping more efficient under linux? I don't want to
  13.  > make a swap partition, but when the system needs resources under X and resorts
  14.  > to swapping, the speed of the system degrades to a point where it's almost use-
  15.  > less. I have to simply wait until it's done swapping.
  16.  
  17. What type partition is your swapfile on? If it is EXTFS, you will get
  18. lousy performance. I ran iozone on my system. And the results are:
  19.  
  20.   Writing a 15MB file
  21.     486/33
  22.     8MB ram & 12MB swap
  23.     linux 0.98.1
  24.  
  25.   /dev/hda2 - 25MB MINIX partition
  26.     read  - ~620000 bytes/second
  27.     write - ~540000 bytes/second
  28.  
  29.   /dev/hda3 - 119 MB EXTFS partition
  30.     read  - ~170000 bytes/second
  31.      write - ~140000 bytes/second
  32.  
  33. The worst part of this is that the EXTFS is the outer partition on
  34. my drive (a multizone recorded drive). My old MINIX partition used
  35. to show a noticeable increase on the outer partitions.
  36. (obviously, I use a dedicated swap partition).
  37.  
  38. Also if you partition is badly fragmented, you will have a noticeable
  39. drop in performance. Some one posted a frag.c program a while ago.
  40. You can try running that on your swapfile and see how many fragments
  41. it has. The fewer the better. See if you repack your stuff and create
  42. an unfragmented swapfile.
  43.  
  44.  > Thanks,
  45.  > Glenn
  46.  
  47.  
  48. -- 
  49. Satish K. Chittamuru                satishc@microsoft.com
  50. =====
  51. Disclaimer: The opinions expressed herein, either stated or implied, are
  52. solely my own and do not reflect Microsoft's views in any manner.
  53.