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

Root Virtual Memory

and I use free market app "meminfo" and select "show swap" from menu. that only way I know of to see how much is swapped where.
free in terminal only show totals of swap used/free so you can tell if both are swapon'd by total size of swap but not if they are both really used. could be bug in meminfo but it shows free/used/priority/location of each swap so it appears it pointless having 2nd swap
were you aware of one of swaps showing up as activated but not being used? idk how to view that in terminal so this apk only reason I noticed anything

In terminal do
Code:
cat /proc/swaps
It will show what is where
 
o duh I knew that lol never think bout it when I need our though. apk convenient though cuz it also show details on regular memory and running process and other stuff

and do u use multiple swaps? have you noticed what I'm talking about?
 
o duh I knew that lol never think bout it when I need our though. apk convenient though cuz it also show details on regular memory and running process and other stuff

and do u use multiple swaps? have you noticed what I'm talking about?

I use multiple swaps, but do not understand how to set the priority... Lol
I just swapon the one i want with top priority first, then create and start the second, making it a lower priority... Lol
 
do you then point the koumamod.apk paths at them after they made? cuz it looks like priorities are pointless if your trying to use percentages like I think kouma apk is trying to do. individually swapon -1/-2 appears to be same as big#/lil#
so even though 2nd swap partition is active it's not in use

if im right and percentages just mean which used first not actual distribution kouma might as well make a high/mid/low priority for the order (hi/mid/lo/loest = -1/-2/-3/-4)
instead of blank value box. maybe like a drag down menu with 2-4 choices depending on how many swaps you got

still haven't determined if
1. I'm misunderstanding concept
2. apk bug
3. priority value is % or order
 
I'm on miui. Kouma's apk doesn't work for me.
But priorities are order, and swappiness is frequency of use
 
ok since original value was 100 I figured I could set swappiness 40%, and out of that 40% have 70% sent to one file and 30% to other.

and why won't koumamod.apk work? it posted on kernel thread for non ctmod users. ctmod 3.6 comes with 1.2

and link on kernel page say 1.2 but is typo and actually 1.3
you gotta move to /system/app and fix permissions not just install
 
I thought his ramdisc and his app played together, that you needed the kernel for the apk... If I'm wrong, someone (kouma?) correct me and i will give it a go

:)
 
o I guess I assumed you had his kernel on miui idk nuthin bout that ROM.your name pops up in most threads I look at so I figured if seen it in kernel thread too

edit:
didn't his kernel enable swap? thought how this thread started was that his kernel made swap possible
 
ok since original value was 100 I figured I could set swappiness 40%, and out of that 40% have 70% sent to one file and 30% to other.

and why won't koumamod.apk work? it posted on kernel thread for non ctmod users. ctmod 3.6 comes with 1.2

and link on kernel page say 1.2 but is typo and actually 1.3
you gotta move to /system/app and fix permissions not just install

Swappiness is not a percentage, it is an arbitrary number. the only thing that matters is that a higher priority swap has a higher number.
I use 100 for a couple reasons.
1) it's much higher than negative numbers, so it will have a higher priority than swaps mounted with swapon without a -p flag.
2) it leaves plenty of room for more swaps in the positive number range.

the fact that there is info filled in already in earlier versions of the apk was a goof on my part. It was a bit of left over test code. the APK does not really try to mount that path and priority out of the box, you would have to click save for it to. treat it as merely an example.

I thought his ramdisc and his app played together, that you needed the kernel for the apk... If I'm wrong, someone (kouma?) correct me and i will give it a go

:)

They do, but there's bugs. Lately it seems the more bugs I squish, the more I make.
 
ha now you tell me after I made it a mission to turn those numbers into percentages. idk what else to do at 3 am on a day off tho I guess. and any particular reason swap is the second option?
 
ha now you tell me after I made it a mission to turn those numbers into percentages. idk what else to do at 3 am on a day off tho I guess. and any particular reason swap is the second option?

because it's an afterthought.
The apk was originally for changing the koumamod file so people were less likely to make mistakes fiddling with it on their own. When I noticed that we could add swap, and people wanted an easy way to set that up, I figured, "Why make a whole separate app? CT mod already has an extension to the settings menu to call my koumamod apk's main activity, so why not make use of that"
 
yup all that integrated pretty well and 1.3 work fine now I know priority thing not a bug. just need to be able to mkswap. have you worked on that part at all? there a ROM based on cm7 but look like MIUI that just popped up. got swapper app integrated in settings that mkswap and call at boot (only one and only on swap partition or sdcard swapfile) but if that part still under construction you should see how that got put together

switching the two options might be safer though cuz accidental save gonna make ur fone goofy plus once installed it not really needed. I only did that once not paying attention but u learned my lesson lol easy fix tho
 
yup all that integrated pretty well and 1.3 work fine now I know priority thing not a bug. just need to be able to mkswap. have you worked on that part at all? there a ROM based on cm7 but look like MIUI that just popped up. got swapper app integrated in settings that mkswap and call at boot (only one and only on swap partition or sdcard swapfile) but if that part still under construction you should see how that got put together

switching the two options might be safer though cuz accidental save gonna make ur fone goofy plus once installed it not really needed. I only did that once not paying attention but u learned my lesson lol easy fix tho

I believe 1.3 has the ability to make swapfiles, but not convert block devices to swap. I wanted to avoid issues if someone converted /dev/stl12 (/system) to swap because they have chunky fingers :D
 
successfully created 32mb file on /data/swap/ and 100mb file in /data/app/ using SSM and class 10 sd

no force closes. looks complete great job

and the proper permissions are w-w?
I had been making mine rw-rw-rw cuz I want sure. swapper 2 made them rw- --- ---
 
successfully created 32mb file on /data/swap/ and 100mb file in /data/app/ using SSM and class 10 sd

no force closes. looks complete great job

and the proper permissions are w-w?
I had been making mine rw-rw-rw cuz I want sure. swapper 2 made them rw- --- ---

I always set it to rw across the board. I thought my apk was setting that as well. Guess it's yet another bug.

Edit: looks like java.io.File.setReadable() only works on vfat file systems. I'll have to hack in a work around :(
 
I made a 32mb swap file with swapper2 in /data/swap then tried to point koumakernel to it by long pressing in the bland space. Kouma wouldn't even let me select the /data folder...let alone get into the swap folder I created inside of it. It tells me permission denied. On top of that swapper2 deletes the swap file as soon as I freeze it or swapoff...so even if I wanted kouma to use the swap file created by swapper I couldn't. I'm clueless. So far the only way I can get swap to work, with 1.3 or 1.4 is to use swapper2 and leave it on. What else do I need to tell you for you to be able to help?
 
I copied exactly what RTLflat did. I figured out how to get kouma to point to the /data folder and the /data/app folder. I had to change the permissions on the folders prior to pointing kouma to it so kouma wouldn't give me the "permission denied" message. Right now I've got 32mb in /data/swap and a 128mb swap in /data/app. Working flawlessly so far. Thanks guys. Have a great day! :-)
 
I copied exactly what RTLflat did. I figured out how to get kouma to point to the /data folder and the /data/app folder. I had to change the permissions on the folders prior to pointing kouma to it so kouma wouldn't give me the "permission denied" message. Right now I've got 32mb in /data/swap and a 128mb swap in /data/app. Working flawlessly so far. Thanks guys. Have a great day! :-)


try new koumamod 1.5 I think I had you do with 1.3. doesn't require changing permissions on /days
 
This may not be the right place for this but it seems there are a few here worried about their sd card right now Amazon has a samsung mb-mpaga 16g class 10 for 23 bucks and according to the details it's virtually indestructable. And I too spent my day flashing a Rom and tweaking it out to come here and find shiny new toys
 
This may not be the right place for this but it seems there are a few here worried about their sd card right now Amazon has a samsung mb-mpaga 16g class 10 for 23 bucks and according to the details it's virtually indestructable. And I too spent my day flashing a Rom and tweaking it out to come here and find shiny new toys


I got Transcend brand from Amazon

$20- 16gb class 10
$10- 8gb class 10
free shipping ordered together
 
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?
 
Also...you guys keep telling people to use terminal to mkdir /data/swap....but for other terminal noobs like myself....I just used my root explorer and went to the /data/ folder and created a new folder called swap inside of it. Is there a benefit to doing it in terminal instead of my way?
 
Back
Top Bottom