libera/#maemo/ Saturday, 2022-09-24

pabs3swap on an SD card sounds like a bad idea :)02:34
MaxdamantusThat's what I did, because if I'm going to potentially wear down some flash memory, I'd rather wear down flash memory that can be replaced.02:36
MaxdamantusI think I've only had one card go read-only.02:37
MaxdamantusI might have had some other cards fail in some other way, can't remember.02:37
pabs3seems reasonable I guess. is there enough RAM and CPU cycles to use zram (compressed RAM) as swap instead?02:42
pabs3if so, that should reduce the amount of writes to the SD card swap02:43
MaxdamantusI imagine it would depend what your priorities are.02:45
MaxdamantusPresumably adding compression will mostly use more battery.02:46
MaxdamantusYou want to avoid thrashing swap in any case.02:46
joergpabs3: we had a ... 230MB of RAM iirc03:00
pabs3I guess that is not enough :(03:08
joergwell, it's plenty for IRC clients, for MP3 player, even for playback of video DVDs right from a USB connected optical drive, for chess and angry birds and... Microb browser... until you run into a "web2.0" webpage03:11
joergor into a fsck.fat of a few GB of SDcard storage ;-)03:15
joergthe latter reportedly might take literally days to finish03:15
joergiirc there's even a package "reswap"03:19
siceloi think freemangordon did some benchmarks and found zram wasn't so helpful for N900 indeed03:54
joerg:-)06:03
sixwheeledbeastyep swap on uSD was to reduce wear on the device I also recall the zram tests.09:27
sixwheeledbeastI have realised this was a cheap card that came with something and it's done 5ish years. i thought it was my sandisk althou that will be older come to think of it.09:30
sixwheeledbeastIt was also pretty full by the look of it. i thought it was the 64 sandisk when it was a 16.09:31
KotCzarnyif the card was mostly used by non-updating data, then effectively it was acting like available-GB max card09:32
KotCzarnyif ie. on 16gb if 12gb was pics/movies, and you were using swap on it, it was acting like 4gb card09:32
KotCzarnyor worse, if wear levelling algo was braindead09:33
sixwheeledbeastyep09:33
MaxdamantusIs that necessarily true? Presumably cards could work around that by moving the old data to the worn cells.15:00
MaxdamantusMaybe they don't do that for power/reliability reasons, dunno, but I highly suspect that modern SSDs will at least do that.15:01
MaxdamantusI would imagine SD cards would do that as well, which would presumably explain why SD cards have such varying write speeds (because as you write to them, they might decide to move old data to worn cells, to reuse the relatively fresh cells—adding extra read/write operations within the FTL)15:05
KotCzarnysee the 'braindamaged wear levelling'15:05
KotCzarnycheap cards have dumb firmware15:06
MaxdamantusRight, but wouldn't it only behave like a 4 GB card in the case of "braindead wear levelling"?15:06
KotCzarnywho knows what is really on the card15:07
MaxdamantusIt's still obviously better to have more space free, since it means you don't have as much data to shuffle around, but 4 GB would really be the worst case.15:07
* Maxdamantus has only bought Samsung/Sandisk cards anyway, except one time.15:08
KotCzarnyfor me samsung evo+ 128gb failed way too early, not going to buy again15:09
* Maxdamantus wonders if removable MTD drives will ever become a thing.15:11

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!