![]() |
2012-06-04
, 15:34
|
Posts: 2,802 |
Thanked: 4,491 times |
Joined on Nov 2007
|
#11
|
The Following 2 Users Say Thank You to lma For This Useful Post: | ||
![]() |
2012-06-04
, 16:17
|
Posts: 189 |
Thanked: 171 times |
Joined on Jul 2011
|
#12
|
The rootfs uses a compressed filesystem (ubifs), so while a swap file filled with zeros might fit, it might run out of space when real data goes into it. It's also possible ubifs wants to allocate memory during writes, in which case swapping to it would be unsafe.
![]() |
2012-06-04
, 21:05
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#13
|
![]() |
2012-06-04
, 22:51
|
|
Posts: 889 |
Thanked: 2,087 times |
Joined on Sep 2010
@ Manchester
|
#14
|
I think the kernel (maybe not the one in the N900) has a mtdswap module that allows you to put swap on an mtd device (rootfs).
The idea is really good. Imagine using a chunk of your rootfs (say, 32MB) as compressed swap.
The Following User Says Thank You to mrsellout For This Useful Post: | ||
![]() |
2012-06-05
, 10:00
|
Posts: 1,225 |
Thanked: 1,905 times |
Joined on Feb 2011
@ Quezon City, Philippines
|
#15
|
I think the kernel (maybe not the one in the N900) has a mtdswap module that allows you to put swap on an mtd device (rootfs).
The idea is really good. Imagine using a chunk of your rootfs (say, 32MB) as compressed swap.