[Announce / WIP] SwapSet
Latest version: 0.2.1
Hi all. I present to you - SwapSet. Its hijacked enough other threads, it's long overdue to have one of it's own, and here it is. Anyway, it's been in the devel repo for quite a while, and I haven't created a thread as I wanted some small-scale testing to be done before unleashing it on the masses using devel when they should probably be using extras. It's basically a few shell scripts that manage your swap partitions for you, along with the compressed ram cache (compcache). It's all fully configurable, so tinker away. It supports multiple EMMC and SD swap partitions, and you can configure priorities for each type of swap (for best results consider installing busybox-power so the swapon command has working priorities support - without this it will prioritise RAM > SD > EMMC, though I will make it order them by your configured priorities without it in a later version). I have added in preliminary ram defrag support ('swapset defrag') based upon the ideas and excellent work of estel. It does work, ( I would really recommend only using it when you have a decent-sized SD swap partition though), but I have to say that I have experienced during testing the device rarely becoming unhappy and rebooting even when there was sufficient swap and ram available. Eventually once this is resolved I intend it to call this feature periodically when the device is idle for extended periods of time (i.e. overnight) to prevent the fragmentation slowdowns he identified. Please report bugs to maemo@jamie-thompson.co.uk. Quote:
|
Re: [Announce / WIP] SwapSet
So this replaces "estelsīs ereswap or are they compatible and can be used toghether?
|
Re: [Announce / WIP] SwapSet
Quote:
I only really decided to look at fragmentation as I already had most of the functionality of enabling/disabling devices sitting there. Never hurts to have a couple of different ways of achieving the same goals to see if one is better than the other :) - it will always be optional in swapset so you will be able to use ereswap to manage fragmentation if you so choose. |
Re: [Announce / WIP] SwapSet
Or DIY and make it your own way ;)
As I did "aeons" before :D I personally would say, this should be in one package (ereswapset with two maintainers?), but if you leave it open to user decision and it works, it is okay that way. Do you still use compcache automatically? Or is it configurable to use? Just curious, do not need it, but for others it *may* cause problems... Oops, reading helps, sorry. |
Re: [Announce / WIP] SwapSet
Installed both ;)
I see I have now 1.5gb of swap a half in sd and a half in emmc no problems till now and primary swaps seems to be the one in sd also no improvments that I can notice(allready had ereswap and de sd swap enabled I`ll let you know if something goes wrong Hope not!!! :) Thanks |
Re: [Announce / WIP] SwapSet
Quote:
as a weathered GNU/Linux user, both privately and professionally, i'm familiar with swap on, swap off mkfs.swap & all only, with a 16GB machine @ home :rolleyes: and servers where i gladly hear the sys admins telling that swap in on a SATA3 SSD :cool: i never cared to look into Maemo's swap. would you mind sharing whatever it is you do. i always despised ereswap since i had to reflash my dev N900 after trying it out (and attribute it to the origin of the package...) guess a reflash was needed any way so i didn't bother. just alluding to whatever it is you do is like... well, you catch my drift here, i hope :o ;) |
Re: [Announce / WIP] SwapSet
misterc,
I just put together what I found here on TMO and my very old unix knowledge and put some very personally adapted scripts in /etc/event.d. So much tuned to my needs, I did not spit it out to the world. And as there were already packages out ... One for starting up all my stuff (incl. swap) and one for checking the written data amount of swap (to trigger defragmenting). So nothing special compared to swapset or ereswap. I did not take a deeper look into latest versions of both, but assume they are working. So you may go well with these packages. Or take a look here or here. anything else you need to know, just post in general swap thread or PM me. |
Re: [Announce / WIP] SwapSet
Quote:
thank you for the crash intro ;) i'm switching from t-mob to voda this week-end and my prod N900 is having trouble with battery & hangs itself if i let some calls be ended by the other party :mad: plus, after 2 years, conversation is a drag to open, of course. so will make a fresh start wanted to wait 'til i get my Sandisk 64 msxd back (the 1st one wasn't formatted properly :() but i guess the 32GB mcsd c10 will have to do :eek: will see if i get around to write a couple SQLs to archive conversations or just start from scratch (after a full backup). will report back if a "custom build" swap solution brings advantages compared to swapset ~:-} hope won't have to bother you :confused: |
Re: [Announce / WIP] SwapSet
Basically, Swapset was just the scripts I rolled out for myself that I bothered to package up to get some practice doing so :) ...and I kinda figured someone might find them useful.
|
Re: [Announce / WIP] SwapSet
Thanks for the great work!
Do I need to change something or even uninstall Swappolube? SwapSet overides Swappolube settings (and uses vi_)? |
All times are GMT. The time now is 00:10. |
vBulletin® Version 3.8.8