Author Topic: How To Creat A Best Performance Swapfile?  (Read 1733 times)

Kondou

  • Newbie
  • *
  • Posts: 37
    • View Profile
How To Creat A Best Performance Swapfile?
« on: July 01, 2005, 10:19:05 am »
I have 1gb sd how to creat a 128m

next 2 example can get best performance swapfile?

example:

 dd if=.......... bs=32m count=4

or

dd if=........... bs=1k count= 131072

please tell me how to get best?

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
How To Creat A Best Performance Swapfile?
« Reply #1 on: July 01, 2005, 11:28:07 am »
The resulting files would be the same size and after you format them with mkswap would be identical in perfomance as swapfile.

One of the dd commands may be slightly faster than the other on a SD card, but not sure which. On reiserfs filesystem on a desktop linux system the first one take around 0.56secs and the second takes 1.8secs

A hexdump of the 2 file differs only in the files UUID which is stored around 0x400 bytes into the file.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card