The Following User Says Thank You to gnexus For This Useful Post: | ||
![]() |
2007-12-29
, 21:12
|
Posts: 66 |
Thanked: 17 times |
Joined on Dec 2007
|
#2
|
![]() |
2007-12-30
, 01:53
|
|
Posts: 20 |
Thanked: 4 times |
Joined on Dec 2007
|
#3
|
#!/bin/sh # workaround an issue with mounting swap partition at startup SWAPX='/dev/mmcblk0p2' case "$1" in start) swapon $SWAPX ;; stop) swapoff $SWAPX ;; restart) swapoff $SWAPX swapon $SWAPX ;; reload|force-reload) echo "$0: not implemented" ;; *) ;; esac
The Following User Says Thank You to skeezer65134 For This Useful Post: | ||
![]() |
2007-12-30
, 03:45
|
Posts: 66 |
Thanked: 17 times |
Joined on Dec 2007
|
#4
|
EDIT: I don't know if this has changed, but the tablet doesn't load swap partitions on reboot.
The Following User Says Thank You to gnexus For This Useful Post: | ||
![]() |
2007-12-30
, 17:47
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#5
|
![]() |
2007-12-30
, 17:57
|
Posts: 66 |
Thanked: 17 times |
Joined on Dec 2007
|
#6
|
But if you add too much (say, 4-5-6 times RAM size) you may experience that things actually slow down after a while, because lots of application data/code may have been pushed out to swap over the weeks (if you leave applications up and running).
![]() |
2007-12-30
, 18:01
|
|
Posts: 273 |
Thanked: 15 times |
Joined on Oct 2007
|
#7
|
![]() |
2007-12-30
, 18:21
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#8
|
![]() |
2007-12-30
, 18:48
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#9
|
A swap partition should in principle be faster than a swap file, because with a swap partition the kernel memory management system writes directly to the partition while with a swap file it'll have to go through the filesystem driver and then to the partition the file resides on (longer code and data paths)
![]() |
2007-12-30
, 19:04
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#10
|
Please note:
I just now set up a swap partition to replace the Nokia FAT swapfile. I have a 2GB internal SD card which was partitioned into two primary partitions. The second partition is formatted as ext2 for a dual-boot setup. The first partition was set up as fat32, but since I have no use or desire for dos partitions I decided to resize it and convert it to a swap partition which wouldn't be dismounted (causing insufficient memory problems) when the tablet is connected via USB. Since I didn't feel like resizing the partition right away, I decided it would be easier just to make the whole 1GB as swap and see if that worked.
So after creating the partition, running mkswap and then swapon I looked to see if it works. Here is the output of free:
So here is the question for discussion:
What is the optimal size for swap on the N800/810 and what is the max?
Normally the recommended size for swap (for any OS) is