Re: 2Gb internal storage on N810

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eero Tamminen wrote:

> 1. with constant swap file writes, it's much easier to
>     accidentally cause the card FAT file system to get corrupted
...

> If you want swap, I would suggest a fast SD card with a separate
> _partition_ for swap

AFAIK since version 2.4 of linux kernel, swapping to file no longer goes 
via filesystem code at all and speed is similar/same to swapping to 
block device directly. Kernel swapping code makes mapping for blocks 
belonging to swap file on the beginning and then uses underlying block 
device directly (both for speed and for deadlock prevention). If the 
file is not heavily fragmented speed should be the same. Fragmentation 
is visible in kernel log when swap file is enabled (number of extents).

As for corruption I'm not sure but I'd say it is not an issue too since 
file is already allocated and filesystem code is not used when swapping.

Frantisek
_______________________________________________
maemo-users mailing list
maemo-users@xxxxxxxxx
https://lists.maemo.org/mailman/listinfo/maemo-users

[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux