Thread: [Fremantle Maemo5] [Announce] OpenSSH status widget
View Single Post
Posts: 136 | Thanked: 263 times | Joined on Nov 2012 @ Germany
#56
Folks, here comes an important update!

In v1.5-0 cpu load is being reduced by about 90%. In prior versions the routines for checking server status and number of connections generated a cpu load of 6% (measured with top in ssh). The reason was to be found in the python command
Code:
subprocess.Popen
which in python 2.5 does neither allow direct piping beween shell commands nor writing directly into a variable. I replaced it with the legacy command
Code:
commands.getoutput
which reduced the respective code to two lines and the cpu load to 1,7%.

In addition I increased the tracking interval of 2 seconds to finally 5 seconds, which feels still reasonable to me. It led to further decrease in cpu load to 0.6%.

Another option has also been added (as a result of discovering the former cpu load ):
  • Stop server when not connected for xx minutes
...still a suitable option, even with heavily decreased cpu load.

Finally I added setting signal strength to high level when keeping off wifi power management.


Changes in v1.5-0:
*cpu usage reduced by 90% (from about 6% to 0.6%)
*new option: Stop server when not connected for xx minutes
*signal strength set to high when wifi pm is off
 

The Following 3 Users Say Thank You to rasmarc For This Useful Post: