Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
Yeah, do so please. :) As this script does not depend on anything.
And name the output something like "swap amount written". Or make it a percentage value (even bettter :)). |
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
Quote:
Code:
disk=$(cat /proc/swaps | awk '/dev/ {print $1}' | cut -d "/" -f 3) But where do I get the total number of bytes to get a percentage? A percentage will be easier to work off as this doesn't limit you to a particular swap size. |
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
Quote:
Quote:
Code:
awk '{if ($1=="'"/dev/$disk"'") print $3}' /proc/swaps P.S.: as I have more than one swap online (I know I know), I needed to get the one out of them, You seem to have only one online at a time. Sorry for delay, had a batt shutdown. |
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
OK. Sorry I got you now. D'oh
cat /proc/swaps get the bytes from there. |
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
Updated to Version 0.0.4
Changes / QR code / Download in OP This update now makes Flopswap do what I intended. After some fun with ash and some help from others here, I have now made Flopswap able to monitor Swap defragmentation. This update now makes Flopswap have all the functionally of Ereswap with the added benifits of:- *Being optified and not installing files in /sbin and /root that don't get removed on uninstallation. *Not modifing rcs-late at all (you may wish to return your rcs-late to it's pre-ereswap form). *Not depending on anything, like busybox-power or iostat for example. *GUI While not looking like much of an update there have been a fair few changes in the code and scripts. I have been testing it on two devices for the last week to make sure it stable and functional. Happy Swapping. |
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
Thanks for this useful tool
What about integrating compcache ? |
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
Quote:
To benefit from compcache you need to modify VM settings to swap more. Also using ramz will reduce battery life, due to compressing and uncompressing. I personally don't see much benefit, compared with thumb for example, so will leave compcache to the "swapset"application. |
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
Would you try to upload it to the repos? At least the dput method is still working.
|
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
Quote:
I have been trying scp everyday for the last couple of weeks. |
Re: [Announce][Fremantle] FlopSwap - Swap GUI Management
Intriguing...have to check this out later. Been away from my Maemo hacking for far too long...hence the lack of updates to swapset ;)
...incidentally, has any effort been made by those versed in kernel-power to fix the fragmentation problem at source i.e. in the kernel? |
All times are GMT. The time now is 09:50. |
vBulletin® Version 3.8.8