Setting up swapper to use swap partition?


Last Updated:

  1. tisti

    tisti Well-Known Member This Topic's Starter

    Joined:
    Sep 20, 2009
    Messages:
    145
    Likes Received:
    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 :)
     

    Advertisement
  2. Andronix

    Andronix Well-Known Member

    Joined:
    Aug 31, 2009
    Messages:
    676
    Likes Received:
    16
    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?
     
  3. pegasus21

    pegasus21 Well-Known Member

    Joined:
    Aug 26, 2009
    Messages:
    253
    Likes Received:
    1
    If I'm not mistaken, he's using the one at modaco
     
  4. tisti

    tisti Well-Known Member This Topic's Starter

    Joined:
    Sep 20, 2009
    Messages:
    145
    Likes Received:
    5
    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.
     
  5. Andronix

    Andronix Well-Known Member

    Joined:
    Aug 31, 2009
    Messages:
    676
    Likes Received:
    16
    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?
     
  6. tisti

    tisti Well-Known Member This Topic's Starter

    Joined:
    Sep 20, 2009
    Messages:
    145
    Likes Received:
    5
    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?
     
  7. courtstarr24

    courtstarr24 New Member

    Joined:
    Sep 27, 2009
    Messages:
    4
    Likes Received:
    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.
     
  8. Andronix

    Andronix Well-Known Member

    Joined:
    Aug 31, 2009
    Messages:
    676
    Likes Received:
    16
    do you have custom rom with swap support?
     
  9. courtstarr24

    courtstarr24 New Member

    Joined:
    Sep 27, 2009
    Messages:
    4
    Likes Received:
    0
    ive been on a couple different roms. currently im using MLIGN v2.01. it supports linux swap.
     
  10. tisti

    tisti Well-Known Member This Topic's Starter

    Joined:
    Sep 20, 2009
    Messages:
    145
    Likes Received:
    5
    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)
     
    linuxrules likes this.
  11. courtstarr24

    courtstarr24 New Member

    Joined:
    Sep 27, 2009
    Messages:
    4
    Likes Received:
    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.
     
  12. Andronix

    Andronix Well-Known Member

    Joined:
    Aug 31, 2009
    Messages:
    676
    Likes Received:
    16
    usual rule with swap file is use the same size as hw ram. 32mb is way to low.
     
  13. tisti

    tisti Well-Known Member This Topic's Starter

    Joined:
    Sep 20, 2009
    Messages:
    145
    Likes Received:
    5
    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?
     
  14. courtstarr24

    courtstarr24 New Member

    Joined:
    Sep 27, 2009
    Messages:
    4
    Likes Received:
    0
    when inside the swapper app, i changed the swap size to 96 instead of the standard 32 that it defaulted too.
     
  15. Andronix

    Andronix Well-Known Member

    Joined:
    Aug 31, 2009
    Messages:
    676
    Likes Received:
    16
    @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
    #
     
  16. kam187

    kam187 Well-Known Member

    Joined:
    Aug 3, 2009
    Messages:
    1,320
    Likes Received:
    46

Share This Page

Loading...