maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [announce] swappolube to lubricate your gui (https://talk.maemo.org/showthread.php?t=62312)

debernardis 2010-09-15 09:19

[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       
echo "0" > /proc/sys/vm/page-cluster       
echo "1" > /proc/sys/vm/laptop_mode       
echo "1" > /proc/sys/vm/oom_kill_allocating_task       
echo "0" > /proc/sys/vm/dirty_expire_centisecs       
echo "0" > /proc/sys/vm/dirty_writeback_centisecs     
 echo "60" > /proc/sys/vm/dirty_background_ratio       
echo "95" > /proc/sys/vm/dirty_ratio       
echo "0" > /proc/sys/net/ipv4/tcp_timestamps       
echo "1" > /proc/sys/net/ipv4/tcp_no_metrics_save

> files modified and overwritten etc

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.

AlMehdi 2010-09-15 09:26

Re: [announce] swappolube to lubricate your gui
 
Do it have a gui or is it hard coded? What are the settings?

debernardis 2010-09-15 09:28

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

jurop88 2010-09-15 10:00

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)

AlMehdi 2010-09-15 10:10

Re: [announce] swappolube to lubricate your gui
 
Quote:

Originally Posted by debernardis (Post 816683)
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

Ok, then i already have done it.. so i might not se a difference. It is a good hack though. It works.

raven 2010-09-15 10:20

Re: [announce] swappolube to lubricate your gui
 
Downloaded, successfully installed via file-manager->app-manager.
Works Great :D

mr_xzibit 2010-09-15 10:39

Re: [announce] swappolube to lubricate your gui
 
installed fine. how do know if its working?

debernardis 2010-09-15 10:59

Re: [announce] swappolube to lubricate your gui
 
Quote:

Originally Posted by mr_xzibit (Post 816719)
installed fine. how do know if its working?

To confirm it has made its dirty work, you could open a terminal window and give
Code:

cat /proc/sys/vm/swappiness
You should get 30.

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.

Bingley Joe 2010-09-15 12:51

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)?

oxpo 2010-09-15 12:57

Re: [announce] swappolube to lubricate your gui
 
Quote:

Originally Posted by Bingley Joe (Post 816822)
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)?

It shows up in App Man.

/oxpo


All times are GMT. The time now is 00:19.

vBulletin® Version 3.8.8