/srv/irclogs.ubuntu.com/2022/04/04/#ubuntu-desktop.txt

=== Eickmeyer[w] is now known as Eickmeyer
KGB-2gnome-shell Daniel van Vugt 303653 * commented merge request !59 * https://deb.li/3laSh02:10
jibelGood morning 05:30
oSoMoNgood morning desktoppers05:37
jpnurmigood morning jibel and oSoMoN05:37
oSoMoNhey jpnurmi 05:38
oSoMoNsalut jibel 05:38
dufluHi jibel, oSoMoN, jpnurmi 05:53
oSoMoNhey duflu 05:53
jpnurmihey duflu05:53
didrocksgood morning07:10
dufluHi didrocks 07:13
didrockshey duflu 07:14
jibelSalut didrocks 07:23
didrockssalut jibel 07:25
Nafallomorning from rainy gothenburg07:41
dufluHi Nafallo 07:45
ricotzgood morning desktopers! :)08:06
didrockshey ricotz 08:06
oSoMoNgood morning didrocks, Nafallo, ricotz 08:06
didrockssalut oSoMoN 08:07
didrockstjaalton: mesa recommends mesa-amber, but I see no MIR for it?08:07
didrocksshould it be dowgraded to suggests or do you want to file a MIR?08:08
tjaaltonbug 196708608:08
ubottuBug 1967086 in mesa-amber (Ubuntu) "MIR: mesa-amber" [Undecided, New] https://launchpad.net/bugs/196708608:08
didrocksah, I see bug #1967086, was not picked up in the diagram, feel free to ignore me :)08:08
duflutjaalton, will amber override crocus?08:13
dufluHi ricotz 08:13
tjaaltonduflu: no08:13
dufluAlso great to see i915 will live on at least for jammy. So finally the software support should outlive the hardware08:14
tjaaltonI'm fine making it Suggests08:15
tjaaltonjust the tradeoff is that the image won't have native dri driver for old hw then08:15
tjaaltonalso, I think Debian would have it Recommends anyway08:15
dufluThat would be mostly really old Intel systems that need i915_dri: "Intel Core" branded systems and the original Atoms. They do exist so I would prefer they keep working or else where will be bug reports08:16
tjaaltonr200 too08:16
dufluBecause owners of those were logging bugs last year08:16
tjaaltonand some nouveau08:17
dufluForget nouveau. It causes more problems than it solves :(08:17
tjaaltonthose have no alternative08:17
dufluFair enough08:18
tjaaltonneither do many that mesa supports08:18
dufluThe problem with not shipping those drivers is that such systems (Core Duo, Atoms) are really too slow to be usable on software rendering. So those systems might not get installed to the point of asking for support and being told to install amber08:20
didrockstjaalton: I need to look at the MIR, but it should be fine, just being a rename08:22
tjaaltondidrocks: right08:23
tjaaltonthanks08:23
didrocksthanks for the feedback :)08:23
seb128hey didrocks Nafallo duflu ricotz tjaalton oSoMoN, how are you? had a nice weekend?08:25
oSoMoNSalut seb128! Week-end was good, I had some rest on Saturday as I was exhausted from the week, and spent all of Sunday gardening. How was your week-end?08:27
dufluseb128, an unfortunate series of events prevented me from getting enough sleep, but otherwise it was good. Friends and family08:27
seb128oSoMoN, it was alright, I managed to get some rest as well, though not as much as I would have liked. Also winter is back, I had already gotten used to the nice weather we had a week ago...08:28
oSoMoNyeah, the cold is back here too, we even had 2 minutes of snow yesterday, but it melted before even reaching the ground08:30
oSoMoNthe forecast says temperatures will dramatically increase through the week though, we'll see…08:30
seb128duflu, sounds like busy but positive weeked at least and hopefully the week is quiet and you can catch up on sleep08:31
rbasakI'm finding this new theme in Jammy quite difficult. When I upgraded to a previous release (I forget which one exactly) the contrast between active and inactive title bars went down and I couldn't tell at a glance if a window was active without specifically comparing the title bars with other windows. But I noticed that only the active window had the title bar buttons in orange. So I started 11:04
rbasaklooking for that. But now, that's gone, and so there's no immediately obvious cue for me to tell if a window is active just by looking at it.11:05
rbasakIt's basically just on comparing greys. And I can't differentiate the absolute level of grey just by looking at it.11:05
=== alan_g_ is now known as alan_g
seb128rbasak, would be nice if you could report that as a bug on https://bugs.launchpad.net/ubuntu/+source/yaru-theme/+filebug , the yaru team is active but they are not on IRC11:46
jbichagood morning12:02
bittinafternoon12:06
seb128jbicha, bittin, hey, how are you? had a nice weekend?12:08
bittinnot really, having headache/cold but hopefully i feel better soon, just installed the 22.04 Beta however and ran apt updates to get the updates until 3th April and worked good12:08
jbichayeah, weekend went ok here 🙂12:10
seb128bittin, great! (for the beta and upgrade, not the headache and cold :-()12:12
rbasakseb128: thank you for the pointer! I filed https://bugs.launchpad.net/ubuntu/+source/yaru-theme/+bug/196774712:25
ubottuLaunchpad bug 1967747 in yaru-theme (Ubuntu) "Lack of visual distinction between active and inactive windows" [Undecided, New]12:25
seb128rbasak, thanks!12:28
rbasakIt didn't occur to me that the bug tracker would be useful to raise this kind of thing!12:29
rbasakSo thank you for pointing that out12:29
seb128jbicha, could you try to update paprefs? we need 1.2 to be compatible with the new pulseaudio it seems13:08
jbichaok13:10
ahasenackhi #desktop,13:12
ahasenacksamba 4.15.x dropped "-l" for "net usershare add", the short option, now it must be "--long": net:13:13
ahasenack-l is not available for --long anymore13:13
ahasenackthe command that nautilus uses to share a folder is using -l regrettably13:13
ahasenackand now it fails13:13
ahasenackroot@nsn7:~# net usershare add -l Public /home/andreas/Public somecomment Everyone:R,andreas:F guest_ok=y13:13
ahasenack[2022/04/04 10:00:33, 0] ../../lib/util/debug.c:1100(reopen_one_log)13:13
ahasenack  reopen_one_log: Unable to open new log file 'Public/log.net': No such file or directory13:13
ahasenacksee how it's interpreting it as some log file parameter13:13
ahasenackwith --long it works13:13
ahasenackhttps://bugs.launchpad.net/ubuntu/+source/samba/+bug/1967245 was filed, I'm about to reassign it to nautilus, I was just checking the code out to see how easy it's to change13:14
ubottuLaunchpad bug 1967245 in samba (Ubuntu) "'net usershare' returned error 255 on jammy-desktop-amd64" [Undecided, New]13:14
ahasenackhm, I don't see it in nautilus, even though that was the parent process of the "net usershare" command. Must be some library13:14
seb128ahasenack, hey, thanks, the source is nautilus-share 13:14
ahasenackaha13:14
ahasenackmight be just this: src/shares.c:argv[1] = "-l";13:16
seb128ahasenack, probably yes13:16
ahasenackseb128: do you know if nautilus-share is in https://gitlab.gnome.org ? I can't find it atm13:19
ahasenackif you also have to search, n/m then, I can continue13:19
seb128ahasenack, it's at https://gitlab.gnome.org/Archive/nautilus-share but archived so read only and you can't propose fixes13:19
ahasenackjust if you happen to have it from the top of your head13:19
seb128just upload your fix to ubuntu13:20
seb128or maybe talk to jbicha about getting it in Debian13:20
ahasenackok, I was checking if upstream had fixed it already13:20
ahasenackis this app dead-ish upstream?13:20
seb128yes, that's why it was archived13:21
seb128if you test your change we can add it to Debian and sync back the update13:21
seb128I need to step out for a bit but I will read the backlog once back and other should be to help you more if needed13:22
jbichait's not a Debian GNOME package so we'll push the nautilus-share update to jammy first & I can work on upstreaming to Debian later13:22
ahasenackk13:26
ahasenackjbicha: https://code.launchpad.net/~ahasenack/ubuntu/+source/nautilus-share/+git/nautilus-share/+merge/41838213:32
ahasenackppa building13:32
ahasenackjbicha: it worked, but I had to logout/login back again13:46
jbichaok13:46
ahasenackexpected I guess, since it's an extension (.so)13:46
ahasenackgood to upload?13:47
jbichayes, are you able to do the upload?13:48
ahasenackyes13:48
ahasenackdone13:49
seb128jbicha, oh, sorry for the noise, I though it was a pkg-gnome one14:41
seb128ahasenack, thanks for the fix !14:42
ahasenack\o/14:42
KGB-2gedit-plugins pristine-tar d155503 Jeremy Bicha gedit-plugins_42.0.orig.tar.xz.delta gedit-plugins_42.0.orig.tar.xz.id * pristine-tar data for gedit-plugins_42.0.orig.tar.xz * https://deb.li/VKP714:59
juliankseb128: Do you know (anyone who knows) if there's any work  going on to have gnome-shell pop up a notification if systemd-oomd killed an app? Currently it's a bit unexpected to some users :)15:57
juliankWe got a bug basically saying "app was killed but system was not in swap hell with everything stuttering", which I find hilarious15:58
ddstreetyou mean lp:#1966381? oomd definitely doesn't look like it's ready to be enabled by default, imho16:01
ubottuLaunchpad bug 1966381 in systemd (Ubuntu Jammy) "applications crash that never crashed under Ubuntu-20.04" [High, New] https://launchpad.net/bugs/196638116:01
juliankddstreet: no it does exactly the right thing, preventing swap hell16:04
ddstreetjuliank well no, it doesn't16:04
juliankddstreet: it used 90% of RAM _AND_ 90% of swap16:04
ddstreetthat's its intention, yes16:04
juliankddstreet: That means it was about to enter swap hell16:05
ddstreetno it does not, actually16:05
juliankddstreet: it means user had 100 MB of swap left16:06
juliankddstreet: unrelated to the limit discussion, it seems the page cache issue is a bit overlooked and probably should be a separate bug?16:06
juliankddstreet: Because I expect it to trigger when "available" in free falls below 10%16:07
julianknot "free"16:07
juliankin any case16:07
juliank> no sign of the "staggering" you normally get when the OS is heavily into swap.16:07
juliankthis is precisely what we want16:07
seb128juliank, we don't have numbers of ram usage in those reports do we?16:07
seb128juliank, also is the 1G of swap by design, should we revisit to be higher?16:08
juliankseb128: It's 1GB by design, it's a performance optimization to make the kernel allocate memory faster, vs having no swap16:08
seb128an optimization that might not play nicely with the oomd logic?16:09
juliankThe swap isn't really there for classic swap overcommitment use16:09
KGB-0GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638788 (build i386) stage: build, status: created16:09
KGB-2GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638787 (build) stage: build, status: created16:09
KGB-2GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638790 (test-build-any) stage: test, status: created16:09
KGB-0GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638791 (test-build-all) stage: test, status: created16:09
juliankit works fine IMO16:09
KGB-0GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638792 (test-crossbuild-arm64) stage: test, status: created16:09
KGB-2GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638793 (reprotest) stage: test, status: created16:09
KGB-2xdg-desktop-portal-gnome pipeline Jeremy Bicha 365470 * pending (reprotest: created; test-crossbuild-arm64: created; test-build-all: created; test-build-any: created; build source: created; extract-source: pending; build i386: created; piuparts: created; blhc: created; autopkgtest: created; lintian: created; build: created)16:09
KGB-2GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638794 (lintian) stage: test, status: created16:09
seb128those reports suggest that it's confusing users and triggering in situation where the system usually didn't struggle16:09
KGB-2GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638797 (piuparts) stage: test, status: created16:09
KGB-2xdg-desktop-portal-gnome pipeline Jeremy Bicha 365470 * running (extract-source: running; reprotest: created; test-crossbuild-arm64: created; test-build-all: created; test-build-any: created; build source: created; build i386: created; piuparts: created; blhc: created; autopkgtest: created; lintian: created; build: created)16:10
julianknot considering the issue where the page cache is being counted16:10
juliankseb128: I believe that's ddcache's issue with page cache being counted as used memory rather than available16:10
KGB-2GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638786 (extract-source) stage: provisioning, status: success. Duration: 1 minute and 33 seconds16:10
KGB-2GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638789 (build source) stage: build, status: pending16:10
seb128juliank, sounds like a rls issue to me16:11
juliankseb128: but also you want to trigger oomd *before* the system struggles, that's the whole point of it16:11
juliankso that your system is not in swap hell16:11
seb128I feel like we are going to get users and PR slashback if the new LTS is seen as randomly killing applications on systems that users don't perceive as under load16:11
seb128juliank, well, those users have 16G memory and said they never had the system struggling16:12
juliankseb128: they should perceive that as "phew, oomd safed me from having to hard reset my system"16:13
juliankseb128: they were using 15.95 GB of their RAM and 925 MB of their swap file16:13
juliankseb128: they were struggling16:13
KGB-0GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638792 (test-crossbuild-arm64) stage: test, status: pending16:13
KGB-0GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638791 (test-build-all) stage: test, status: pending16:13
KGB-2GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638794 (lintian) stage: test, status: pending16:13
KGB-0GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638795 (autopkgtest) stage: test, status: pending16:14
juliankthere was 50MB RAM left and 75MB swap when oomd first kicked in in the bug report16:14
KGB-0GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638791 (test-build-all) stage: test, status: running. Duration: no time16:14
seb128juliank, do we have record of those numbers or are you assuming from the logic?16:14
KGB-0GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638792 (test-crossbuild-arm64) stage: test, status: running. Duration: no time16:14
juliankseb128: It says right in the bug log16:14
juliank due to memory used (15940579328) / total (16153944064) and swap used (925564928) / total (1023406080) being more than 90.00%16:14
juliank due to memory used (15591993344) / total (16149745664) and swap used (927760384) / total (1023406080) being more than 90.00%16:14
KGB-0GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638796 (blhc) stage: test, status: running. Duration: no time16:14
juliankthat was 2nd kill16:14
julianksomething something GB vs GiB16:15
seb128juliank, and do we have any idea how much page cache is counting for?16:15
KGB-0GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638792 (test-crossbuild-arm64) stage: test, status: failed. Duration: 2 minutes and 3 seconds16:15
juliankwe don't but mine is at 9GB right now after 3 days with 24 GB of RAM16:16
juliankso you can see it's like half my memory is used for caching purposes16:16
seb128how do you check that number?16:16
KGB-2GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638793 (reprotest) stage: test, status: success. Duration: 3 minutes and 8 seconds16:17
seb128on my system from top16:17
seb128MiB Mem :  15695,8 total,   5501,8 libr,   2589,5 util,   7604,5 tamp/cache16:17
seb128with 6 hours uptime16:17
seb128if that's those 7.6G that's making quite a difference16:17
seb128should we retitle the report to focus on that part?16:17
KGB-2GNOME / xdg-desktop-portal-gnome builds Jeremy Bicha * Build #2638797 (piuparts) stage: test, status: success. Duration: 4 minutes and 19 seconds16:18
KGB-0xdg-desktop-portal-gnome pipeline Jeremy Bicha 365470 * [8 minutes and 52 seconds] failed (piuparts: success; reprotest: success; test-build-any: success; autopkgtest: success; test-crossbuild-arm64: failed; lintian: failed; test-build-all: success; blhc: success; build: success; build i386: success; build source: success; extract-source: success)16:18
juliankseb128: check your oomctl what that says on memory use16:19
juliankso mine says Current Memory Usage: 10.5G16:19
juliankah no16:19
juliankMemory: Used: 21.3G Total: 23.3G16:19
juliankfor MiB Mem :  23937,4 total,   2051,0 free,  12448,1 used,   9438,3 buff/cache16:19
schopinFYI the free(1) command might be more appropriate to check the state of your memory :)16:19
juliankschopin: harder to paste though16:19
juliankso yes, eek, it should report the "used" figure there and not total-free16:20
schopinhmm, true.16:20
juliankor used + 0.5 * buff/cache or something16:20
juliankas you do want to prevent all page cache being purged for memory use, otherwise you enter swap hell?16:20
seb128schopin, juliank, I would appreciate if foundations could taget it for 22.04 because I feel like we have an issue that might trigger some users heat at release time otherwise16:21
seb128plan B would be to remove systemd-oomd from the default install again16:22
seb128@kenvandine, ^ opinion? 16:22
juliankseb128: that'S work for enr0n 16:22
juliankseb128: enr0n: I believe in https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/tree/src/oom/oomd-util.c?h=ubuntu-jammy&id=771fee9e73316c92e065e93946ec64c578b43706#n406, MemFree needs to be changed to MemAvailable and then we're good16:23
juliankddstreet: ^ agreed?16:25
ddstreetjuliank sorry i'm chairing another mtg, hard to pay attention here too16:26
enr0njuliank: looking16:26
schopinI'm surprised nobody raised this upstream?!16:26
juliankprobably worth doing so16:26
seb128schopin, it's probably because other distros that use it have a much higher swap space than us by default16:27
seb128like fedora apparently creates 16G when we do 1G16:28
seb128so they probably don't hit the issue as easily16:28
juliankso long running machines accumulate swap use despite not needing it16:29
julianklike I had 3 MB of swap used16:30
juliankbecause the kernel won't remove the swapped bits if you don#t need them16:30
juliankseb128: enr0n: I could just send a PR upstream and see what they see16:30
enr0njuliank: I don't mind doing so since I was supposed to be looking into this. But you did find it so up to you.16:31
juliankenr0n: ddstreet found it, so I don't need the fame and glory but do CC me if you want to send one16:32
juliankenr0n: I want to watch :)16:32
juliankenr0n: I think there are nicer fixes that take some % of the page cache in account, but not sure. Such that we don't need to evict all pages before triggering OOM, which would then lead to the whole swap hell I think16:33
juliankSo technically one would want to parse Buffers and Cached lines, and then add them to the used memory with a factor of 20% or so16:34
juliankenr0n: It's better if you do it, fwiw, I'd just send it totally untested :)16:34
schopinjuliank: we could just reduce the %age to allow for triggering before all page cache is flushed out.16:35
juliankthat too16:35
juliankbut also maybe 10% is fine16:35
enr0njuliank: haha alright I will do it in that case16:35
KGB-2gnome-shell-extension-bluetooth-quick-connect pipeline Simon McVittie 365489 * pending (autopkgtest: created; lintian: created; reprotest: created; test-crossbuild-arm64: created; test-build-all: created; test-build-any: created; build source: created; build i386: created; extract-source: pending; piuparts: created; blhc: created; build: created)16:54
KGB-2gnome-shell-extension-bluetooth-quick-connect pipeline Simon McVittie 365489 * running (extract-source: running; autopkgtest: created; lintian: created; reprotest: created; test-crossbuild-arm64: created; test-build-all: created; test-build-any: created; build source: created; build i386: created; piuparts: created; blhc: created; build: created)16:54
KGB-2xdg-desktop-portal-gnome Sebastien Bacher 303825 * commented merge request !1 * https://deb.li/3C1Mj17:01
KGB-2gnome-shell-extension-bluetooth-quick-connect pipeline Simon McVittie 365489 * [8 minutes and 16 seconds] success (piuparts: success; autopkgtest: success; reprotest: success; test-build-all: success; lintian: success; test-crossbuild-arm64: success; test-build-any: success; blhc: success; build i386: success; build: success; build source: success; extract-s17:03
KGB-2shell-extensionsource: success)17:03
ddstreetjuliank enr0n sorry was in another mtg, re: the commit, no you also need to adjust how crgoup 'used' memory is calculated by oomd17:04
ddstreetsince all systemd-controlled processes will be running in a cgroup (as well as other stuff, too)17:05
ddstreetalso, 'swap hell' isn't just as simple as 'lots of swap and not much free memory', you can be in swap hell with very little swap used17:06
ddstreetif you want to engage upstream to improve oomd it might be worth reviewing how the kernel oom-killer works17:06
ddstreetsince it does the same thing, but maybe less agressively17:06
juliankddstreet: I think you misunderstand the purpose of oomd17:07
ddstreetmaybe yeah, what's the purpose?17:07
juliankddstreet: I don't think I understand the ins and outs either, but a start would be to read the facebook oomd docs https://github.com/facebookincubator/oomd - which the systemd one is derived from17:09
ddstreetso neither of us understand the purpose? ;-)17:09
ddstreetdoes someone from foundations at least understand its purpose? enr0n or slyon?17:10
ddstreetor maybe i'm misunderstanding what you mean by saying i misunderstand its purpose?17:10
juliankddstreet: well the purpose we know is that it kicks in earlier and has better control over what to kill17:11
juliankddstreet: like it kills at cgroup level and stuff17:11
juliankddstreet: it can be more easily configured17:11
ddstreetok, but the kernel oom-killer is configurable and as i said the kernel oom-killer is 'less aggressive' than oomd17:12
ddstreetif that's all you mean, then im not sure how i don't understand oomd's purpose17:12
juliankthere's more rationale https://fedoraproject.org/wiki/Changes/EnableSystemdOomd17:12
ddstreetalso the kernel can oom-kill inside cgroups17:12
juliankddstreet: basically people wanted to improve oom, but didn't want to bother working in the kernel17:12
ddstreetlol17:13
ddstreetread: systemd didn't want to bother working in the kernel xD17:13
ahasenackslippery slope17:13
ddstreetdon't get me wrong, i actually like systemd and do quite a lot of work in it17:13
juliankddstreet: well, it's facebook's project 17:13
juliankProvide a better experience for Fedora users in out-of-memory (OOM) situations by enabling systemd-oomd by default. Actions taken by systemd-oomd operate on a per-cgroup level, aligning well with the life cycle of systemd units. systemd-oomd primarily uses Linux pressure stall information (PSI) to make decisions based on wasted productivity due to resource shortages; in addition to that, it17:13
juliankalso supports swap based actions.17:13
ddstreetlol i'm not arguing against using oomd17:14
ahasenackI wonder if it will ever kill itself :)17:14
ddstreetrofl17:14
ddstreeti'd like to see that17:14
* ahasenack thinks of the bridge crossing in Monty Python Holy Grail17:14
ddstreetwhat? i don't know that... AAAAAHHHHHH17:14
KGB-2xdg-desktop-portal-gnome ubuntu/master 5b8c379 Jeremy Bicha debian/patches/ (5 files) * Add patches to revert using libadwaita * https://deb.li/ix1BF17:14
KGB-2xdg-desktop-portal-gnome ubuntu/master 9b9c9dc Jeremy Bicha debian/ control control.in * debian/control.in: Drop libadwaita-1-dev from Build-Depends * https://deb.li/ki4E17:14
juliankddstreet: but the design assumed that swap >= ram, which is not what we want as we don't really want systems to use swap in the first place17:15
ddstreetjuliank re: your earlier comment that 1gb swap is intentional, was there discussion on that? it seems like a really bad default to me, honestly17:15
juliankddstreet: yes, lots of17:16
juliankddstreet: a long time ago17:16
juliankddstreet: in 17.04 that was decided17:16
ddstreetwow17:16
* ahasenack has 8Gb of swap17:16
ddstreetyeah 1gb swap is basically insane17:16
ddstreetbut...if it's done, then ok17:16
ahasenackbug the fresh jammy install does have 1Gb of swap17:16
ddstreeti think a lot of people think *any* swap is bad, unfortunately17:17
ddstreetswap is greatly misunderstood17:17
juliankddstreet: xnox implemented that back then17:17
juliankddstreet: neasurements were done17:17
ddstreetokey dokey :)17:17
juliankddstreet: I'm trying to find the details for you17:18
ddstreethey, you dont have to convince me (because you wont ;-)17:18
KGB-0xdg-desktop-portal-gnome signed tags 6089537 Jeremy Bicha ubuntu/42.0.1-1ubuntu1 * xdg-desktop-portal-gnome Debian release 42.0.1-1ubuntu1 * https://deb.li/3WCze17:19
KGB-0xdg-desktop-portal-gnome ubuntu/master b54bd23 Jeremy Bicha debian/changelog * releasing package xdg-desktop-portal-gnome version 42.0.1-1ubuntu1 * https://deb.li/e7DI17:19
KGB-2xdg-desktop-portal-gnome pipeline Jeremy Bicha 365491 * running (extract-source: running; blhc: created; autopkgtest: created; lintian: created; reprotest: created; test-crossbuild-arm64: created; test-build-all: created; test-build-any: created; build source: created; build i386: created; piuparts: created; build: created)17:19
juliankddstreet: somewhere https://lists.ubuntu.com/archives/ubuntu-devel/2016-November/039538.html and https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/156612917:20
ddstreetunfortunately, lots of people think reducing/eliminating swap will 'improve performance', but in reality reducing swap simply reduces the system's memory elasticity17:20
ubottuLaunchpad bug 1566129 in debian-installer (Ubuntu) "server installer partitioning suggestions need refinement" [Undecided, Confirmed]17:20
ddstreetit changes the system's response to (actual) memory pressure from a slope to sharp cliff17:20
juliankddstreet: basically I want a sharp cutoff when I have an app with a bug that fast allocates a lot of memory17:20
juliankddstreet: rather than dragging this out for hours17:21
juliankddstreet: which then usually ends up in a hard reset17:21
juliank(if you have large swap)17:21
ddstreetan app with a bug allocating lots of memory (but just the right amount of lots of memory, not too much to get malloc failures) is hardly the common situation that uses swap17:22
ddstreetanyway, there is obviously no need for us to convince each other17:22
juliankI don't see it obviously17:22
juliankPersonally I just buy insane amounts of RAM I only use 50% of17:23
KGB-0xdg-desktop-portal-gnome pipeline Jeremy Bicha 365490 * [8 minutes and 59 seconds] failed (piuparts: success; reprotest: failed; autopkgtest: success; test-build-any: success; test-crossbuild-arm64: failed; lintian: failed; blhc: success; test-build-all: success; build i386: success; build: success; build source: success; extract-source: success)17:23
juliankWhen I only had 16GB of RAM I remember having to hard reset stuff because it was swapping forever17:24
juliankdon't judge me I was running Chrome + Android Studio + an Android VM17:24
juliankAt the moment I have 24 GB RAM and 8GB swap, with zswap enabled for lolz17:25
juliankalso it would be nice if it put swap hoggers on slowdown, like chrome slows down JS execution in background tabs and eventaully pauses them entirely17:27
juliankI guess hogger is not really a word for "someone who hogs"?17:28
juliankI wonder if the cgroup reports memory used without counting cache17:28
ddstreetjuliank just fyi, zswap can lead to a very, very sharp cliff of swapping once its configured limit is reached...or at least, it used to have that cliff back when i was zswap maintainer17:30
juliankenr0n: another place https://github.com/systemd/systemd/blob/main/src/basic/procfs-util.c#L24517:30
ddstreetcgroup reports all specific memory use, yes17:31
juliankddstreet: do they?17:31
juliankddstreet: ah memory.stat17:31
juliankddstreet: but also that doesn't make much sense with memory.max and memory.min throttling/not reclaiming flags including page count17:33
julianks/page count/page cache/17:33
juliankddstreet: so for the cgroup you have to consider page cache (as memory.current), otherwise you end up inconsistent with the limits set via memory.min and memory.max17:36
juliankwhether this all maeks sense or not, idk17:36
juliank"you program cached too pages, so you get throttled" I feel sounds hilarious17:37
ddstreetjuliank i'd have to review the specifics of the kernel mm/memcontrol, but i think including pagecache in the calculated value (re: max) makes total sense, it means mallocs from that specific cgroup will start evicting pagecache from that specific cgroup under memory pressure17:37
ddstreetit container-izes memory use, including pagecache, just like un-cgrouped processes are handled for the larger system17:37
ddstreetand no, programs don't get throttled for too much pagecache, what happens is the pagecache is evicted as needed17:38
juliankddstreet: well if the eviction failed, they would as they'd be over their max?17:39
ddstreethow would pagecache eviction fail?17:39
juliankddstreet: I don't know, but like those are unrelated things17:39
ddstreetlol pagecache eviction doesn't ever fail for 'clean' pagecache pages17:39
ddstreetif the cgroup has a lot of dirty pagecache, that means they're doing a lot of writes to actual files17:40
ddstreetso while those are cached for performance, under memory pressure they have to be synced back to disck17:40
ddstreetdisc17:40
juliankbut the problem is if we want the memory pressure of the cgroup we need to use memory.current to stay consistent with the other stuff we read from the kernel17:40
ddstreeti hate disc/disk :)17:40
ddstreetof course, you should use the kernel's values of used memory17:41
ddstreetthe point is under memory pressure the kernel will automatically 1) evict clean pagecache and then 2) flush (and evict) dirty pagecache, and then 3) turn to swap17:41
ddstreetspeaking *broadly* of course, the specifics are that it will do a little of all of them all the time17:42
juliankI guess you want to prevent things from getting to 2 17:43
ddstreetno you really, really don't17:43
ddstreeti mean sure, if everyone had unlimited budgets for infinite ram17:43
juliankalso you want to kill entire containers if a process in them ooms17:43
ddstreetthat's entirely configurable with the normal kernel oom killer17:44
ddstreetbut again...we don't need to convince each other :)17:44
juliankearlyoom was easier than oomd17:44
juliank(https://fedoraproject.org/wiki/Changes/EnableEarlyoom)17:46
juliankthis used processes, resident memory and "total - avaialble" instead of "total - used"17:47
seb128jbicha, you might want to try to proposed something similar to https://github.com/snapcore/snapd/pull/11615 for gtk-doc19:27
ubottuPull 11615 in snapcore/snapd "interfaces/system-packages-doc: allow read-only access to /usr/share/xubuntu-docs (LP: #1967109)" [Open]19:27
seb128jbicha, I'm unsure how much that's a request but I saw you edited the bug 19:28
jbichaseb128: I just did :) https://github.com/snapcore/snapd/pull/1162619:28
ubottuPull 11626 in snapcore/snapd "interfaces/system-packages-doc: allow ready-only access to /usr/share/gtk-doc" [Open]19:28
jbichaI was waiting for Olivier's libreoffice merge proposal to be accepted first since we were editing the same code area & it was easy to copy his work19:30
seb128jbicha, nice, shotwell upstream is reading launchpad reports still and did https://gitlab.gnome.org/GNOME/shotwell/-/commit/cfd4249320:13
ubottuCommit cfd4249 in GNOME/shotwell "Also set dark wallpaper uri"20:13
sarnoldcool :D20:14

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!