Conversation

Charlotte 🦝 therian

Sway updates: we changed your default terminal and also added the entirety of i3-gaps with none of the downsides

KDE updates: kwin_x11 crashes 100% more often now

Gnome updates: we removed the file selector

6
11
28

@charlotte amdgpu updates, this post is left unfinished due to having to reboot

0
0
0
@charlotte
I do legit wonder how people has so many issues with KDE/Plasma, I probably had KWin crash once over the last year, and I'm using it on different machines with different hardware, including one with a fairly legacy NVIDIA GPU (2013-ish) awoothink
1
0
0

@lucent idk on my laptop (thinkpad t470) on NixOS i had constant kwin_x11 crashes. Doesn’t happen on wayland and I think it may be related to my laptop only having 8GB of RAM and no disk swap

1
0
0

@charlotte can't really understand what's going on with KDE, seems to be getting more and more bugs :/

0
0
0

@charlotte The worst thing I ever got in a Sway update was an opt-in experimental Vulkan renderer that required half a gig of Vulkan debug stuff to run.

Maybe KDE should make all the buggy stuff opt-in and experimental too. :)

0
0
1
@charlotte
the smallest machine where I run Plasma (X11, not Wayland) got 4 GB of RAM, but got a 1.5x ram/swap ratio just in case I want to suspend to disk (it's a laptop), never had any noticeable issue, but I never noticed swap getting used either, anyways it might be the culprit, so a swapfile might be a thing to try to rule it out axothink
1
0
0

@lucent i use ZFS and my partitioning doesn’t leave space for a swap partition so that is out unfortunately

1
0
0

@justinz not on my laptop but on my pc I do it because KDE doesn’t yet support the wayland extension virtual-keyboard-unstable-v1 and gnome refuses to support it

0
0
1
yeah, I assumed that the disk was already fully assigned, that's why I proposed a swapfile so that you can eventually get rid of it if it's not solving the issue, plus it's the suggested way to do it when using ZFS.
since you mentioned ZFS, might it be that the kernel is unable to relinquish some cache and you end up with an OOM situation?
1
0
0

@lucent the error that kwin crashes with is that it loses connection to the x server, so maybe an IO lagspike? I have an nvme ssd in this system so idk

1
0
0

@lucent and no swap doesn’t work on zfs unfortunately, swapfiles don’t work at all and swap zvol causes deadlocks

0
0
0
I chuckled, but while hyperbolic it's unfortunately true, especially considering my work desktop (running pretty much the same setup I have at home) got 24 GB of RAM and I'm using nearly 4 just to run Teams, TeamViewer, a browser and the interface for the PBX.
0
0
0
I mean, the biggest issue is that nearly all modern applications moved from being native to either pseudo-interpreted PLs (Java being the biggest culprit) or outright PWAs in a self-contained browser (Discord, Teams, Zoiper, Spotify all being Electron apps). The latter is for sure the biggest culprit considering how widespread it is and the reputation that Blink/Chromium got as a memory hog.

On the bright side, there are still applications going for full native instead of being yet another PWA wrapped in Electron, first coming to mind being Telegram Desktop (it's a Qt5 application written in C++). Hopefully their endeavour will push other companies into tackling a saner approach in distributing software.
1
0
1

@lucent @cleo telegram desktop is a bad example here as it runs blocking IO in the foreground, breaks with optimizations enabled, and includes qtwebkit

1
0
2

@cleo @lucent the JVM makes it really easy to be hugely memory inefficient (see: minecraft) and the only way to avoid this really is to avoid java’s object oriented features as much as possible for hot short-lived objects

1
0
1
I mean, the blocking IO confined in the foreground of Telegram Desktop for sure is detrimental to the performance of TDesktop, but at least it doesn't impact the entirety of your system by slowly eating up segment after segment of RAM. Agreed that memory leaks are a thing, but not as blatant as Electron.
QtWebKit is unfortunately there in the mix because of the whole "channel stats" gimmick which works pretty much by serving HTML over MTProto blobcatnotlikethis
0
0
1
Absolutely this.
It's been a while since last time I launched Minecraft, is it still only compatible with the (now) legacy 1.8 JVM? Because the newer JDKs seem to be wildly more efficient at garbage collecting and managing memory to scale.
I still cringe thinking at how inefficient the server is/was, especially when going for the usual mods (I used Spigot back in the day, pre-Bukkit takedown)... 16 GB of RAM to host 15 people blobcatsad
1
0
0

@lucent @cleo latest minecraft requires java 17, but its debug menu measures the allocation rate in MB/s

1
0
0
blobcatnotlikethis
I mean, they must thank the fact that RAM nowadays measures bandwidth on the order of 20-60+ GB/s for DDR3/4, so getting plenty headroom even on machines going to be 15 years old.
0
0
0

@cleo @lucent I’m not sure how records would save memory over manually created classes, so if you create a Vec3 that is a single heap object with 3 floats in it, and if you add two together you create yet another tiny heap object

0
0
1

@cleo @lucent yeah but that is a one-time overhead vs the object itself which would (from how I understand java memory layouts) involve storing tiny object on the heap either way

0
0
1

@cleo @lucent 1kB is wildly inefficient for storing 3 floats (12 bytes of data)

0
0
2
@cleo @lucent how else is it going to store entity info (what type, it's position and health, what it is currently doing, etc) if not once per entity?
0
0
0

@charlotte :D
but for real, KDE freezes minimum once a day now for me D:

0
0
0