View Single Post
Posts: 2,292 | Thanked: 4,135 times | Joined on Apr 2010 @ UK
#47
Originally Posted by peterleinchen View Post
I am pretty sure this is int32 problem.
An signed int32 can hold a bit over 2GB (less than 2,3GB) as number of bytes. If you calculate bytes as blocks multiply 512, you will reach that border pretty soon.

So just change calculation as above (omit bytes and use directly kB or even MB) and you will be able to calculate up to 2TB swap space ...
I agree if a reboot fixed it this can only be the int32 issue.

As I explained here
http://talk.maemo.org/showthread.php?t=88121

I am now using Mb not bytes I am dividing the values by 1024.

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.

I want FlopSwap to work indifinately not start failing after xyzTB of swap, so I am in search of another way.

PS thanks saponga for your testing.
As I say only had this issue with Ver 0.0.4beta when I was calculating swap by bytes. See link above for more information.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

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