• 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
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?
 
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.
 
there should be a setting that browser has priority over other apps regarding cleaning ram.

btw. how large is your swap file? do you see sense in using it?
 
It's 32mb's and sure I see sense in using it. Just need a class6 card, which I don't have and is giving me some lag while its rw to the card.

Where would that setting be located? It's probably fixed at compile time?
 
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.
 
ive been on a couple different roms. currently im using MLIGN v2.01. it supports linux swap.

Eh, you have a dream then?

Did you try pointing swapper to /dev/block/mmcblkXpY

Where X = 0 (if you have a dream/magic)

and

Y = the partition on the SD card that holds swap (yours would be 3)
 
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.
 
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?
 
@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
#
 
Back
Top Bottom