[MOD] MultiSwap v1.1.0 [All in One] Prioritized Multiple Shared Swap

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
Ah, yes, I see it's /vendor/firmware/misc not /data/misc

I have a noob question. If cache and misc are not really used, why do we partition them, mount them and use them for swap? Why not just free them up for more RAM? Or if not RAM, why not just have them as normal folders in their prospective positions rather than mount points?

Please no 'you just can't do that' answers. If someone could explain or give me a link (I've searched, but cannot find much information about the physical side of our Senny's).
The partitions are used by the phone and it not like windows mobile 5 and can use emmc for RAM, hboot and/or recovery are responsible for partitions AFAIK and I personally would not try messing with partitions unless I had a box full of free phones I wouldn't mind bricking :D
I think mike1986 normally posts the partition info, have a search for it ;)

Please creat this mode for kingsens. 4.0.0 rom... I test all version but not work in this rom. Kingsens one the best sence 5 rom
Could you link me to ROM?
What kernel is used? Enter code below into terminal:
Code:
uname -a
And what busybox? Enter code below into terminal:
Code:
busybox cat --help
 
  • Like
Reactions: -Jonny-

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
Yes I did.But nothing happens when I reboot.Still no swap files are created :(
Thanks anyway.Regards

Sent from my HTC Sensation using Tapatalk 2
Can you enter the code below into terminal and copy/paste the outcome here, I'm on Slim at the moment and may not be the same as CM
Code:
df
cat /*/mounts
Also can someone do the same for ViperS v5.x, thanks.
 

m3mmo

Senior Member
Sep 1, 2011
550
101
0
39
Bugojno
Can you enter the code below into terminal and copy/paste the outcome here, I'm on Slim at the moment and may not be the same as CM
Code:
df
cat /*/mounts
Also can someone do the same for ViperS v5.x, thanks.
Code:
 [email protected]:/ $ df
Filesystem               Size     Used     Free   Blksize
/dev                   304.0M   128.0K   303.9M   4096
/sys/fs/cgroup         304.0M    12.0K   304.0M   4096
/mnt/asec              304.0M     0.0K   304.0M   4096
/mnt/obb               304.0M     0.0K   304.0M   4096
/mnt/fuse              304.0M     0.0K   304.0M   4096
/vendor/firmware/misc   199.8M    21.5M   178.3M   4096
/vendor/firmware/adsp   199.8M     5.7M   194.1M   4096
/system                787.5M   477.9M   309.7M   4096
/data                    1.1G   798.4M   377.8M   4096
/cache                 118.1M     4.1M   114.0M   4096
/devlog                 19.7M    16.0M     3.8M   4096
/data/sdext2          1009.3M   474.0M   535.3M   4096
/mnt/asec/radiotime.player-1    21.0M    18.1M     2.9M   4096
/mnt/media_rw/sdcard0: Permission denied
/mnt/secure/asec: Permission denied
/storage/sdcard0         6.6G     4.4G     2.2G   4096
/mnt/asec/com.n0n3m4.rtcw4a-1    14.1M    13.0M     1.0M   4096
/mnt/asec/eu.livesport.Rezultati_com-1     7.1M     5.8M     1.2M   4096
1|[email protected]:/ $ su
[email protected]:/ # df
Filesystem               Size     Used     Free   Blksize
[email protected]:/ # df
Filesystem               Size     Used     Free   Blksize
/dev                   304.0M   128.0K   303.9M   4096
/sys/fs/cgroup         304.0M    12.0K   304.0M   4096
/mnt/asec              304.0M     0.0K   304.0M   4096
/mnt/obb               304.0M     0.0K   304.0M   4096
/mnt/fuse              304.0M     0.0K   304.0M   4096
/vendor/firmware/misc   199.8M    21.5M   178.3M   4096
/vendor/firmware/adsp   199.8M     5.7M   194.1M   4096
/system                787.5M   477.9M   309.7M   4096
/data                    1.1G   798.4M   377.8M   4096
/cache                 118.1M     4.1M   114.0M   4096
/devlog                 19.7M    16.0M     3.8M   4096      /data/sdext2          1009.3M   474.0M   535.3M   4096
/mnt/asec/radiotime.player-1    21.0M    18.1M     2.9M   4096
/mnt/media_rw/sdcard0     6.6G     4.4G     2.2G   4096
/mnt/secure/asec         6.6G     4.4G     2.2G   4096      /storage/sdcard0         6.6G     4.4G     2.2G   4096
/mnt/asec/com.n0n3m4.rtcw4a-1    14.1M    13.0M     1.0M   4096
/mnt/asec/eu.livesport.Rezultati_com-1     7.1M     5.8M     1.2M   4096
[email protected]:/ # cat /*/mounts
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/fuse tmpfs rw,seclabel,relatime,mode=775,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mmcblk0p17 /vendor/firmware/misc vfat ro,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/mmcblk0p19 /vendor/firmware/adsp vfat ro,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
[email protected]:/ # df                                         Filesystem               Size     Used     Free   Blksize   [email protected]:/ # df
Filesystem               Size     Used     Free   Blksize   /dev                   304.0M   128.0K   303.9M   4096
/sys/fs/cgroup         304.0M    12.0K   304.0M   4096      /mnt/asec              304.0M     0.0K   304.0M   4096
/mnt/obb               304.0M     0.0K   304.0M   4096      /mnt/fuse              304.0M     0.0K   304.0M   4096      /vendor/firmware/misc   199.8M    21.5M   178.3M   4096     /vendor/firmware/adsp   199.8M     5.7M   194.1M   4096
/system                787.5M   477.9M   309.7M   4096      /data                    1.1G   798.4M   377.8M   4096      /cache                 118.1M     4.1M   114.0M   4096      /devlog                 19.7M    16.0M     3.8M   4096      /data/sdext2          1009.3M   474.0M   535.3M   4096      /mnt/asec/radiotime.player-1    21.0M    18.1M     2.9M   4096                                                          /mnt/media_rw/sdcard0     6.6G     4.4G     2.2G   4096
/mnt/secure/asec         6.6G     4.4G     2.2G   4096      /storage/sdcard0         6.6G     4.4G     2.2G   4096
/mnt/asec/com.n0n3m4.rtcw4a-1    14.1M    13.0M     1.0M   4096
/mnt/asec/eu.livesport.Rezultati_com-1     7.1M     5.8M     1.2M   4096
[email protected]:/ #
Code:
 [email protected]:/ $ df
Filesystem               Size     Used     Free   Blksize
/dev                   304.0M   128.0K   303.9M   4096
/sys/fs/cgroup         304.0M    12.0K   304.0M   4096
/mnt/asec              304.0M     0.0K   304.0M   4096
/mnt/obb               304.0M     0.0K   304.0M   4096
/mnt/fuse              304.0M     0.0K   304.0M   4096
/vendor/firmware/misc   199.8M    21.5M   178.3M   4096
/vendor/firmware/adsp   199.8M     5.7M   194.1M   4096
/system                787.5M   477.9M   309.7M   4096
/data                    1.1G   798.4M   377.8M   4096
/cache                 118.1M     4.1M   114.0M   4096
/devlog                 19.7M    16.0M     3.8M   4096
/data/sdext2          1009.3M   474.0M   535.3M   4096
/mnt/asec/radiotime.player-1    21.0M    18.1M     2.9M   4096
/mnt/media_rw/sdcard0: Permission denied
/mnt/secure/asec: Permission denied
/storage/sdcard0         6.6G     4.4G     2.2G   4096
/mnt/asec/com.n0n3m4.rtcw4a-1    14.1M    13.0M     1.0M   4096
/mnt/asec/eu.livesport.Rezultati_com-1     7.1M     5.8M     1.2M   4096
1|[email protected]:/ $ su
[email protected]:/ # df
Filesystem               Size     Used     Free   Blksize
[email protected]:/ # df
Filesystem               Size     Used     Free   Blksize
/dev                   304.0M   128.0K   303.9M   4096
/sys/fs/cgroup         304.0M    12.0K   304.0M   4096
/mnt/asec              304.0M     0.0K   304.0M   4096
/mnt/obb               304.0M     0.0K   304.0M   4096
/mnt/fuse              304.0M     0.0K   304.0M   4096
/vendor/firmware/misc   199.8M    21.5M   178.3M   4096
/vendor/firmware/adsp   199.8M     5.7M   194.1M   4096
/system                787.5M   477.9M   309.7M   4096
/data                    1.1G   798.4M   377.8M   4096
/cache                 118.1M     4.1M   114.0M   4096
/devlog                 19.7M    16.0M     3.8M   4096      /data/sdext2          1009.3M   474.0M   535.3M   4096
/mnt/asec/radiotime.player-1    21.0M    18.1M     2.9M   4096
/mnt/media_rw/sdcard0     6.6G     4.4G     2.2G   4096
/mnt/secure/asec         6.6G     4.4G     2.2G   4096      /storage/sdcard0         6.6G     4.4G     2.2G   4096
/mnt/asec/com.n0n3m4.rtcw4a-1    14.1M    13.0M     1.0M   4096
/mnt/asec/eu.livesport.Rezultati_com-1     7.1M     5.8M     1.2M   4096
[email protected]:/ # cat /*/mounts
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/fuse tmpfs rw,seclabel,relatime,mode=775,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mmcblk0p17 /vendor/firmware/misc vfat ro,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/mmcblk0p19 /vendor/firmware/adsp vfat ro,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
[email protected]:/ # df                                         Filesystem               Size     Used     Free   Blksize   [email protected]:/ # df
Filesystem               Size     Used     Free   Blksize   [email protected]:/ # cat /*/mounts
rootfs / rootfs ro,relatime 0 0                             tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0    proc /proc proc rw,relatime 0 0                             sysfs /sys sysfs rw,seclabel,relatime 0 0                   selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0                   none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0                                                    tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0                                                        tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0                                                         tmpfs /mnt/fuse tmpfs rw,seclabel,relatime,mode=775,gid=1000 0 0                                                        none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mmcblk0p17 /vendor/firmware/misc vfat ro,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0        /dev/block/mmcblk0p19 /vendor/firmware/adsp vfat ro,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/devlog /devlog ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
/dev/block/vold/179:66 /data/sdext2 ext2 rw,seclabel,relatime 0 0
/dev/block/dm-0 /mnt/asec/radiotime.player-1 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0
/dev/block/vold/179:65 /mnt/media_rw/sdcard0 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:65 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/dm-1 /mnt/asec/com.n0n3m4.rtcw4a-1 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0
/dev/block/dm-2 /mnt/asec/eu.livesport.Rezultati_com-1 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0
[email protected]:/ #
Sorry if I copied it 2x my bad.It seems that something is permission related!?
Sent from my HTC Sensation using Tapatalk 2
 
Last edited:
  • Like
Reactions: hinxnz

parsvbulletin

Senior Member
Jan 18, 2011
247
68
0
shahrekord
The partitions are used by the phone and it not like windows mobile 5 and can use emmc for RAM, hboot and/or recovery are responsible for partitions AFAIK and I personally would not try messing with partitions unless I had a box full of free phones I wouldn't mind bricking :D
I think mike1986 normally posts the partition info, have a search for it ;)


Could you link me to ROM?
What kernel is used? Enter code below into terminal:
Code:
uname -a
And what busybox? Enter code below into terminal:
Code:
busybox cat --help

Thank you for your useful mod and your support.

This rom is sense 5 rom whit Sebastian fm kernel version 1.0.3 and busybox 1.22.0
 

McLongDong

Senior Member
Oct 7, 2011
737
91
0
Hello Hinz,

I recently installed your swap and I have a few comments.

First, it makes my phone faster so kudos. But, is it supposed to drain more battery? Before using your multiswap, I on had 93MB of free RAM. After installing yours (version 4), I had 192MB :D. Is this part of the reason why the battery is draining because it has to work hard to continually swap RAM to get to 192MB? Just wondering.

Second, I am using adblock and after installing your swap I don't have "enough space on the partition" (see attachment). Any fix on that?

Thanks
 

Attachments

rzr86

Senior Member
May 21, 2012
8,109
2,455
258
35
Nafpaktos
Hello Hinz,

I recently installed your swap and I have a few comments.

First, it makes my phone faster so kudos. But, is it supposed to drain more battery? Before using your multiswap, I on had 93MB of free RAM. After installing yours (version 4), I had 192MB :D. Is this part of the reason why the battery is draining because it has to work hard to continually swap RAM to get to 192MB? Just wondering.

Second, I am using adblock and after installing your swap I don't have "enough space on the partition" (see attachment). Any fix on that?

Thanks
type in terminal df /system
see how free space you have in system partition
 
  • Like
Reactions: hinxnz

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
Hello Hinz,

I recently installed your swap and I have a few comments.

First, it makes my phone faster so kudos. But, is it supposed to drain more battery? Before using your multiswap, I on had 93MB of free RAM. After installing yours (version 4), I had 192MB :D. Is this part of the reason why the battery is draining because it has to work hard to continually swap RAM to get to 192MB? Just wondering.

Second, I am using adblock and after installing your swap I don't have "enough space on the partition" (see attachment). Any fix on that?

Thanks
Your system partition is too low on space like rzr86 said, adaway needs to update the host file stored on your system. Your free RAM is contributed by the size of swap, swappiness, LMK and VM values. You shouldn't notice a big drop in battery, actually swap can also save battery depending on your usage.
 

m3mmo

Senior Member
Sep 1, 2011
550
101
0
39
Bugojno
Can u make this thing work on android 4.4.4?I tried to install it but when I check swaps there is nothing created.:(

-Sent from HTC SENSATION using Tapatalk-