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

Root Virtual Memory

Is making a swap partition even really needed since SSM uses swap files and not a partition? I long clicked /dev/block/mmcblk0p3 and set the priority to 100 and it is not used. However, it is using /data/swap/swapfile.swp and /data/app/swapfile.swp... So...I've got my swappiness on and the phone is working great, but I'm not understanding what the 3 partitions I created for SSM are for. I think one is storage and another is where my data and apps get moved to...and I thought the 3rd was for swap...but then again I'm an idiot. Could anyone clarify?


you made 2 partitions and1 already existed for total of 3. mmcblk0p1 is sd storage. 0p2 is /data/app. 0p3 is dalvik cache. ssm can't use partition unless you make 0p4. swapfiles work fine
 
Koumajutsu, *nix God.
Thanks man. I'm new here, but this is fantastic. The two biggest gripes I had about my phone just got fixed. I now have a swapfile and 4 gigs of "internal" memory. I'm laughing b/ the chick at Boost was telling me how the pricier phones had more internal memory. Got a 32Gb class 4 sandisk for 20 bucks. Now this is a superphone. Thanks to you. Keep up the good work. Also, moving to TJ/SD this week (again). Have yet to see a donkey show, but I've seen a LOT of other shit on Coahuilla. xD
Peace.
*EDIT*
Ok, so I have FA19 rooted with CTmod 3.68 running nicely on it. Got my data all sorted on my now massive (and likely overkill) 4Gb data partition. I'm really struggling with figuring out the swap file tho. When I partitioned the SD card in CWmod, I set aside 256 Mb of "swap". If I stick my SD card into a card reader, I can easily find my ext4 partition and my 256 swap, along w/ the space leftover that my non-phone data is being written to. Heres the thing. When I go into my CTmod KoumaKernal "swap"settings, what directory do I need to be "pointing" my system to? I can't seem to figure out (I've tried cat-ing it, etc) where it went. I feel like a moron, but I'm guessing it's something really easy that I'm just missing. Lost at the prompt, I really appreciate the help. I hope at some point I can give back a little to this place. My rooted phone is ****ing tits. Srsly. TIA....
 
Koumajutsu, *nix God.
Thanks man. I'm new here, but this is fantastic. The two biggest gripes I had about my phone just got fixed. I now have a swapfile and 4 gigs of "internal" memory. I'm laughing b/ the chick at Boost was telling me how the pricier phones had more internal memory. Got a 32Gb class 4 sandisk for 20 bucks. Now this is a superphone. Thanks to you. Keep up the good work. Also, moving to TJ/SD this week (again). Have yet to see a donkey show, but I've seen a LOT of other shit on Coahuilla. xD
Peace.
*EDIT*
Ok, so I have FA19 rooted with CTmod 3.68 running nicely on it. Got my data all sorted on my now massive (and likely overkill) 4Gb data partition. I'm really struggling with figuring out the swap file tho. When I partitioned the SD card in CWmod, I set aside 256 Mb of "swap". If I stick my SD card into a card reader, I can easily find my ext4 partition and my 256 swap, along w/ the space leftover that my non-phone data is being written to. Heres the thing. When I go into my CTmod KoumaKernal "swap"settings, what directory do I need to be "pointing" my system to? I can't seem to figure out (I've tried cat-ing it, etc) where it went. I feel like a moron, but I'm guessing it's something really easy that I'm just missing. Lost at the prompt, I really appreciate the help. I hope at some point I can give back a little to this place. My rooted phone is ****ing tits. Srsly. TIA....


stl13 is internal storage that is now unused. can't turn to swap with app. go to terminal emulator
su
mkswap /dev/block/stl13

now use koumamod to look there

reboot

yay
 
Got it. I'm on it. Thanks.

I'm a little confused tho...is that scripting a new temp swapspace on boot everytime? Did I make my partition for nothing...or is this what will allow his app to "see" that space? My command line skills are pretty far from ninja-like.
*EDIT*
Scratch that. Question answered. Swappin like a champion. Chicken tit blessings upon you. I do wonder if I can set up multiple swap areas in that one partition, or would I have to have separate partitions....and what are the advantages of it? I've got all this stuff floating around my dome from reading this thread for the last 2 hours.

Other than that, just trying to figure out my sweet spot for "priority" and "swappiness". My understanding is that a lower swappiness will only call on my SD partition if need be, saving my SD card some life. However, these things are getting redonculously cheap, and my phone is hella fast now (just saw my 256mb of added RAM in my running app screen xD. Winning!!!). Not sure I should touch anything at this point. I've never seen my phone respond so fast, and I'm running buhzillion apps. THANK YOU THANK YOU THANK YOU!!!!
 
what you mean multiple swaps on partition? why not make whole partition swap instead of putting swapfile on it? assuming nothing else is...

I use ssm so data on stl13 and class 10 sd look like vfat-ext4(app)-ext4(dalvik)-swap
 
what you mean multiple swaps on partition? why not make whole partition swap instead of putting swapfile on it? assuming nothing else is...

I use ssm so data on stl13 and class 10 sd look like vfat-ext4(app)-ext4(dalvik)-swap
that is how mine is but some put an overflow 2nd swap in fat, don't know why!!!!!!
 
if you got space a 32mb file on stl13 with data would be best since it faster than sdcard but swapping a whole partition you probably will never need
 
stl13 is internal storage that is now unused. can't turn to swap with app. go to terminal emulator
su
mkswap /dev/block/stl13

now use koumamod to look there

reboot

yay

Ok. Works. I've got 16396 of swap showing up in "free".
All good. But now, CWM will not complete a backup.
Says it can't mount /data .

Phone has 16GB SDCard, with 4GB setup for internal storage.
Leaves the 2GB card for swapspace, which I ran the above commands.

/dev/block/mmcblk0p2 appears to be the /data partition

Even trying to mount it manually in CWM says the same thing.

Before I created the new swapspace, the backup worked without error.
( was I really backing up my /data then? or was CWM fooled by the original partition on /dev/block/stl13 still existing? )
 
Logs from CWM show.... ( which are scrolling off-screen )
mount: mounting /dev/block/stl13 (fai) led: invalid argument
W: failed to mount /dev/block/stl (13)

Looks like CWM is trying to mount the internal storage, as a default /data
 
Logs from CWM show.... ( which are scrolling off-screen )
mount: mounting /dev/block/stl13 (fai) led: invalid argument
W: failed to mount /dev/block/stl (13)

Looks like CWM is trying to mount the internal storage, as a default /data

From my understanding it always has. Recovery has it's own kernel, which has no idea you're putting data on sd. have you tried mounting data manually in mounts and storage?
 
Yup.. tried that..

Of course, I ran the above mkswap command on the raw device, so it's not mountable. And it appears to be hard-coded for that device.

And, since /data is out on the sdcard on /dev/block/mmcblk0p2 , I don't know if CWM will ever back it up ???

I will reflash the thing from scratch, and put a smaller swapfile on the original /dev/block/stl13 partition. ( its the fastest for swap, so I read? )

Seems crazy to be backing up a huge unnecessary swapfile during CWM backup, but then it may work, and even restore...
 
I've read through this entire Virtual Memory sub-forum 2x over the past few hours for the first time to try and understand it all. I understand about Virtual Memory and what it's for etc., but I'm confused about a few things.

1- am I understanding Correct that some of you have an SSM setup and now are using a Swap-File in your Internal-Memory, which acts as the "whole" of the memory constantly being used at all times and in fact is making the Phone very Fast?

2- in this case of VM, is Data mode better vs. SSM?

3- Partition or File for the Virtual Memory?, and how does that relate to using the Internal Memory as a Swap file that actually increases the size of the systems "entire" live-being used memory.

little lost here, hope my questions make sense, or am I more lost than I know?...


---- I'm want to use this so I can make my phone as fast as possible, I am ready to wipe it out and start all over again, just waiting to know what to do and what setup to use.-----
 
I've read through this entire Virtual Memory sub-forum 2x over the past few hours for the first time to try and understand it all. I understand about Virtual Memory and what it's for etc., but I'm confused about a few things.

1- am I understanding Correct that some of you have an SSM setup and now are using a Swap-File in your Internal-Memory, which acts as the "whole" of the memory constantly being used at all times and in fact is making the Phone very Fast?

2- in this case of VM, is Data mode better vs. SSM?

3- Partition or File for the Virtual Memory?, and how does that relate to using the Internal Memory as a Swap file that actually increases the size of the systems "entire" live-being used memory.

little lost here, hope my questions make sense, or am I more lost than I know?...


---- I'm want to use this so I can make my phone as fast as possible, I am ready to wipe it out and start all over again, just waiting to know what to do and what setup to use.-----
i used the kouma partion tool and made 4 partions, fat (rest of card), ext4 (1500mb), ext4(500mb), swap(256mb), i think something like that. i'm running ssm and is fast. just remember data is good with a fast card,ssm is better with a medium or slower card.
 
Thanks. I'm not sure if I'm understanding it though, how it works. From what I read I'm understanding that your placing a swap file in the internal partition, which then fools the system in thinking it has more ram?
am i right?

I need speed. Just using the SSM how I was with a swap file, I still had lags. Everything took its time opening up.
 
If anyone can and has some time, could they help me get this going. As of now I have CTMod3.68, Koumamod1.7, setup SSM with 11836MB-fat32/2048MB-ext2/2048MB-swap, then after all the ctmod was installed and configuring was done I setup 1 swap file at data/app/swap/swapfile, 512 MB, priority 100, swapiness 60.

I have SDParter, Meminfo, Swapper2 (for root users) and Terminal Emulator installed.

I'm not even sure if I should have set it up this way, but I will change it to whatever is suggested.

I want to setup what were talking about here, the virtual memory and I'm not even sure if all of my partitions are being used right now anyway.

I'll change and setup whatever needs to be done if someone can walk me through it.
 
I just noticed there is a 32 MB swapfile.swp file right on my sdcard. I dont know how it got there. I think I might not know what I'm doing again. lol
 
I just noticed there is a 32 MB swapfile.swp file right on my sdcard. I dont know how it got there. I think I might not know what I'm doing again. lol

The best way would be to use kouma's tool and make a total of a fat ,ext 4 ,ext 4, and swap so that would be 4 partitions. Then the swap would be on swap in there would be no worries of making a folder ,put it somewhere It would have its own partition.
 
I tried that, I can't make an exact numbered partition so I setup the last one as Swap 548 MB, but then it wont work because it says Partitions in Use and that I must disable and unmount them, but Im not sure how.
 
I had the same problem, what I did was made the tool a system app, then use clockworkmod to partition the card that will unmount partitions, then use the tool to make your new partition slide the fat down lower smaller and then it will give you more room to make more partitions and then you make them and slide the fat back to full when done. maybe somebody else will chime in and tell us how to unmount partitions, I tried it in clockwork mod and it didn't work.
 
But overall the whole idea here is to wind up using the internal data partition, which is unused, to put a swap file there so it can be used as more memory, ... right?

That's what I got out of this, am I wrong about that or is that what is going on?
 
Something must be wrong anyway, I cant access my sdcard anymore from my pc and I'm not sure I understand what my setup actually is. I checked through terminal but it's confusing the hel out of me.

I'm cross checking through about 3 different pages on the forum between this page and a few before it, the new koumamod.apk post, and a few others, but I think I'm getting more confused.
 
Something must be wrong anyway, I cant access my sdcard anymore from my pc and I'm not sure I understand what my setup actually is. I checked through terminal but it's confusing the hel out of me.

I'm cross checking through about 3 different pages on the forum between this page and a few before it, the new koumamod.apk post, and a few others, but I think I'm getting more confused.
if not post screenshots for others to help with, if infirno can't
 
Back
Top Bottom