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

Root Setting up swapper to use swap partition?

tisti

Well-Known Member
Sep 20, 2009
145
5
I just rooted the phone and installed a custom firmware, I am a little puzzled though how to point swapper to my external swap partition.
It's currently set to point to /dev/block/mmcblk0p3

I hope I'm reading this right, but this is pointing towards storage 0 (internal storage with galaxy) partition 3?
So if I set it to /dev/block/mmcblk1p1 or /dev/block/mmcblk1p2 it should be pointing to the swap partition on my SD card?


Edit:

Yes, I was correct, it was /dev/block/mmcblk1p2

Hope I solved someone elses problem too :)
 
cool. can you tell me are you able to minimise browser with 3 or more web pages and return to them after few minutes without need to refresh the pages? which rom are you using?

Uh, opened up 3 webpages, went to market for a few minutes and went back to the browser. Required no reloading.

Or do you want some more heavy multitasking? :)

Edit:
With some more apps running, I still have to reload the pages :(
Mild multitasking is ok though, all swap space does get used :) I need to get a class 6 SD card, since I currently have a class 2/4 :\ It isn't doing wonders for performance, but it is better than before.
 
Upvote 0
can someone elaborate on this topic a little more? i dont think i set up swapper correctly because my phone ends up showing 0 free space on swap after using it for 15 minutes or so. i know my swap partition is formatted correctly but im not sure how to set up swapper. under "advanced prefrences" i click "swap partition" and it says "/dev/block/mmcblk0p3" i tried cahnging it to "1p2" like the original poster but when i turned swapper on i got "failed" messages across the board.

im using a 4gb class 6 d card formatted fat32/ext3/swap.
 
Upvote 0
thanks tisti

thats the setup im using now...actually thats exactly what was preloaded in swapper. it still seems as if the swap partition fills up within a few minutes and then the entire phone sloooooooows done a lot. then i turn swap off, then on...and its back up to full speed.

Aye, you are not the only one reporting this. I'm experiencing it too and there are two plausible answers:
1. The speed of the built-in microSD reader sucks balls and does not use the class6 to it's limits.
2. Software problem :p

Are there any apps that benchmark SD cards on droid atm?
 
Upvote 0
@tisti

you need root, busybox;

/dev/block/mmcblk0p1 967544 134404 823312 14% /data
/dev/block/mtdblock5 36608 1556 35052 4% /dbdata
/dev/block/mtdblock4 89600 5012 84588 6% /cache
/dev/block/vold/180:2
6877840 2176960 4700880 32% /sdcard
/dev/block/vold/179:9
7969280 1544128 6425152 19% /sdcard/
sd
# hdparm -tT /dev/block/vold/180:2

/dev/block/vold/180:2:
Timing buffer-cache reads: hdparm: HDIO_DRIVE_CMD: Inappropriate
ioctl for device
54 MB in 0.54 seconds = 102125 kB/s
Timing buffered disk reads: 11 MB in 3.09 seconds = 3636 kB/s
hdparm: HDIO_DRIVE_CMD: Inappropriate ioctl for device
#

# hdparm -t /dev/block/vold/180:2

/dev/block/vold/180:2:
Timing buffered disk reads: 11 MB in 3.08 seconds = 3650 kB/s
hdparm: HDIO_DRIVE_CMD: Inappropriate ioctl for device
# hdparm -t /dev/block/vold/180:2

/dev/block/vold/180:2:
Timing buffered disk reads: 17 MB in 3.16 seconds = 5506 kB/s
hdparm: HDIO_DRIVE_CMD: Inappropriate ioctl for device
# hdparm -t /dev/block/vold/180:2

/dev/block/vold/180:2:
Timing buffered disk reads: 14 MB in 3.07 seconds = 4662 kB/s
hdparm: HDIO_DRIVE_CMD: Inappropriate ioctl for device
#
 
Upvote 0
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