View Single Post
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#49
Originally Posted by sixwheeledbeast View Post
I agree if a reboot fixed it this can only be the int32 issue.
Yep.

Originally Posted by sixwheeledbeast View Post
I am now using Mb not bytes I am dividing the values by 1024.
I hope we did not just talk but understood each other
What value are you dividing by 1024?
The number of bytes (ublocks * 512)? This would be bad idea.
The number of blocks (ublocks from /proc/diskstats? This would also be bad idea.
Just get the number of blocks and assign
let uMB=$(($ublocks / 2048))
this will assign the number of MBs (not rounded, so 1MB deviation possible).

Originally Posted by sixwheeledbeast View Post
I have not had this issue with my maximum 8 days of uptime time, so for a device with only 1 day of uptime that's a lot of swap.
Not so unusual. I get my swap space (now 2x 1,5GB filled up in one day with heavy browsing, mailing and a few more phone calls). So reaching 2GB after 1 day is possible.

One hint here for all swap checkers:
make your partition as big as you are willing to spent.
My swap usage is growing and growing. After 10 days I had more than 400MB swap usage. So with a default 768MB space a swaparound was triggered almost after a few hours and a few times a day.

Originally Posted by sixwheeledbeast View Post
I want FlopSwap to work indifinately not start failing after xyzTB of swap, so I am in search of another way.
Above will work. There will be no need for another solution.
TB=TeraByte, i.e. 1000GB
I do not think we will reach that amount of used swap. Even after a year uptime
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following User Says Thank You to peterleinchen For This Useful Post: