Help - Search - Members - Calendar
Full Version: How To Creat A Best Performance Swapfile?
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
Kondou
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
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.