![]() |
2014-10-22
, 16:32
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#282
|
Reformatted and it worked: flopswap detected the swap partitions.
Then I decided to torture test swap and started by opening aplication manager: spontaneous reboot -> no more applications listed in application manager
This was an annoying as I had the option "use external swap on boot" checked and forgotten through previous attempts, so the device kept booting using an easily corruptible swap.
Here is the result of the above code sequence, for anyone interested (of course now with swap on device):
You should extend your swap partitions to at least (my use case) double size, so 1,5GB each. If I would have a 64 card I would use 2x 3GB!
This lessens the number of swap refresh actions (or extends time between those) where each refresh is doing read/write task on SD nd is CPU consuming,...
The Following 3 Users Say Thank You to sixwheeledbeast For This Useful Post: | ||
![]() |
2014-10-22
, 16:32
|
|
Posts: 1,197 |
Thanked: 2,710 times |
Joined on Jan 2010
@ Hanoi
|
#283
|
You should extend your swap partitions to at least (my use case) double size, so 1,5GB each. If I would have a 64 card I would use 2x 3GB!
This lessens the number of swap refresh actions (or extends time between those) where each refresh is doing read/write task on SD nd is CPU consuming,...
![]() |
2014-10-22
, 16:35
|
|
Posts: 6,450 |
Thanked: 20,983 times |
Joined on Sep 2012
@ UK
|
#284
|
Thank you for your suggestion! It seemed my card (Sandisk) was corrupt
First I rechecked with GParted and noticed two exclamation marks near the swap partitions on the Swap partition.
Reformatted and it worked: flopswap detected the swap partitions.
Then I decided to torture test swap and started by opening aplication manager: spontaneous reboot -> no more applications listed in application manager
The device started to behave erratically and reboot and again-> next reboot I rushed to FlopSwap to move swap back to device!
The Following 2 Users Say Thank You to pichlo For This Useful Post: | ||
![]() |
2014-10-22
, 16:44
|
|
Posts: 1,197 |
Thanked: 2,710 times |
Joined on Jan 2010
@ Hanoi
|
#285
|
That sounds like your SD card may be worse than corrupted - it may be fake. I've had quite a few of those. So many in fact that the first thing I do now whenever I buy a new SD card is fill it to the brim with large files, unplugging the card (to purge any FS cache), plugging it in again and reading the files back.
Quite a few cards I've had let you write e.g. 32GB worth of files without a blink, but when you try reading them back as per above, you find that anything written beyond let's say the 8GB mark reads back as all 0 (or all FF, depending on the card).
![]() |
2014-10-22
, 20:39
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#286
|
![]() |
2014-10-22
, 22:20
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#287
|
About swap size (just my personal 2 cents):
I have 2x.1.5GB. And I sometimes get into trouble after some longer uptime that my personal swap refresh script bites two/three times a day. And that sucks as it really slugs it down.
In general sixwheelebeast is right about swap size. But with our small amount of RAM a lot of swap is needed.
It surely depends on setup and how many daemons running and so on. Furthermore I am completely on devel repo.
My swap usage (/proc/swaps) tells me sometimes over 450MB actively used.
If you have a normal usage pattern, 800MB may be enough. But this is just default size. It may be enough for a day (for me not, depending on run time and usage) but it will need an every night swap refresh. Which I would like to avoid as this is also heavily wearing the flash (and I have data too on SD card, not to loose)
The Following User Says Thank You to sixwheeledbeast For This Useful Post: | ||
![]() |
2014-10-23
, 07:06
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#288
|
The Following User Says Thank You to peterleinchen For This Useful Post: | ||
![]() |
2014-10-23
, 08:25
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#289
|
swapped/flopped/moved is always (only) the currently used amount of swap memory (so maybe just 150MB or 200 or in my case max 450). But never more. So if I reduce the refresh actions I reduce the amount of write cycles on flash, right? [so your example with 200/day vs 700/3days do not match, afaiu]
Do not get me wrong, I like flopswap and want to help make it better from the beginning (I have no intention to release a third/fourth swap refresh tool)
The Following User Says Thank You to sixwheeledbeast For This Useful Post: | ||
![]() |
2014-10-24
, 06:15
|
|
Posts: 1,197 |
Thanked: 2,710 times |
Joined on Jan 2010
@ Hanoi
|
#290
|
The Following 9 Users Say Thank You to ste-phan For This Useful Post: | ||
If you want to support my work, you can donate by PayPal or Flattr
Projects no longer actively developed: here