libera/#devuan/ Friday, 2021-10-01

hyrcanushow many GB drive space does GCC need to compile02:06
Hydragyrumas in compiling gcc? I don't know the exact number off the top of my head, but 4gb should be plenty for just gc03:23
Hydragyrums/gc/gcc/03:23
hyrcanus_yeah seems i need more for gcc-10.  freed up 7.8GB03:24
hyrcanus_there's a nasty bug with 'atomic' on my aarch64 board.  a bunch of stuff won't compile.03:24
hyrcanus_and downgrading to gcc-9 seems to be problematic03:24
Hydragyrumguess I misremembered that -- I know LFS previously had 10gb total space req03:25
Hydragyrumaarch64's reqs are also probably different from amd64 which is what I've compiled it on03:25
hyrcanus_ARM is still a stepchild in many ways03:26
hyrcanus_on redhat's gcc with this armv8 defining -mno-outline-atomics is a workaround, but not on debian's03:29
hyrcanuswoke  up, gcc compilation erroring, 7.8 GB used09:59
gnarfacehyrcanus: try using zram for swap10:31
hyrcanushm 3.7GB RAM, 6GB normal swap.10:32
hyrcanusinteresting idea10:33
gnarface7.8 may seem like alot but i recall hearing of a efl build bug that also only affected aarch64 which caused it to use around 32GB10:34
gnarfacebut zram is like downloading more ram10:34
gnarfaceso you could easily manage that10:34
gnarfaceif nothing else you could at least find out how much more ram you can make it use... you know for science ;)10:35
hyrcanusis the performance impact of zram significant?10:37
gnarfacenot compared to actual swap10:37
gnarfacenot compared to disk i/o10:37
hyrcanusin the case of not-swapping10:37
gnarfaceit's actually rather fast on modern hardware, and is a significant performance improvement over a physical swap partition for anything ram constrained10:38
gnarfacefor anything not ram constrained you wouldn't be using swap so it wouldn't make a difference10:38
gnarfacethe idea here is to make a zram block device then put your primary swap partition on that instead of the harddrive10:38
gnarfacethen you can compress it at a factor of 10 or whatever and get as much ram as you need10:39
gnarfacelots of ARM devices only have 2GB of ram and they're not expandable, so this trick has been rediscovered in that community10:39
gnarface(you can imagine the swap i/o delay is especially bad using a microSD as your main drive)10:40
hyrcanusyes10:41
gnarfacedefinition of modern hardware in this context: anything after the pentium 110:41
hyrcanusi have one arm device with zram enabled so at least i have a reference10:41
hyrcanus 'zram-config' has no installation candidate10:43
hyrcanusok that's ubuntu-only10:43
gnarfacehyrcanus: it's zram-tools10:48
gnarfaceprobably10:48
hyrcanusso for a system with 3754 mIB ram, echo 7G > /sys/block/zram0/disksize would be reasonable?10:49
gnarfacei don't know really but that sounds fairly conservative from what i've heard other people doing10:50
gnarfacepeople have reported easily using it for double or triple that10:50
gnarfacei'm sure the performance will scale inversely but i couldn't tell you where the sweet spot is10:51
gnarfaceyou can have more than one swap partition so it should be possible to keep the one on the harddrive but that could shackle your speed too10:52
gnarfacebut speed isn't really the goal here i don't think, is it?10:52
gnarfaceit's more about getting more space at any cost10:52
gnarfacei would think10:52
hyrcanusi don't have a log of ram usage from last night's compile attempt10:53
hyrcanusi can hear when my SBC is working.  there's some resonance in the power supply :)10:57
hyrcanuswell now i seem to have lots of swap without a swapfile \o/10:58
hyrcanusother device has zram set up to 25% of physical RAM11:09
hyrcanussets up one zram device per cpu core11:12
alv....14:55
gnarfaceyes?14:57
blockheadJust got up, was reading the scrollback from the overnight and ... I had no idea zram worked that way.  Fascinating.  Thank you gnarface.15:00
gnarfaceno problem15:01
gnarfaceyea it's an idea i remember cooking up myself even as a child, but had discarded as i'm sure we all did because of the perception of how ludicrous the cpu overhead would be for such a task15:05
gnarfacebut i guess the era where that was true has passed us by along with my childhood15:06
gnarfaceonce we hit gigahertz and gigabytes this type of compression became "trivial"15:06
* blockhead thinks of "ram doubler" on the mac in the mid 1990s15:07
gnarfacebut on uncompressed plain-text content, which gigabytes of ram surprisingly often is, can get nearly a 90% size cut15:07
gnarfaceso it basically just uses your free space like ram doubler did, but as a separate block device15:07
* blockhead is reading the wikipedia page, it says pretty much what you did. Neat.15:07
gnarface(which you can do whatever you want with but for stuff other than swap, tmpfs might be a better choice)15:07
gnarfaceit is reportedly surprisingly useful for improving firefox performance on systems capped at 2GB of ram15:09
fluffywolfI was playing with a pmmx-233 a few months ago, with 160GB ram.  I tried zram to see if it would make firefox run better.  it made it much, much slower.15:43
gnarfacehehe15:43
fluffywolf160MB15:44
* fluffywolf is too used to typing ram sizes on modern systems. lol15:45
fluffywolfit went from spending its entire time swapping to spending its entire time compressing and decompressing, which was much slower on that cpu.15:45
gnarfacebrutal15:47
fluffywolfI gave up running firefox on it.15:48
fluffywolfit's kinda sad how much ram firefox needs to load one tab.15:49
jushurzram will be fast on a fast CPU obviously, also note that modern CPU's usually has dedicated paths for handling this type of software19:49
gnarfaceanything with multiple cores over 1ghz and ddr2 or better ram should do well i'd think19:50
gnarfaceram speed counts for this too19:50
jushuryeah19:50

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