Re: [gentoo-user] Machine hangs up with out of memory
On Fri, Apr 30, 2021 at 8:09 PM Michael wrote: > On Friday, 30 April 2021 02:30:51 BST Adam Carter wrote: > > On Wed, Apr 28, 2021 at 7:58 PM Kai Peter wrote: > > > Hi, > > > > > > I have an issue with a machine where I'm not able to detect the real > > > root cause. It hangs up totally. It seems like it was running out of > > > memory - but why? Hopefully somebody can give me some insight. As far I > > > can see right now, it hangs up a few hours after an `emerge --update > > > --newuse --deep --with-bdeps=y @world`. > > > > > > The machine is an Intel Atom with 8 GB RAM (physical, max) and 24 GB > > > swap (a file). So 32 GB RAM in total. > > > > Might be worth adding zswap using zstd or lz4 to your config (uses more > CPU > > for less IO) > > https://www.kernel.org/doc/html/latest/vm/zswap.html > > Zswap will help optimise the swapping of cold pages out of RAM into the > compressed zswap cache and eventually push these out to the disk. This > won't > help with the problem of not having enough RAM to start with for compiling > packages with large resource requirements, like e.g. Chromium. > Yep, but the system is already at its full RAM, so we're in workaround/tactical solution territory. Any system that needs 24gig swap to support 8gig ram is going to really suck. > > With monster packages where more RAM is needed even for a single > compilation > job, after all cold pages have been swapped out, hot pages will start > being > swapped out/in. I think at this point the same I/O race condition will > ensue > as if no zswap were available, plus a compress/decompress CPU load. I > guess > the point of starting to thrash the on-disk swap trying to free RAM may > start > sooner, since RAM which would otherwise be available for the single > prioritised compilation job is now being used by zswap. So, there would > be a > sweet spot in using zswap to improve I/O performance, but it could end up > becoming a disbenefit on compilation of RAM hungry packages. > > Please correct my reasoning above if I have misunderstood how zswap works. > What you've said sounds reasonable to me.
Re: [gentoo-user] I've got a pod of dolphins after start-up
On Sat, May 1, 2021 at 8:49 AM Andrew Lowe wrote: > > On 1/5/21 3:04 pm, Neil Bothwick wrote: > > On Sat, 1 May 2021 01:24:23 +0200, Frank Steinmetzger wrote: > > > >> I also have experienced something like it. In my case it was Wireshark > >> coming up after I only launched it once. It is probably KDE’s session > >> management getting into your way. Unfortunately I haven’t found a place > >> where to configure the session. There’s probably a file in ~/.config or > >> ~/.local about that. As a quick remedy I switched to empty session on > >> startup (open system settings and look for session). > > > > Did you try adding Wireshark to the Don't restore these applications list > > in System Settings->Startup and Shutdown->Desktop Session? > > > > > > Ha, the problem is back, dolphins everywhere. The problem seems to be, > for me at least, that when I close Dolphin after doing a bit of > file/folder stuff that the GUI shuts down but some zombie part remains. > Just now, when I fired the machine up, I had three instances of Dolphin > running. I closed all three, little red button top right hand corner and > did a: > > ps -A | grep dolphin | wc -l > > Sure enough 3 zombies. Open Dolphin, do some "stuff", close Dolphin, do > the "ps" command above and I' ve now got 4 zombies. Do this a couple of > more times and I now have 8 - 9 zombies. > > Clean out ~/.config/session, ie it's now empty, and shut the machine > down. Restart machine and hey presto, 8 - 9 Dolphins up and running and > ~/.config/session contains 8 - 9 Dolphin "restart config", or whatever > they are called, files. > > I think it is time to head over to some KDE forum and ask questions there. > > Andrew > Being that you're most probably running Gentoo I would ask what your flag/build options might be? If you're like so many people here you probably aren't running a completely stable build. Possibly some flag is contributing to this problem? In a standard KDE forum where most folks will (like me) just be running a standard distro (like me - Kubuntu) they will (like me) tell you they don't see the problem... - Mark - Mark
Re: [gentoo-user] I've got a pod of dolphins after start-up
On 1/5/21 3:04 pm, Neil Bothwick wrote: On Sat, 1 May 2021 01:24:23 +0200, Frank Steinmetzger wrote: I also have experienced something like it. In my case it was Wireshark coming up after I only launched it once. It is probably KDE’s session management getting into your way. Unfortunately I haven’t found a place where to configure the session. There’s probably a file in ~/.config or ~/.local about that. As a quick remedy I switched to empty session on startup (open system settings and look for session). Did you try adding Wireshark to the Don't restore these applications list in System Settings->Startup and Shutdown->Desktop Session? Ha, the problem is back, dolphins everywhere. The problem seems to be, for me at least, that when I close Dolphin after doing a bit of file/folder stuff that the GUI shuts down but some zombie part remains. Just now, when I fired the machine up, I had three instances of Dolphin running. I closed all three, little red button top right hand corner and did a: ps -A | grep dolphin | wc -l Sure enough 3 zombies. Open Dolphin, do some "stuff", close Dolphin, do the "ps" command above and I' ve now got 4 zombies. Do this a couple of more times and I now have 8 - 9 zombies. Clean out ~/.config/session, ie it's now empty, and shut the machine down. Restart machine and hey presto, 8 - 9 Dolphins up and running and ~/.config/session contains 8 - 9 Dolphin "restart config", or whatever they are called, files. I think it is time to head over to some KDE forum and ask questions there. Andrew
Re: [gentoo-user] Audio through both HDMI outputs?
On Sat, 1 May 2021 at 15:36, Mark Knecht wrote: > As posed I don't know that the question is answerable. You don't state > what desktop environment you are using. If it happens to be KDE > then you will likely need to dig into pulseaudio through the System > Settings GUI which could be the controlling feature in that > environment. I don't run any desktop environment. I'm running openbox on this computer, and I don't think it has any potential to control sound. I also don't have pulseaudio installed. Regards, Arve
Re: [gentoo-user] Audio through both HDMI outputs?
On Sat, May 1, 2021 at 5:03 AM Arve Barsnes wrote: > > Hello, > > Does anyone know anything about how to check audio through Nvidia HDMI outputs? > > My regular audio is through the motherboard output, and I also have a > USB soundcard that I regularly use without trouble, but my HDMI is a > different matter. > > I have a GTX 1080 card with two HDMI outputs, the first connected to > my main monitor, and the second connected to a TV. I've managed to > play sound through my monitor with aplay, but no luck with the TV. > > aplay reports: > $ aplay -l > card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > card 1: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > card 1: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > card 1: NVidia [HDA NVidia], device 12: HDMI 6 [HDMI 6] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > > To get sound through the monitor: > aplay -D plughw:1,7 sample.wav > > No luck on any of the other 6 devices reported. I suspect there might > be a setting somewhere on the Nvidia side that limits sound output to > one of these, and if that is so, I'd rather have the TV able to get > sound, as my computer have separate speakers and no need for the HDMI > sound output. > > Any ideas for troubleshooting this welcome. > > Regards, > Arve As posed I don't know that the question is answerable. You don't state what desktop environment you are using. If it happens to be KDE then you will likely need to dig into pulseaudio through the System Settings GUI which could be the controlling feature in that environment. Any other desktop environment I have no experience these days. Good luck, Mark
[gentoo-user] Audio through both HDMI outputs?
Hello, Does anyone know anything about how to check audio through Nvidia HDMI outputs? My regular audio is through the motherboard output, and I also have a USB soundcard that I regularly use without trouble, but my HDMI is a different matter. I have a GTX 1080 card with two HDMI outputs, the first connected to my main monitor, and the second connected to a TV. I've managed to play sound through my monitor with aplay, but no luck with the TV. aplay reports: $ aplay -l card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 12: HDMI 6 [HDMI 6] Subdevices: 1/1 Subdevice #0: subdevice #0 To get sound through the monitor: aplay -D plughw:1,7 sample.wav No luck on any of the other 6 devices reported. I suspect there might be a setting somewhere on the Nvidia side that limits sound output to one of these, and if that is so, I'd rather have the TV able to get sound, as my computer have separate speakers and no need for the HDMI sound output. Any ideas for troubleshooting this welcome. Regards, Arve
Re: [gentoo-user] I've got a pod of dolphins after start-up
On Sat, 1 May 2021 01:24:23 +0200, Frank Steinmetzger wrote: > I also have experienced something like it. In my case it was Wireshark > coming up after I only launched it once. It is probably KDE’s session > management getting into your way. Unfortunately I haven’t found a place > where to configure the session. There’s probably a file in ~/.config or > ~/.local about that. As a quick remedy I switched to empty session on > startup (open system settings and look for session). Did you try adding Wireshark to the Don't restore these applications list in System Settings->Startup and Shutdown->Desktop Session? -- Neil Bothwick Top Oxymorons Number 12: Plastic glasses pgp5ISttGdnHr.pgp Description: OpenPGP digital signature