libera/#maemo-leste/ Wednesday, 2024-07-31

Wizzupphoenix.maemo.org / leste.maemo.org is down for a few more hours today, and then they will be on UPS12:17
inkyi want to also tell that i don't know why, but under maemo pinephone not only works longer than under postmarketos, but the handset itself is cold, under pmos it is always hot. even if on apps run.12:39
inkyi don't know why is this, i assume you integrated all or almost all patches, so i guess this is more because of devuan vs alpine thing. maybe glibc vs musl also matter, i don't know.12:39
inkyi hope it's not just the older versions of everything.12:39
Wizzupcould be wayland vs X12:44
Wizzupor gtk4/qt6 vs gtk2, etc12:44
uvosinky: seams mutch more likely that you have something installed thats using cpu time on pmos rather than something we did, we dont hit any sleepstates on the pp as far as i am aware12:46
uvosinky: i gues running powertop and compearing would reveal who it is12:46
Wizzupwe def. worked on pp power management12:47
uvosWizzup: sure but we dont hit crust sleep at all12:47
uvosiirc12:47
uvosalso on pmos you could have any interface installed or no interface installed so like Wizzup sais it might be heavy or not12:47
Wizzupright, the mode where you basically suspend and can't listen to music we don't hit12:47
uvosWizzup: right i know but pmos can hit it depending on the installed de12:48
arno11Wizzup: btw zram is still there in n900 just not launched on boot14:41
arno11i tried it and as expected, it is a bit slower than swapfile14:42
arno11but it works14:42
Wizzupyeah, so it is disabled as expected14:47
arno11yep14:47
buZzarno11: did you try those zram tweaks perhaps?15:08
buZzhttps://wiki.archlinux.org/title/Zram#Optimizing_swap_on_zram15:08
buZznot sure if it'll have a lot of impact, but it might15:08
arno11buZz: hi ! ah yes interesting, i'll try. thx15:43
buZzi'll be curious to see if such improves it for n90015:44
arno11(currently trying)15:55
Wizzup'zram on n900 or not' is something that comes up a lot and historically the answer has been 'no'15:55
arno11yes ofc, just out of curiosity (and to learn something)15:58
buZzuhuh16:02
arno11buZz: still definitely slower (compared to swapfile)16:02
buZzright, ok16:03
Wizzuphm, we don't use zstd for zram do we?16:18
Wizzupit's lzo-rle on my d416:19
Wizzupah we don't have this in our kernel16:26
WizzupI think we want CONFIG_ZRAM_DEF_COMP_ZSTD set16:26
uvosWizzup: ok16:58
uvosWizzup: https://linuxreviews.org/Comparison_of_Compression_Algorithms suggests lzo is mutch faster than zstd, while being less space efficant17:00
uvosWizzup: idk what is the better tradeoff17:01
uvosn900 is sortof short of both, space and speed17:01
uvosat least on d4 i find myself rarely in want of more ram but often in want of more speed so maybe there lzo is good as is?17:04
inky>also on pmos you could have any interface installed or no interface installed so like Wizzup sais it might be heavy or not17:04
inkywith every interface, i usually use sxmo, it is the most lightweight. i don't turn on suspend.17:04
inky>could be wayland vs X17:05
inkyin sxmo i use X. that's my usual there.17:05
inky>we def. worked on pp power management17:05
inkyi guess you did something important and incredible.17:05
inkysincerely, without anything running, only bare sxmo which is dwm, it would be down in 3-4 hours, but it is up since the late morning and half of the battery is used.17:06
inkyi'll try powertop.17:06
uvosi think mainly something is broken on your pmos install17:06
inkyi understand, but sincerely, there's not much to be broken, that's a bare dwm with customizations.17:07
inkyi'll try powertop.17:07
uvosthe thing with pm is that it can break in a lot of ways17:08
uvosi think you should investigate it a bit and maybe file a bug with pmos against the difference17:08
uvosthe kernel should be pretty mutch the same so the userspace you have installed must be misbehaveing somehow17:09
inkyi'll try.17:09
WizzupI thought zstd was faster and better, maybe I'm confused17:11
Wizzupuvos: I am not sure if the kernel is that exactly the same17:12
uvosWizzup: im just going of those nummbers there, i have no futher knowlage in this area17:12
uvosbut if those are correct then i think lzo may be the best tradeoff17:12
Wizzupthey only measured cp time, which is compression only17:14
Wizzupnot decompression17:14
Wizzupthis would assume that most of the zram would then be written to more than read?17:14
uvosWizzup: yeah17:14
uvosWizzup: thats unlikely17:14
uvosWizzup: but idk what the relavtive speed difference is during decompression17:15
uvoslzo is mainly very simple so i suspect its fast there too17:15
WizzupI think zstd decompresses really fast17:15
Wizzupas you can see it's basically near gzip17:16
uvoswell gzip uses deflate17:16
uvosand wikipedia claims lzo to be faster than deflate17:17
uvosso again idk17:17
uvosneeds numbers i gues17:17
uvosWizzup: so i found this17:24
uvoshttps://quixdb.github.io/squash-benchmark/17:24
uvosit suggests zstd is mutch slower than zstd, but i dont know what level was used (or what level the kernel uses)17:25
uvoser zstd is mutch slower than lzo17:25
uvosin both compression and decompression17:26
Wizzupsquash uses the highest levels I guess?17:26
uvosmaybe dunno17:27
Wizzupyeah it doesn't list the levels, this is kind of essential17:27
Wizzuphttps://github.com/facebook/zstd/issues/3098 well17:28
Wizzuphttps://github.com/facebook/zstd?tab=readme-ov-file#benchmarks17:30
Wizzupok, looks like lzo decompresses a bit faster too17:30
uvosso verdict? is better compression ratio worth mutch slower compression and slightly slower decompression?17:30
Wizzupdon't really know, I could see it go either way17:31
Wizzupon the n900 which is really short on ram I could see zstd maybe being better17:31
WizzupI don't feel like the n900's main issue is 100% cpu usage so to say17:32
Wizzuphttps://www.reddit.com/r/Fedora/comments/mzun99/new_zram_tuning_benchmarks/17:35
siceloinky: pmos does run quite a few things that can be CPU-intensive. you won't believe it, but, for example, sxmo pegs N900 cpu at 100% non-stop (well disabling conky makes things better)17:38
Wizzupo.O17:39
uvoswow thats terrible17:39
uvosi mean thats your problem right there xD17:39
Wizzupah etc/init.d/zram comes from arm-sdk... that's why it isn't in dpkg -S17:42
arno11Wizzup: btw how to check zram current algo ?17:47
Wizzupzramctl17:49
arno11thx17:50
arno11currently trying zstd18:16
Wizzupyou can probably increase the zram size too18:17
Wizzup(since it compresses better)18:17
arno11ah ok, yes seems to small18:19
WizzupI'd say at least 30% more18:20
Wizzupmaybe even 50% depending on your current size18:20
arno11actually 175MB18:20
Wizzupthere's also the question of whether the zram backing is your ram or a loopback device, I think it could be either18:20
Wizzupmaybe not..18:21
* Wizzup googles18:21
WizzupI think that is zswap18:21
arno11ok18:21
Wizzupor was :)18:21
arno11ok :)18:22
Wizzupyes, so nevermind my above, zram is only in ram18:22
Wizzupbut there is also https://wiki.archlinux.org/title/Zswap18:23
arno11so lzo seems definitely a bit faster on n900 compared to zstd18:55
arno11but slower than sd swapfile18:55
arno11ofc i suppose it is possible to tweak zram stuff a lot18:56
arno11on n900, the weak cpu seems the culprit bcs overclock improves things with both algos18:58
Wizzupfaster how, startup times?18:59
arno11yep18:59
Wizzupis it possible to set zstd level?18:59
Wizzuplooks like not18:59
arno11ok19:00
arno11bbl19:04
uvos"After the page has been decompressed into the swap cache, the compressed version in the pool can be freed."21:46
uvosdose zswap really work like that, seams pointless to decompress the page before writeing it to disk, why not decompress it when reading it back21:47
Wizzupyeah, that is odd22:43
inkywhat was about that issue when whitespace rotated the screen? i experience it now with dino. every time i press whitespace with onscreen keyboard (not maemo keyboard), screen rotates. i remember diejuse had this issue.23:34

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