I made a small tool to alert when your machine is oversaturated, *before* the machine slows to a crawl. Feedback welcome!
github.com/cdown/psi-notifyNot downloaded yet
In this archive from Aug 2012 to Aug 2023
I've started writing a library to access the AUR API in Python 3, mostly as an exercise for me to learn what has changed since Python 2. Expect features to be added fairly swiftly. Hoping to get feedback early in development so that anyone more familiar with the API/more familiar with Python 3 is ab...
Presumably because groups are quite fragile and don't integrate very well in the current libalpm design. For example, there's no tracking of the fact that a package was installed due to being part of a group, and there's no single way to keep a group in sync -- for example, expunging removed members of a group, and installing new members of a group on upgrade. Sure, you can hack around this, but it's not really that well supported.
However, I am concerned that this is being done while
baseis still so large. We have tons of stuff in there that most people are simply never going to use (reiserfsprogsandjfsutilsperhaps being two of the most obvious examples). It would be nice to have a targeted drive to reduce the size ofbaseandbase-devel.On the AUR: https://aur.archlinux.org/packages/psi-notify/
Posting here in particular since this uses some pretty new kernel features (specifically PSI, which is enabled in the default Arch kernel) that I think will be of interest to Arch Linux users. :-)
I think we've all had situations where the desktop environment has become so slow as to be unusable, usually because some application has started eating up system resources quickly. Fellow Chrome users, I'm especially looking at you.
My wife is certainly someone in that position. Often she gets into scenarios where unwieldy applications like Chrome would unexpectedly eat memory over time, eventually ending with her desktop suddenly slowing to a crawl. Usually the only way out of this situation is to manually trigger an OOM kill with Alt + SysRq + F, and even then that's not foolproof, since the OOM killer may not pick the right target to kill. Even if it does pick the right target to kill, system responsiveness after the fact can still be impacted since the thrashing has pushed many pages into swap.
Logging PSI metrics on her machine leading up to these incidents, it was pretty obvious that there was always an opportunity to alert her ahead of time that the situation was becoming a problem, and allow her to manually select which applications to kill, since it might not always just be the one using the most memory or with the highest memory usage in a desktop scenario. Since prioritisation of "what to kill" is so dynamic on the desktop, it's very hard to write a one-size-fits-all policy about what to do in these scenarios, so these notifications allow you to avoid that problem entirely.
To that extent, psi-notify will warn you using whatever desktop notifier you have running (eg. GNOME notifications, dunst, xfce4-notifyd) when resources are starting to become contended, so that you can do something about that. A facetious demo is shown in the readme.
Feature requests and bug reports are welcome. I've been using it for the last week and already found it useful in keeping death-by-Chrome at bay. :-)
Bear in mind that if you do this before your mirror receives the upgrade, you won't get the metapackage, but just the group as before.
You can check with `pacman -Qi base` afterwards, which will only show an error if `base` is still a group (also, you won't get the big "there are 50 members in group base" printout).
No worries! We've all been there. :-)
You can use any notifier which implements the Desktop Notifications specification. Here are a couple of examples which should just work:
Hey! I actually work full time on Linux memory management and am one of the cgroup maintainers, so I'm pretty well versed in in this area. :-)
While it's true we're not bad at distributing resources, the question is about what to do when there is a scarcity of resources, and that's what PSI helps with -- identifying those scarcities as they start to occur and allowing some application or user to do something about it.
Low latency kernels are unlikely to help in these scenarios, because this isn't about latency or throughput, but instead actual resource shortages. That's what PSI has been designed to identify.
You can find out more about why PSI is useful in my talk at SREcon last year. Discussion of PSI is around the 25 minute mark: https://www.youtube.com/watch?v=beefUhRH5lU&feature=youtu.be&t=1505