I haven't noticed that lag on my setup. I guess you have compcache turned on. Turn it off and leave just sdcard swap.
According to the Galaxo configuration menu, compcache is turned off. Is there any other way to see if compcache is active?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I haven't noticed that lag on my setup. I guess you have compcache turned on. Turn it off and leave just sdcard swap.
i cant do resize in parted while booted into the phone as it says the space is in use (i have music and videos stored in the main partision)not sure what you're doing. i was thinking about 2nd line of 'free' output.
[root@galaxy:/]free
total used free shared buffers
Mem: 96568 94824 1744 0 72
Swap: 86836 57292 29544
Total: 183404 152116 31288
[root@galaxy:/]
my swap partition is ~85megs.
oh, and to check that compcache is disabled, check output of 'lsmod'. there shouldn't be ramzswap module listed.
free
total used free shared buffers
Mem: 95948 91592 4356 0 392
Swap: 0 0 0
Total: 95948 91592 4356
#
Model: SD SU08G (sd/mmc)
Disk /dev/block/mmcblk1: 8169MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 512B 8137MB 8137MB primary fat32 lba
2 8137MB 8169MB 31.9MB primary linux-swap(v1)
free
total used free shared buffers
Mem: 95948 92672 3276 0 968
Swap: 213788 27656 186132
Total: 309736 120328 189408
swapoff /dev/block/mmcblk1p2
heheh, i guess you're turning it off because phone is not snappy anymore once it starts using swap a lot. using swap is still much faster than reloading from the net...
), swapping doesn't really help. From what I found, not only that it doesn't help, it actually makes things worse. Android application lifecycle is somewhat different than what you might call a "normal" application lifecycle. In Android, an application lives even if its process has been terminated. That means that normally running loads of apps doesn't pose a problem at all because you don't have to have loads of processes alive. But if you use big enough swap, it's unlikely that either of app's processes will ever get killed. And that's a bad thing, because if you try to focus an app which resources are not in RAM, a swap will kick in. And that's slow. It's much quicker to fork a new process and have a (running) app reinitialize itself. And in Android, it supposed to be that way.
).T:\f.bresslau>adb devices
* daemon not running. starting it now *
* daemon started successfully *
List of devices attached
I7500as8rDT4 recovery
T:\f.bresslau>adb shell
/ # su
su
####### Starting parted #######
# parted /dev/block/mmcblk1
####### Checking partition sizes #######
(parted) print
print
print
Model: SD 00000 (sd/mmc)
Disk /dev/block/mmcblk1: 8166MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 8135MB 8135MB primary fat32 lba
2 8135MB 8166MB 31.5MB primary linux-swap(v1)
####### Resizing inside parted #######
resize 1 32.3kb 8050mb
resize 2 8050mb 8166mb
####### Checking the results with print #######
(parted) print
print
print
Model: SD 00000 (sd/mmc)
Disk /dev/block/mmcblk1: 8166MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 8050MB 8050MB primary fat32 lba
2 8050MB 8166MB 116MB primary linux-swap(v1)
(parted) quit
Information: You may need to update /etc/fstab.
####### Turning swap on #######
# swapon /dev/block/mmcblk1p2
####### Checking the card's speed (it's a class 6 8GB) #######
# hdparm -t /dev/block/mmcblk1p2
/dev/block/mmcblk1p2:
Timing buffered disk reads: 43 MB in 3.01 seconds = 14627 kB/s
hdparm: HDIO_DRIVE_CMD: Inappropriate ioctl for device
# hdparm -t /dev/block/mmcblk0
/dev/block/mmcblk0:
Timing buffered disk reads: 43 MB in 3.01 seconds = 14604 kB/s
hdparm: HDIO_DRIVE_CMD: Inappropriate ioctl for device
####### checking for swap with free #######
# free
total used free shared buffers
Mem: 94140 92344 1796 0 472
Swap: 113572 4308 109264
Total: 207712 96652 111060