Editing Swappolube

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 17: Line 17:
===Dependencies===
===Dependencies===
-
The editor depends on:
+
The editor depends (not verified yet) on:
* python2.5
* python2.5
Line 30: Line 30:
===Main configuration===
===Main configuration===
-
* The first row of checkboxes is to enable the setting.  
+
* The first row of checkboxes is to enable the setting. If unchecked it will not write anything for that option.
-
**If unchecked it will not write anything for that option.
+
-
 
+
* The second row can offer either string entry or a checkbox.
* The second row can offer either string entry or a checkbox.
-
** String: is an integer value up to 4 digits.
+
** String: integer value up to 4 digits.
-
** Checkbox: if checked will propagate a "1", if not checked it will be a "0" , i.e. set True or False for this option.
+
** Checkbox: if checked will give a "1", if not checked it's a "0" , i.e. True/False.
 +
 +
[[Image:swappolubeMain.png|600px]]
-
[[Image:swappolubeMain.png|400px|Main View]]
+
The right part is a scrollable list.  
-
 
+
-
The centre part of the UI is a scrollable list.  
+
Scrolling to the bottom will show all available options as well as the button to store a custom version of the settings.
Scrolling to the bottom will show all available options as well as the button to store a custom version of the settings.
-
[[Image:swappolubeMain2.png|400px]]
+
[[Image:swappolubeMain2.png|600px]]  
-
 
+
-
''note'': since version [[Swappolube#1.4-1|1.4]] the application supports rotation depending the orientation of the device.
+
-
 
+
-
[[Image:swappolubeMain_rotated.png|280px|Main View - rotated]]
+
-
[[Image:swappolubeMain2_rotated.png|280px]]  
+
====Current Button====
====Current Button====
Line 65: Line 58:
===Drop down menu===
===Drop down menu===
   
   
-
The drop down menu, aka Menubar, will offer the following options:
+
The drop down menu will offer the following options:
-
* Button: '''Delete Tuning File''' (will appear only if a tuning file exists)
+
* Delete Tuning File
-
* Button: '''Restore Default Values'''
+
* Restore Default Values
-
* Button: '''Add PowerKey entry''' or '''Remove PowerKey entry'''
+
* About  
-
* Button: '''About'''
+
* Quit
-
* Button: '''Quit'''
+
   
   
-
[[Image:swappolubeDropdown.png|400px]]
+
[[Image:swappolubeDropdown.png|600px]]
-
[[Image:swappolubeDropdown2.png|400px]]
+
-
 
+
-
If a tuning file exists, the option to delete it will appear:
+
-
 
+
-
[[Image:swappolubeDropdown3.png|400px]]
+
-
 
+
-
Adding a application start button in the Power key menu entry:
+
-
 
+
-
[[Image:swappolubePowerKeyMenu.png|400px]]
+
===Popup Menu===
===Popup Menu===
Line 101: Line 84:
===About===
===About===
-
In the about window one can find the version of the application running as well as buttons to connect to additional documentation  
+
In the about window one can find the version of the application running as well as buttons to connect to additional documentation.
-
(like all the rest of the windows it supports rotation).
+
   
   
-
[[Image:swappolube_about1.png|280px]]
+
[[Image:swappolube_about1.png|600px]]
-
[[Image:swappolube_about2.png|280px]]
+
 
 +
In addition this window supports rotation.
 +
 
 +
[[Image:swappolube_about2.png|360px]]
==Explanation of options==
==Explanation of options==
Line 127: Line 112:
===Laptop Mode===
===Laptop Mode===
-
* Description: When the value for laptop_mode is set to be something other than zero, any physical disk I/O (that might have caused the hard disk to spin up, see <code>/proc/sys/vm/block_dump</code>) causes Linux to flush all dirty blocks after the value in seconds. The result of this is that after a disk has spun down, it will not be spun up anymore to write dirty blocks, because those blocks had already been written immediately after the most recent read operation. The value of the laptop_mode knob determines the time between the occurrence of disk I/O and when the flush is triggered. A sensible value for the knob is 5 seconds. Setting the knob to 0 disables laptop mode. Since this mode has been designed with mechanical hard drives in mind to maximize the time between spin-ups that the flash memory in a cellphone does not need to worry itself with, it might actually be better to set this to zero.
+
* Description: laptop_mode is a knob that controls "laptop mode". When the knob is set, any physical disk I/O (that might have caused the hard disk to spin up, see <code>/proc/sys/vm/block_dump</code>) causes Linux to flush all dirty blocks. The result of this is that after a disk has spun down, it will not be spun up anymore to write dirty blocks, because those blocks had already been written immediately after the most recent read operation. The value of the laptop_mode knob determines the time between the occurrence of disk I/O and when the flush is triggered. A sensible value for the knob is 5 seconds. Setting the knob to 0 disables laptop mode.
* Default: "0"
* Default: "0"
* Suggested: "1"
* Suggested: "1"
Line 134: Line 119:
===oom_kill_allocating_task===
===oom_kill_allocating_task===
-
* Description: This enables or disables killing the OOM-triggering task in out-of-memory situations. If this is set to zero, the OOM killer will scan through the entire tasklist and select a task based on heuristics to kill. This normally selects a rogue memory-hogging task that frees up a large amount of memory when killed. If this is set to non-zero, the OOM killer simply kills the task that triggered the out-of-memory condition. This avoids the expensive tasklist scan and the potential randomness of the task that the manager picked to kill. If panic_on_oom is selected, it takes precedence over whatever value is used in oom_kill_allocating_task. Taken from: [http://www.linuxinsight.com/proc_sys_vm_oom_kill_allocating_task.html]
+
* Description: This enables or disables killing the OOM-triggering task in out-of-memory situations. If this is set to zero, the OOM killer will scan through the entire tasklist and select a task based on heuristics to kill. This normally selects a rogue memory-hogging task that frees up a large amount of memory when killed. If this is set to non-zero, the OOM killer simply kills the task that triggered the out-of-memory condition. This avoids the expensive tasklist scan. If panic_on_oom is selected, it takes precedence over whatever value is used in oom_kill_allocating_task. Taken from: [http://www.linuxinsight.com/proc_sys_vm_oom_kill_allocating_task.html]
* Default: "0"
* Default: "0"
* Suggested: "1"
* Suggested: "1"
Line 169: Line 154:
===tcp_timestamps===
===tcp_timestamps===
-
* Description: Enable timestamps as defined in RFC1323. [http://www.linuxinsight.com/proc_sys_net_ipv4_tcp_timestamps.html] Turning off TCP timestamps can be counterproductive, since timestamps are used to estimate data packet round-trip times and transmission timeouts. Disabling RFC1323 timestamps may then result in poor performance in conditions of frequent packet losses. The Swappolube suggested default is to turn them off, but it may not in fact be optimal.
+
* Description: Enable timestamps as defined in RFC1323. [http://www.linuxinsight.com/proc_sys_net_ipv4_tcp_timestamps.html]
* Default: "1"
* Default: "1"
* Suggested: "0"
* Suggested: "0"
Line 190: Line 175:
==Versions==
==Versions==
-
===1.4-([http://maemo.org/downloads/product/Maemo5/swappolube/ stable version])===
+
===1.0-1 ([http://maemo.org/packages/package_instance/view/fremantle_extras-testing_free_armel/swappolube/1.0-1/ testing])===
-
 
+
-
====Changelog====
+
-
* Modification of the UI to expand on all the available screen estate.
+
-
 
+
-
====Issues====
+
-
 
+
-
* none known/reported.
+
-
 
+
-
===1.4-1===
+
-
 
+
-
====Changelog====
+
-
* Modifications in the postrm and the postinstall script.
+
-
* Installation triggers compilation of the code and removal of not needed files.
+
-
* Added simple file to start the UI.
+
-
* Modification of the UI to support rotation.
+
-
 
+
-
===1.1-6===
+
-
 
+
-
====Changelog====
+
-
* Added a dynamic button in the application menu to add/remove the entry in the Power Key menu.
+
-
* Modified the application menu entry for deleting the tuning file to appear only when file exists.
+
-
* Added a postrm script to remove settings made by the application when uninstalled.
+
-
* Added new entries in the update script.
+
-
* Renamed a few files and methods to have understandable descriptions.
+
-
 
+
-
===1.1-3===
+
-
 
+
-
====Changelog====
+
-
 
+
-
* Added new options to support modifications for interactivity improvement under high I/O load (as discussed in [http://talk.maemo.org/showthread.php?t=69973 this maemo talk] thread).
+
-
* Changes in the postinstall script to compile the code.
+
-
 
+
-
===1.0-1===
+
====Changelog====
====Changelog====
Line 231: Line 183:
* Clean-up of code; better naming of variables.
* Clean-up of code; better naming of variables.
* Changes in the postinstall script to include the custom settings file.
* Changes in the postinstall script to include the custom settings file.
-
* Bump version number - the application is now feature complete.
+
* Bump version number - app is now feature complete.
-
===0.4-1===
+
====Issues====
 +
 
 +
* none known/reported.
 +
 
 +
===0.4-1 (current)===
====Changelog====
====Changelog====
Line 239: Line 195:
* Restructure of the GUI to have a scrollable list and the buttons on the right.
* Restructure of the GUI to have a scrollable list and the buttons on the right.
* Added better information messages on several actions.
* Added better information messages on several actions.
 +
 +
====Issues====
 +
 +
* none known/reported.
===0.3-4 ===
===0.3-4 ===
Line 314: Line 274:
* Transformed several fields from boolean to strings.
* Transformed several fields from boolean to strings.
-
''NOTE:'' For older versions please see the changelogs in the [https://garage.maemo.org/projects/swappolube/ project's garage page]
+
''NOTE:'' For older versions please see the changelogs in the [https://garage.maemo.org/projects/swappolube/|project's garage page]
==Future Development==
==Future Development==

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)