yashsingh1/xdaforums huggingface dataset:
[G1 Apps and Games] dwang:
I've been playing around with the swappiness values for my swap partition and I have observed that I see a noticeable performance boost if I set the swappiness value to 100.

Just to review what the swappiness value does is that it is used to define how aggressively memory pages are swapped to disk. So the higher the value, the more aggressive the kernel moves unused memory pages to disk.

So a value of 100 tells the kernel to be extremely aggressive in moving memory pages to disk.

So what I've observed is that switching between apps takes slightly longer, but once you are in a app, the UI is very responsive.

This makes sense because the kernel is being aggressive in freeing up unused RAM for the application that is currently running to use.

I will continue to run swappiness at 100, and observe the performance of the phone. It may be that performance will start deteriorating over time.
[G1 Apps and Games] dwang:
Forget it, performance gets pretty bad after a few hours.
[G1 Apps and Games] bbuchacher:
When I press Get Info it says swap is 0 kb I have tried messing around with the settings but to no avail

any help?
[G1 Apps and Games] rnzk8:
i wonder if there is a way to choose only the apps that will make use of the swap memory... like how windows allocates/assigns applications to swap files if they need them..

that way only the applications that need the extra memory will be given access..

:) just a thought

this was already posted on #41... sorry my bad...
[G1 Apps and Games] Chahk:
Thanks to dwang's instructions, I have set up a 3rd "Linux-swap" partition on my SD card. With a small tweak to a2sd script, I am now running the latest Cyanogen's rom that auto-enables this at boot time. It seems to be working better than the swap file. Could an option be added to Swapper to select a partition instead of a file?
[G1 Apps and Games] ex87:
answers :)

It's planned. Maybe as side project (I could make Swapper available from other applications, then any who wants can make beautiful widgets that control swapper). When? I don't know yet.

If this happenning all the time? Are settings correct? If nothing helps please feel free to fill bug @ a-swapper.googlecode.com

It's planned to next release.

Goals of next release:

More fixed swap/swappiness settings (like 24 and 12 mb for swap)

Fixes for not-rooted phones (now they make force close messages) - have some negative reaction from market about force close from users who doesn't know what root is :)

Swap partitions support

Next release should be available this week :)
[G1 Apps and Games] dkb218:
Okay, so using this will cause my SD to kick the bucket before it's time. Any idea about how soon before it's time - I know it's relative but say a card would normally last 5 years. Will this decrease that lifespan to 5 months?
[G1 Apps and Games] RaiderX303:
looking forward to the swap partition support
[G1 Apps and Games] Diceman4:
I know they are a little more expensive, but the SanDisk branded SD cards have a 10 year warrantee, so the only extra expense that you would have is the time lost while waiting for your warrantee claim. Unless you had 2 of them, one as a backup to use while waiting for the warrantee and kind of flip flop them as they fail.
[G1 Apps and Games] garsim:
:D

you are the best :D
[G1 Apps and Games] Sistum Id:
I think I got the same issue as you.

What I would do is click home, than go back into the app, click get info and it would show my swap total, free, and used.

Make sure you click home and not back when you start swapper for the first time... took me a few times before I figured that one out.
[G1 Apps and Games] ex87:
Swapper 0.1.2a

Hello!

Here new test version for swapper.

Fixed some FCs for users without root.

Swap creation divided to elements (like create file, format swap, enable swap)

Support for swap partitions (WARNING! NOT TESTED! Will test soon. Any who want to test it please do it very careful - if You will select wrong partition, You can loose all data on it)

Some advanced options added

http://swapper.n3o.lv/lv.n3o.swapper_0.1.2a.apk
[G1 Apps and Games] dwang:
Working for me. Thanks.

How about adding the ability to change swappiness without turning off the swap?
[G1 Apps and Games] garsim:
perfect :D

thank you!!!!
[G1 Apps and Games] Mysticales:
Ah perfect! Finally a thread with the right answer to my JF 1.51 swapping needs. =D Looks like Im sticking with the app then since it can use the swap partition. Thank you. =) So far this is working fine.
[G1 Apps and Games] Booker-T:
I have a suggestion for the swap size, I think there should be more options every 4mb.

I think 32mb is nothing for improvement but 64mb is just a little bit too much and too big swap would make the phone less responsive.

Thus, more size for selection is just better.

Thanks
[G1 Apps and Games] Mysticales:
Hrm something odd about the test build, Its set to startup. But it doesnt start up till I manually load it. I have it set to the swap partition. Kinda odd tho that it doesnt start up auto now.
[G1 Apps and Games] Franklees:
Does any one know what the location to set the swapper at if you have a third partition with Linux swap? thanks in advance.
[G1 Apps and Games] Mysticales:
If your 3rd partition is "linux-swap" then the app already has that block3 preset so its all good to go the moment you check mark it. =)
[G1 Apps and Games] TikiiTorch:
Can also confirm this issue.

On the otherhand, the function to set swap to the third partition works wonderfully, have not had any problems with it yet.

Thanks for your work!
[G1 Apps and Games] ebadevil:
I have created a linux-swap partition of about 33-35MB on my card... how would I point my swap file to it? I'm using superhero v3...
[G1 Apps and Games] Mysticales:
Its in the advanced settings options to use the partition. If its your 3rd one, it should be fine once you toggle it on.
[G1 Apps and Games] evilive27:
everytime i click on get info it tells me my swapiness

and then says can not read info try again later

i have a rooted Rogers HTC Dream...

anyone have any ideas? I can't tell if the swap is working or not.

When i turn swap on and off it goes through all the steps and is successful.

I just can't get info. So i don't know if its actually working or not.
[G1 Apps and Games] ultra spikey:
I just created a 3rd partition on my sdcard(ext3). Seems like swapper is working. How can I make sure it's actually putting the swap file on ext3 as opposed to ext2(my apps partition)??? I did create ext2 first, then ext3, does that make ext3 my last partition?

edit: 2 things I noticed...

1) When I hit "Get Information" it says the free space is 32mb, even though it's set to 24mb.

2) When I try to turn swap off, it just sits there at "Please wait". But I think it turned it off anyways, because if I hit "get info" used/free is at 0. BUT, when trying to turn it back on, it still sits at "Please wait".
[G1 Apps and Games] ex87:
Swapper 0.1.2b

http://swapper.n3o.lv/lv.n3o.swapper_0.1.2b.apk

Here next test version of Swapper. Now it show which parts of program failed to execute normally (like disabling swap when it's disabled leads to fail).

Haven't got any problems with autostart. Please add some info about roms used.

Working on no log output bug.

Swapper swap partition config seems stable.

Please send output from free command in terminal / adb shell. Thank You!

Swapper that is configured to use partition, use all partition (it doesn't create any files). Therefore it ignores size.
[G1 Apps and Games] Mysticales:
Well for me, I am on JF 1.51 US. The auto start option and settings are always set to on, but unless I went into the app, the swap file isnt started up. Now I am thinking, could this be because of the wipe swap option etc instead of just going back to picking up where it left off?
[G1 Apps and Games] ex87:
Swapper 0.1.2c

http://swapper.n3o.lv/lv.n3o.swapper_0.1.2c.apk

Another test version.

Added debug to log

Fixed some false FAIL

Fixed some FCs invented earlier

Please send me log files with failed startups.

My email: n3o59hf@gmail.com or elviss@erenimi.lv
[G1 Apps and Games] evilive27:
so i installed the new 1.2c version and it still doesn't get info.

when i turn swap on this is what it says:

setting swapiness OK

Turning Swap off FAIL

Removing Swap file OK

Creating Swap file OK

Formatting Swap file OK

Enabling Swap FAIL

ALL DONE

any ideas why its not turning off or on?
[G1 Apps and Games] ex87:
Try to collect log with Log Collector app from market.Reason why it's not working should be there. Thank You!
[G1 Apps and Games] evilive27:
So this is what it says in the log...

i think this is all the swapper info. Let me know if i'm missing information

Do you know how i can fix whatever is wrong? Sorry i'm brand new at this stuff, i have no idea what any of this means. All i know is i have a rooted phone with busybox. Its the canadian Rogers HTC Dream.

I/Swapper ( 1421): Handler{4375a348} EXEC Setting swappiness RESULT true

E/Swapper ( 1421): su: uid 10054 not allowed to su

D/dalvikvm( 52): GC freed 884 objects / 38160 bytes in 192ms

I/Swapper ( 1421): Handler{4375a348} EXEC Turning swap off(file) RESULT false

E/Swapper ( 1421): swapoff: not found

I/Swapper ( 1421): Handler{4375a348} EXEC Removing swap file RESULT true

D/dalvikvm( 106): GC freed 2992 objects / 352344 bytes in 181ms

I/Swapper ( 1421): Handler{4375a348} EXEC Creating swap file RESULT true

E/Swapper ( 1421): 32+0 records in

E/Swapper ( 1421): 32+0 records out

E/Swapper ( 1421): 33554432 bytes transferred in 5.127 secs (6544652 bytes/sec)

I/Swapper ( 1421): Handler{4375a348} EXEC Formatting swap RESULT true

D/Swapper ( 1421): Setting up swapspace version 1, size = 33550337 bytes

I/Swapper ( 1421): Handler{4375a348} EXEC Enabling swap(file) RESULT false

E/Swapper ( 1421): swapon: not found
[G1 Apps and Games] ex87:
It seems You have several problems:

SU doesn't allow swapper to execute, swapon and swapoff not found (problem with su?)

Have You tried other root applications? Does they work?
[G1 Apps and Games] evilive27:
I have setcpu and market enabler which require root and they both work.

Maybe its something to do with the iptables with the Rogers HTC Dream. I think people were saying that it was different. Maybe that doesn't let this work for some reason????

like i said, i have no idea really. I wonder if any one else with a Rogers HTC Dream has got swapper to work.
[G1 Apps and Games] ex87:
Try to manually activate created swap space (it seems that swap space is created and formatted):

in terminal or adb

su
swapon /sdcard/swapfile.swp

change /sdcard/swapfile.swp to your swap place (or leave as is if you haven't configured it)
[G1 Apps and Games] evilive27:
i guess i wont be needing this anymore

i bricked my phone :(
[G1 Apps and Games] ex87:
Swapper 0.1.3

Swapper 0.1.3 released. Please send log files if have any problems.

evilive27, what happened with your phone?
[G1 Apps and Games] yukkio:
I can't enable swap file.

Setcpu and move cache to sd run ok.

Thank you.

BR.
[G1 Apps and Games] ex87:
Those who have problems with swapper (Rogers?) please try this one: http://swapper.n3o.lv/lv.n3o.swapper_0.1.3a.apk
[G1 Apps and Games] sacredsoul:
Couldnt get create swap partition to work. Always fails...
[G1 Apps and Games] yukkio:
I will install it now.

Vodafone Magic.

Edit: some problem with this version but i've probed with other rom and i haven't any problem so i think the problem may be the rom? I dont know because setcpu works ok...
[G1 Apps and Games] ex87:
0.1.3a is possible quick fix(workaround) for those without swapon and swapoff binaries/links to busybox. Haven't any of those phones where to test :(

Do You have 3 partition setup on SD card?

Please attach log file.
[G1 Apps and Games] sacredsoul:
Oh you must had a 3 partiton setup? I currently only have a Fat32 and ext2... I was under the impression it will create the 3rd partition?
[G1 Apps and Games] ex87:
Resizing of 2nd partition and creating of 3rd partition is too dangerous with mounted /system/sd , therefore it must be done "offline" or in recovery console...
[G1 Apps and Games] yukkio:
This is my /system/sd I think there's a problem with the swp file permissions:

BR.
[G1 Apps and Games] ultra spikey:
Is there a way to list your partitions in terminal? I google'd it and found the "fdisk" command for linux, but it doesn't seem to work the same with Android. I created a 3rd ext3 partition a week or two ago and I thought swapper was working with that partition, but when I plugged my phone into my laptop(booted into xubuntu) it didn't mount the 3rd ext3 partition(I'm pretty sure it did before).
[G1 Apps and Games] ex87:
3rd partition is formatted as swap, it doesn't mount normally (there isn't ext3 filesystem anymore, it's swap partition).
[G1 Apps and Games] moosefist:
in terminal type:

su

free

It should list your partitions and there space
[G1 Apps and Games] ultra spikey:
Ok, so even though I created the 3rd partition as ext3, it's actually not an ext3 partition anymore?
[G1 Apps and Games] Mysticales:
Right its called "Linux-swap" thats the partition type, just like you say EXT3, its just different. =)
[G1 Apps and Games] ultra spikey:
gotcha...thanks
[G1 Apps and Games] t1h5ta3:
ok, so i had created a swap partition, all was working well.

i loaded this to make it easyer to change swapines... that was the ONLY reason...

i clicked use partition in advaced, now when i #free i get 0 0 0 ....
[G1 Apps and Games] Gimpeh:
Fails for me also. I have Fat32 and a 1 gig EXT3 partition. I'll reformat the EXT3 when I get home to see if that makes a difference. This is on a Google ION.
[G1 Apps and Games] Pinesal:
You need to have fat32, EXT3, AND Linux-swap partitions.
[G1 Apps and Games] ex87:
All who have problems, please take a look here:

http://code.google.com/p/a-swapper/wiki/Settings
[G1 Apps and Games] Mysticales:
This is the correct info people =)
[G1 Apps and Games] schahn:
Feature Request

Hi,

first I like to thank ex87 for his great work...

But I discovered an issue, which may be addressed in a upcoming version: I'm using Swapper with my Magic, configured using a swap file on FAT32 SD-Card (no swap partition). When connecting the device to PC an release the SD-Card to be accessible from PC, it roughly cuts the swapfile from use by Swapper. When disconnecting from PC, the device checks the SD and tells me, that it might be damaged and has to be formatted. If I switch Swapper off before connecting, this problem does not happen.

Is it possible to implement some kind of automation to disable Swapper when releasing the SD-card for PC access an re-enable it when PC-connection ends?

Sorry for my english... school days are gone for a long time :D

Regards, Schahn
[G1 Apps and Games] Mysticales:
A auto turn off would be nice but best way atm is to make a swap-partition this one wont cause the swap to get cut off when fat32 is mounted. =)
[G1 Apps and Games] Mysticales:
Log file sent, I wonder if its due to the startup fsck check it does on the partitions? The lucid rem script. But then saw librarys not found also in log.. seems I wasnt only one with that issue tho when I googled it. The opengl stuff I think.
[G1 Apps and Games] pistol4413:
moving swap file to ext3 partition

Does anyone know the commands to move the file?
[G1 Apps and Games] -vip3r-:
don't understand all this technical info;

but just wanted to let you know 0.1.3 doesn't work for me.. had to revert back to 0.1.1.

i'm on cyanogen 3.6.8. this is also happening to a friend of mine
[G1 Apps and Games] PremierITA:
Hello, it fails on my DrizzyJAC (also called JACMan Hero).

It creates a swap.swp file, but fails other actions.

I've just one fat32 partition 2gb size.
[G1 Apps and Games] jvvila:
Fails when turn on swap

I have rooted my Vodafone HTC Magic. With terminal on mobile, i can do root with su with no errors. Here is my log.

Fails when i turn on swap from mobile. I can turn on swap from adb shell.

07-22 09:38:26.453 I/Swapper ( 454): Handler{431c3b50} EXEC Turning swap off(file) RESULT false

07-22 09:38:26.453 E/Swapper ( 454): swapoff: /sdcard/swapfile.swp: Operation not permitted

07-22 09:38:27.583 I/Swapper ( 454): Handler{431c3b50} EXEC Removing swap file RESULT true

07-22 09:38:30.583 D/dalvikvm( 419): GC freed 6533 objects / 435616 bytes in 383ms

07-22 09:38:35.133 I/Swapper ( 454): Handler{431c3b50} EXEC Creating swap file RESULT true

07-22 09:38:35.133 E/Swapper ( 454): 32+0 records in

07-22 09:38:35.133 E/Swapper ( 454): 32+0 records out

07-22 09:38:35.133 E/Swapper ( 454): 33554432 bytes transferred in 6.390 secs (5251084 bytes/sec)

07-22 09:38:35.343 D/dalvikvm( 286): GC freed 1193 objects / 126896 bytes in 138ms

07-22 09:38:37.263 I/Swapper ( 454): Handler{431c3b50} EXEC Formatting swap RESULT true

07-22 09:38:37.263 D/Swapper ( 454): Setting up swapspace version 1, size = 33550336 bytes

07-22 09:38:38.393 I/Swapper ( 454): Handler{431c3b50} EXEC Enabling swap(file) RESULT false

07-22 09:38:38.393 E/Swapper ( 454): swapon: /sdcard/swapfile.swp: Operation not permitted
[G1 Apps and Games] ex87:
Hello!

I'm now making new version of Swapper. It should fix errors with busybox (for those who can create swap file but can't enable it or format it). Also possibe I'll manage to disable/enable swap @ sd card mount events.
[G1 Apps and Games] ex87:
Swapper 0.1.4a

Experimental build.

http://swapper.n3o.lv/lv.n3o.swapper_0.1.4a.apk

Configurable busybox.

Busybox download

Listener for card events (most likely not working yet)

Busybox button will download stripped down busybox from http://swapper.n3o.lv/bin and place it in /data/local/bin . Download size is ~ 512 K . You can download and place busybox manually, then You should configure busybox path in config. DO NOT REPLACE YOUR BUSYBOX WITH THIS ONE, THIS ONE HAVE ONLY FEW COMMANDS NEEDED FOR SWAPPER

For those with not working swapper.

In Settings->Advanced delete all text in busybox location/command.

If it doesn't help, press Busybox button, then OK, wait for ~ 5 sec for WIFI and up to 2 minutes with EDGE. Swapper will download busybox. Progress indicator not yet implemented.
[G1 Apps and Games] pep1t0:
Hello, i have that problem:

All the settings are set as recomended by the software, using fileswap on a 2gb sd card formatted to fat32.

It fails on some of the tasks, sometimes enabling and creating the swap sometimes disabling and erasing it... formating always fail and setting swappiness always sucess.

Google ION CRB43 (rooted unpacking and repacking boot.img setting ro.secure=0)
[G1 Apps and Games] ex87:
Have You tried last test version with busybox download?

About failing @ disabling and erasing - it's ok (if You haven't swap enabled, it will fail because of that).
[G1 Apps and Games] Ph0Xy:
@ex87:

Must of been a really quick little because there's a big typo on "Create" button :P, idk how you didn't notice that, it JUMPS to the eye.

but the good news it, it worked! Atleast I think it did.

It only did a little fail on disable swap, which is normal, rest was OK!

Now, how can i see if it actually worked? Anyway of verifying it?

Pressing "get info" gives a reading error, which i think means its not working?
[G1 Apps and Games] Gimpeh:
Everything is still failing for me. I have the EXT3 and the Linux swap and still same issues. Also tried the new build and same thing. Not sure whats up.
[G1 Apps and Games] Gimpeh:
I figured it out. Turns out Paragon was not partitioning correctly. I booted into ubuntu and it was set as unallocated. Seems to be working now.
[G1 Apps and Games] ex87:
Swapper 0.1.4b

Another test version, interface upgraded, some bug fixed.

http://swapper.n3o.lv/lv.n3o.swapper_0.1.4b.apk

Mount/unmount still not working. Maybe here is somebody that have used "android.intent.action.MEDIA_EJECT" can help with that?

Those who can't get info - please go into terminal and send me output from "free" utility.
[G1 Apps and Games] ultra spikey:
Is there a difference between creating the 3rd(swap) partition as an EXT3 partition as opposed to creating an actual "linux-swap"? When I created my 3rd partition for swapper a while ago, I created it as a EXT3, which still works fine. It wasn't till later that I saw the option in ubuntu to create a "linux-swap" partition.
[G1 Apps and Games] Mysticales:
Yea the linux-swap is what you should be using for the 3rd partition for swap purposes.
[G1 Apps and Games] clefky10:
I searched this thread and couldn't find the answer to "how much will this decrease the life span of my sd card". I use apps2sd on the sd card that came w/ my phone and got my phone back in October if that helps, thanks.
[G1 Apps and Games] Mysticales:
If you use a class 6 or higher, the chances are smaller that the sd card will wear out. If you use a cheaper one, then yes, it is possible to develop bad sectors quicker. (But not saying it would be super fast to happen) But most of us use a linux-swap partition, with extra free space after that partition so if the sd card does get a bad sector on the swap, you just move the swap to a new part of the sd card without compromising the whole card (Namely the fat32 and ext3 which has all the important data you need to keep backed up) If you use the swap file image which shares the fat32 or the ext3, you may run a risk later on of losing other data on that partition "if" it went bad.

But truth be told. No one has really reported issues yet with this. Just basic tech info that class 6+ can handle that type of stress better.

And btw.. anyone figure out why it still doesnt start on boot up?
[G1 Apps and Games] Gilliland12:
It seems to be working fine for me after start-up. I just restarted my phone and then checked. Looks to be working fine. Hit the "Get Information" button and it showed "Swap: 48184 KB, Used: 348, free 47836".
[G1 Apps and Games] Spyderlotus:
I'm sorry if this a noob question, but I haven't seen it posted anywhere. When I'm done making the 3rd partion ( linux-swap ) in ubuntu, should I click the option swap on while still in gparted.
[G1 Apps and Games] turboyo:
Guys I created a linux swap partition and I want this app to use that partition for sswap right now its not its saving to /sdcard/swapfile.swp .. when i connect via usb i see that this is actually on my fat32 portion. so how can i make it so it save to my linux swap partition? would /linux-swap/swapfile.swp work?
[G1 Apps and Games] Mysticales:
No cause that you use that swap partition for ubuntu.
[G1 Apps and Games] boulderjams:
So, I quickly ran through this post. I have to say that I ran into a few errors that were quickly solved by downloading busybox. I have a 4gb card with three partitions setup and it works very smooth.
[G1 Apps and Games] gdbjoe:
Hi,

read all this thread: a big thanks to ex87 for his hard work, just to say Swapper works great to me, with a 94mb swap partition and swappiness 60 (class 6 card).

I have tought the start-on-boot issue, running Cyanogen 4.2.3.latest.
[G1 Apps and Games] dasoccerbomb:
sorry for the noob post here... I would like to use my Linux-swap partition with this app... i click use swap partition... then click swap partition and it says "/dev/block/mmcblk0p3" ... So is this just a default or did it find the location of my linux-swap? How do i know where my Linux-swap is... thank you

so it looks liek the log says "can't stat '/dev/block/mmcblk0p3'"
[G1 Apps and Games] masr1979:
That is the third partition on your SD card, since the usual setup for SD cards is fat/ext/swap, so this is a default value. Personally mine is /dev/block/mmcblk0p2 since I only have the fat and the swap partitions.
[G1 Apps and Games] sigeje:
I instal swapper on my samsung galaxy gio, and I install busybox lastest version on my device.. When i try to take on the swapper, operation failed. Swapper say that swapon and swapoff applet not found. I have root my device too, what should i do to fix it ?

I'm newbie in android. Thanks