• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Enabling SD swap on Galaxo

Yeah, the first thing I tried was that recovery option but it didn't seem to work [I used free to check if swap was enabled]. I've created partition manually in parted and added it to /etc/fstab [/dev/block/mmcblk1p1 none swap sw 0 0; commented /dev/block/mmcblk1 line out] but swap isn't starting automatically.
 
Upvote 0
Compcache uses SD swap as backup. That's how its configured as standard. If you want to use sd swap without compcache then you'll need to change the configuration. That doesnt really make that much sense tho. You're better off setting compcache to a small value like 4mb and let that act as a buffer to the sd card swap.
 
Upvote 0
Ok, thanks. What would happen if compcache was also enabled? Would it still see the new swap partition?

Compcache doesn't help when your phone has at least 100MB of RAM less than needed. So just use

swapon /dev/block/mmcblk1p2
after resizing and tell me what you think. First thing to try is to open more tabs, you can return to them without reloading from the internet.

Important thing is the speed of the sdcard. Make sure it's at least Class4, Class6 is better.

[root@galaxy:/]hdparm -t /dev/block/mmcblk1p2 (external SD - swap partition)

/dev/block/mmcblk1p2:
Timing buffered disk reads: 17 MB in 3.14 seconds = 5530 kB/s

[root@galaxy:/]hdparm -t /dev/block/mmcblk0 (internal SD)

/dev/block/mmcblk0:
Timing buffered disk reads: 21 MB in 3.06 seconds = 7017 kB/s


Try it with yours...
 
Upvote 0
Compcache doesn't help when your phone has at least 100MB of RAM less than needed. So just use

swapon /dev/block/mmcblk1p2
after resizing and tell me what you think. First thing to try is to open more tabs, you can return to them without reloading from the internet.

Important thing is the speed of the sdcard. Make sure it's at least Class4, Class6 is better.

[root@galaxy:/]hdparm -t /dev/block/mmcblk1p2 (external SD - swap partition)

/dev/block/mmcblk1p2:
Timing buffered disk reads: 17 MB in 3.14 seconds = 5530 kB/s

[root@galaxy:/]hdparm -t /dev/block/mmcblk0 (internal SD)

/dev/block/mmcblk0:
Timing buffered disk reads: 21 MB in 3.06 seconds = 7017 kB/s


Try it with yours...

I get these results:

/dev/block/mmcblk1p2:
Timing buffered disk reads: 19 MB in 3.14 seconds = 6175 kB/s
hdparm: HDIO_DRIVE_CMD: Inappropiate ioctl for device

/dev/block/mmcblk0:
Timing buffered disk reads: 14 MB in 3.00 seconds = 4765 kB/s
hdparm: HDIO_DRIVE_CMD: Inappropiate ioctl for device

so I can presume from these results that my swap partition is working?

Why do you think my internal SD card is so much slower?
Do you think it could do with reformatting?
 
Upvote 0
This is how you check if swap is working.

From the terminal type (btw connectbot is very nice term/ssh):

free

it will return swap size.

try turning swap off and on:
swapoff /dev/block/mmcblk1p2 (wait few moments)
free (check if swap line is 0 now)
swapon /dev/block/mmcblk1p2
free (check if swap is enabled)
 
Upvote 0
I have turned the swap on with a 116mb swap partition and found the Galaxy became so laggy after opening a few tabs in the browser. it began to lock up for a minute or two. Is it possible a-swapper is not used in GalaxHero? Reading the blurb about GalaxHero on Hdblog.it, drakaz mentions removing a-swapper in favour of compcache. If this is true how do I put a-swapper back on?
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones