![]() |
[announce] swappolube to lubricate your gui
1 Attachment(s)
I liked so much the kernel hack described by kaze.daniel, allnameswereout and better explained by Simon that I made a package to test it without messing with a root xterm.
The package changes a number of kernel parameters when installed and adds a script to event.d to make the changes permanent. When removed, the script is deleted and the parameters are reset. Be careful and test it, I'm no expert and made the package "by hand" with dpkg-deb on my ubuntu box. Let me know if it destroys your n900 or sends your personal data to some rogue site :D Also let me know if your n900 gets much snappier after installing it, like mine :cool: ____________________________________ As requested by lcuk ;) > In the top post for this thread, indicate CLEARLY > the actions and changes it makes The package issues the following commands which change the way the kernel handles ram and virtual memory (as far as I can understand, i.e. hardly at all) Code:
echo "30" > /proc/sys/vm/swappiness No files are harmed by installing this package, and no carbon dioxide is released . It adds a /etc/event.d/tuning script as described in the swappiness thread. > In the package, add a clear indication > of its actions in the README and > potentially a man page and/or > a backlink back to here so others can > discover its actions easily. The package description has links to the relevant posts in the swappiness thread. In the next version I'll add also a link to this thread and a banner in postinst and postrm, if & when I discover how's done ;) _________________________ I told you I wasn't an expert! Version 0.1.0-1 was flawed in postinst and didn't erase the /etc/event.d/tuning file after package removal (thanks to Mikkov for reporting). Latest version, 0.1.2 corrects the problem. |
Re: [announce] swappolube to lubricate your gui
Do it have a gui or is it hard coded? What are the settings?
|
Re: [announce] swappolube to lubricate your gui
There's no gui and you won't find any icon. The package only changes some settings like in allnameswereout's http://talk.maemo.org/showpost.php?p...1&postcount=59
|
Re: [announce] swappolube to lubricate your gui
Hi Ernesto,
just downloaded but it still doesn't install via HAM, it says 'operation not permitted' (operazione non possibile) It worked via dpkg -i, though It is incredible how the device feels after have changed swappiness and cluster values... Cheers and thx for the package (original author already thkd, too) |
Re: [announce] swappolube to lubricate your gui
Quote:
|
Re: [announce] swappolube to lubricate your gui
Downloaded, successfully installed via file-manager->app-manager.
Works Great :D |
Re: [announce] swappolube to lubricate your gui
installed fine. how do know if its working?
|
Re: [announce] swappolube to lubricate your gui
Quote:
Code:
cat /proc/sys/vm/swappiness It's the first parameter it modifies (from the original 100), so if it's 30 you could be confident that also the others have been changed. |
Re: [announce] swappolube to lubricate your gui
This looks like a very handy tweak indeed -- thanks for packaging it :)
Just for the sake of having all potentially useful information in one place about this, could someone post removal instructions (or does it show up in App Man)? |
Re: [announce] swappolube to lubricate your gui
Quote:
/oxpo |
Re: [announce] swappolube to lubricate your gui
it shows in app manager mate.
|
Re: [announce] swappolube to lubricate your gui
Installed it today and testing. Probably it will be hard to see. I've got everything set to 0 i transitioncontrol so everything is fast for now ;)
|
Re: [announce] swappolube to lubricate your gui
Thanks, all :)
Installed using dpkg -i and this seems to make a really nice difference. Before I installed it, I began copying a large file to the N900 via wifi, which normally renders the phone basically unusable until it's done (or incredibly unpleasant to use at least).. I noticed this script kick in immediately and the device was almost as snappy as it would be without the file copying. Now that the file-copy is complete, it's quick as hell :) Nice job! |
Re: [announce] swappolube to lubricate your gui
Definite improvement and no adverse effects noticed so far!
You have my admiration and thanks! |
Re: [announce] swappolube to lubricate your gui
so how do you manually change these settings then? my swappiness is at 30! what else has it done?
edit.... just read this from first post. i assume thats what its done! |
Re: [announce] swappolube to lubricate your gui
n900 like it shuld of been.
one thing i have noticed. if i have multiple web windows open. before if i jump from one to the other. i would have a white screen for a few secs before the page appeared.. now!!! boom its up! good work |
Re: [announce] swappolube to lubricate your gui
Quote:
|
Re: [announce] swappolube to lubricate your gui
I'm going to try it :)
|
Re: [announce] swappolube to lubricate your gui
Great to see hacks and tweaks moving from being command line guru required to being nicely packaged up and reproducible by yourself and others!
However, because this is a package which will not appear to do anything, please do the following: In the top post for this thread, indicate CLEARLY the actions and changes it makes files modified and overwritten etc - do not send people to another thread and say "it similar to that over there" In the package, add a clear indication of its actions in the README and potentially a man page and/or a backlink back to here so others can discover its actions easily. Thanks for taking that small step beyond hackerdom and making it graspable by normal folks :) |
Re: [announce] swappolube to lubricate your gui
Well so far so good.
|
Re: [announce] swappolube to lubricate your gui
pfuh
this little things makes it so smooooth :D thanks again |
Re: [announce] swappolube to lubricate your gui
Installed OK
Testing with the following apps running Media Player sygic MM10 - route demo browser windows file manager conky fast switching between windows no delay in picking up incoming call looking good |
Re: [announce] swappolube to lubricate your gui
Loud applause :)
Thanks so much debernardis, the minor tweaks to presentation make all the difference. We should be able to use this thread to show the many hackers out there that their simple tweaks can be wrapped up cleanly ;) Quote:
if you *do* want to add something similar, add a small script and .desktop icon which opens the browser to this thread :) (or similar kind of idea perhaps?) |
Re: [announce] swappolube to lubricate your gui
Christine feels smoother with these tweaks :)
Thanks! |
Re: [announce] swappolube to lubricate your gui
Thanks for this deb. This does seem to have improved responsiveness on my 900, although it has been off a couple of times, so I could drop the sim into another phone for a short while.
|
Re: [announce] swappolube to lubricate your gui
so this tweak will make the transition effect less jaggier?
|
Re: [announce] swappolube to lubricate your gui
Isn't a reboot required after install? I don't see that in the list of instructions nor does the install suggest that.
Frank |
Re: [announce] swappolube to lubricate your gui
well, its been almost a month since I am using that hack, jes created another file to run with the original mod... so long no crashes, only that the cpu ram free memory oscilates a lil bit from high to low when the battery power is vanishing.. anyway, that hack makes the n900 works like a totally different tablet. love that.
|
Re: [announce] swappolube to lubricate your gui
would this work with the enhanced kernel?
|
Re: [announce] swappolube to lubricate your gui
Quote:
|
Re: [announce] swappolube to lubricate your gui
Work fine and the UI feels more responsive.
|
Re: [announce] swappolube to lubricate your gui
Amazing, for the first time, using this swappolube, I can now run my 12 favorite apps without lags! (including media player).
But there was a time when I was switching in Music Player, the app began to crash. Otherwise, the rest of the 11 apps seem to work fine. :) |
Re: [announce] swappolube to lubricate your gui
nice name :D !!!!!!!!!
|
Re: [announce] swappolube to lubricate your gui
Question:
I read somewhere that modifying the page-cluster was a bad idea. Can anyone shed some light on this, and if it's safe? |
Re: [announce] swappolube to lubricate your gui
|
Re: [announce] swappolube to lubricate your gui
you killed my phone !!
reboots after bout 3 seconds of booting up -> repeat |
Re: [announce] swappolube to lubricate your gui
@f2thak: sorry mate. Hope you have the flasher utility at hand, or you had backupmenu to restore the pristine state. Might be that when turning it off, it hadn't written everything on flash, due to the changes in the way read and write get managed? So, maybe it's better to issue a sync before turning off?
@Frank Banul: reboot is not needed, the parameter changes are made on-the-fly during the install of the script that makes them also applied at boot time. And, they are reverted at uninstall time, when that script gets erased. @kennibal: yes, and if you read Simon's explanation of those params, you'll find that there is one that lets silently crash the latest program you start if it elicits an out-of-memory condition, instead of getting rid of one or more background processes. It's the price to pay for the fluidity. If you try again maybe it will start correctly after a cleanup of memory. Concerning this issue, I want to implement the small memory-freeing command that Simon describes in his blog post, saying he runs it as a cron job. Code:
I run a cronjob that drops buffer cache containing pagecache, dentries and inodes, to clear out unused dirty pages (sync; echo 3 > /proc/sys/vm/drop_caches). Given that we haven't cron by default on our devices, and I don't know how to mess with the alarmd daemon (and I'm not sure I'll ever do), I would then add an icon to run the command and free memory when the user likes to, i.e. when the device isn't going to do critical things like answering a call or shooting a video. What do you think? Button or alarmd? |
Re: [announce] swappolube to lubricate your gui
Great Work!
thx Ice |
Re: [announce] swappolube to lubricate your gui
@debernardis
Can you comment on this post: http://talk.maemo.org/showpost.php?p...8&postcount=41 I do not completely understand it. Tried swapon&swpaoff but got some error message about device being busy. |
Re: [announce] swappolube to lubricate your gui
Quote:
|
All times are GMT. The time now is 04:01. |
vBulletin® Version 3.8.8