Skip to content

u/chrisdown

In this archive from Aug 2012 to Aug 2023

2
posts
45
comments
1
media
622
score

Top posts

pyaur: AUR API library in Python 3

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...

11 points0 comments
Open on Reddit

Top comments

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 base is still so large. We have tons of stuff in there that most people are simply never going to use (reiserfsprogs and jfsutils perhaps being two of the most obvious examples). It would be nice to have a targeted drive to reduce the size of base and base-devel.

84 points

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. :-)

43 points

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

17 points

Subreddits

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.