Skip to content

u/engelmarkus

In this archive from Apr 2019 to Oct 2026

2
posts
126
comments
0
media
586
score

I just wrote a little proof-of-concept for this. To try it out, play something in Spotify, then open e. g. a video in Chrome or in VLC. As soon as the video starts playing, Spotify is paused. When you pause the video, it takes a few seconds until Chrome releases its input (VLC does this immediately), then Spotify playback is resumed automatically.

https://gist.github.com/engelmarkus/fd81cd95775ffa365a58958e24829bd3

Edit: This should work for all programs that play sounds as long as they "cork" their input when idle. As I said, "poc".

3 points

Right, historically in Unix systems there was no /home but the users' home folders were stored in /usr, which usually was some network storage. /usr/share was the network share accessible by all users. When storage ran low on the local hard drives and admins had to install additional software, they invented the "bin" user with its home folder /usr/bin. So, this is nothing more than a hack that led to our modern /usr directory layout.

2 points

In my experience, windows kills processes a lot faster than linux does in the oom case. Using linux, the system rather freezes and processes starve while it tries to continue running all of them.

That's what I'd expect to see (the "D" tells you it is waiting for the disk):

kernel: INFO: task Cities.x64:9536 blocked for more than 122 seconds.
kernel:       Tainted: P           OE     5.7.7-1-custom #1
kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kernel: Cities.x64      D    0  9536   9395 0x00004000
kernel: Call Trace:
kernel:  ? __schedule+0x284/0x790
...
kernel:  ? handle_mm_fault+0x109/0x160
kernel:  ? do_page_fault+0x196/0x4ec
kernel:  ? page_fault+0x2c/0x40

Was there thrashing before the oom killer was invoked? Or did you change the setting that prevents linux from overcommitting memory? Do you use any wrapper for firefox/your de that puts stuff in a cgroup to limit their maximum memory usage? What are "baloo" and "tags.so"? I'm wondering why there are so many unevictable pages... have you got an igp that you have assigned 3 gb of video ram to?

2 points

I'm using this driver myself with the current kernel, it's working fine. The patches that had to be applied by the community so far are rather small, there's nothing that should prevent it from working. Using the dkms version, you have to upgrade the driver package only for major kernel updates, so it's enough to wait a few days after e. g. 5.8 is released, until the aur package is up to date. The patch for 5.8 can be found here, btw: https://gitlab.com/EULA/snippets/-/blob/master/NVIDIA/390.138/kernel-5.8.patch

3 points

Sounds like the source has not been adjusted to GCC 10.

GCC now defaults to -fno-common. As a result, global variable accesses are more efficient on various targets. In C, global variables with multiple tentative definitions now result in linker errors. With -fcommon such definitions are silently merged during linking.

So, adding "-fcommon" to your CFLAGS might help.

Edit: This workaround is btw described in the link in the first post here, that you have even commented on: https://github.com/baskerville/bspwm/issues/1119

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.