#
#asahi-dev · 2023-04-22 04:51
chadmeddevelopers need to build this in to code so that it happens automatically, and we cant do that easily or even *well* with the current kernel infrastructure
#asahi-dev · 2023-04-22 04:51
chadmedbut theyre not going to work on another system with a different perf profile
#asahi-dev · 2023-04-22 04:50
chadmedyeah you could package up a bunch of scripts that does all this for YOUR system and YOUR software
#asahi-dev · 2023-04-22 04:50
chadmedwell yeah thats what i meant by the solutions being designed for server admins
#asahi-dev · 2023-04-22 04:49
nicolas17but what about *gestures* everything else
#asahi-dev · 2023-04-22 04:49
nicolas17I think the package could be configured to set up the service like that
#asahi-dev · 2023-04-22 04:49
chadmedwho the heck has time for that
#asahi-dev · 2023-04-22 04:49
chadmedyeah see thats exactly my point
#asahi-dev · 2023-04-22 04:49
nicolas17and now I finally can't tell the difference between boinc running vs not running
#asahi-dev · 2023-04-22 04:48
nicolas17I moved it to its own top-level slice
#asahi-dev · 2023-04-22 04:48
chadmedany time a normal user has to think about any of this shit is an absolute L for UX
#asahi-dev · 2023-04-22 04:48
chadmeddesktop users want to press the power button and not think about firmware or the kernel again beyond that
#asahi-dev · 2023-04-22 04:48
nicolas17so I changed the cgroup params of its systemd service unit... no difference, because CPU was still being shared equally between system.slice and user.slice
#asahi-dev · 2023-04-22 04:48
chadmedyeah again, a "solution" designed with the assumption that people want to spend 6 weeks collecting perf data and then 15 minutes on every cold boot manually optimising all this stuff
#asahi-dev · 2023-04-22 04:47
nicolas17I had a similar issue with BOINC on my desktop, it's nice'd and ionice'd and SCHED_IDLE'd and it still lagged the interactive desktop... why? cgroups
#asahi-dev · 2023-04-22 04:46
chadmedintel's thread director is a damning indictment on this state of affairs
#asahi-dev · 2023-04-22 04:46
chadmedtheyre not fit for purpose for modern desktop systems
#asahi-dev · 2023-04-22 04:45
chadmedthey all seem designed for highly integrated server environments where the developer and sysadmin are either the same person or at least in the same room
#asahi-dev · 2023-04-22 04:45
nicolas17the konsole cgroup and the firefox cgroup get equal treatment regardless of the nice levels of processes inside, and firefox lags while compiling
#asahi-dev · 2023-04-22 04:45
chadmedyeah its all just a mess of hacks and tricks and kludges that no one really understands and doesnt really have any benefit for anyone in the desktop
#asahi-dev · 2023-04-22 04:44
nicolas17because it seems nice levels only set priorities with respect to other processes in the same cgroup, and konsole is being put in a cgroup of its own
#asahi-dev · 2023-04-22 04:43
nicolas17I run 'nice ninja' on a terminal and my UI latency still lags
#asahi-dev · 2023-04-22 04:43
chadmedsomething as finnicky and not-user-facing as "please tell the scheduler your capacity requirements" is waaaay down the priority list of most developers
#asahi-dev · 2023-04-22 04:42
nicolas17nice is already a mess on modern systems tbh
#asahi-dev · 2023-04-22 04:42
chadmedits bad enough that we cant convince a nontrivial minority of folks that x11 is a ghoulish awful steaming pile and needs to die
#asahi-dev · 2023-04-22 04:41
chadmedthey rely on android apis and alternative schedulers
#asahi-dev · 2023-04-22 04:41
chadmedso all the aggressive optimisations for software scheduling are in android, and guess what
#asahi-dev · 2023-04-22 04:41
chadmedand no ones really bothered with a heterogeneous arm64 chip for the desktop except apple
#asahi-dev · 2023-04-22 04:40
chadmedintels heterogeneous socs have hardware scheduling so devs dont have to care about it
#asahi-dev · 2023-04-22 04:40
chadmedso even if we had a simplified userspace-friendly qos system separate to nice/uclamp/whatever 50% of people wouldnt use it because its soy bloated cucked etc and the other 50% wouldnt use it because who the hell cares about the 5 people using heterogeneous workstations
#asahi-dev · 2023-04-22 04:40
nicolas17which sound way fiddlier
#asahi-dev · 2023-04-22 04:39
nicolas17I mean it seems easier to rely on userspace devs to set a qos category than to set uclamp values :P
#asahi-dev · 2023-04-22 04:39
chadmedwe dont have an army of devs who will hang on every word the kernel team say
#asahi-dev · 2023-04-22 04:39
chadmedyeah see, the issue is on linux that we cant _rely_ on devs doing that
#asahi-dev · 2023-04-22 04:38
nicolas17bah, Apple's ~5 qos categories seem way easier to understand for devs...
#asahi-dev · 2023-04-22 04:38
chadmedthe problem is that its really optimised for throughput and not interactivity, so bursty tasks will cause its perf counters to decay and youre back to it not having any idea what to do with the thread
#asahi-dev · 2023-04-22 04:37
chadmedthe QoS buckets for CFS are all based on UCLAMP values, and if you dont provide those then it just uses its own feedback mechanism to predict what kind of capacity the process needs
#asahi-dev · 2023-04-22 04:37
chadmednothing that simple, youd have to hint to CFS with a mix of UCLAMP, priority tweaking and capacity-dmips-mhz values in the DT
#asahi-dev · 2023-04-22 04:36
nicolas17afaik XNU "background" QoS does that
#asahi-dev · 2023-04-22 04:35
nicolas17so is there any "this is low priority background work" hint that would cause such "force to ecores" outcome, without having to pin to specific cores? (which would be too system-specific)
#asahi-dev · 2023-04-22 04:35
chadmedtheyre super tiny and faster than they have any right to be
#asahi-dev · 2023-04-22 04:34
chadmedaccording to my readings they use barely 500 mW at full tilt at 2.064 GHz
#asahi-dev · 2023-04-22 04:33
nicolas17ok *wow*, I didn't expect that much difference
#asahi-dev · 2023-04-22 04:33
chadmedtheyre _very_ efficient
#asahi-dev · 2023-04-22 04:33
chadmedyeah it would, even at full capacity the icestorm cores barely tick up enough power to get a reading over background noise from PHPC
#asahi-dev · 2023-04-22 04:33
nicolas17eg. would forcing a background software update or indexing etc. to ecores, or even letting them stay on a slow pstate, reduce overall battery drain, even if it makes the update take longer (and use CPU for longer)?
#asahi-dev · 2023-04-22 04:32
chadmedCFS is just not a very good scheduler for HMP systems tbh
#asahi-dev · 2023-04-22 04:31
chadmedthe soc is just too lopsided for the scheduler to know how to use it properly without userspace helping it
#asahi-dev · 2023-04-22 04:30
chadmedhell with the gpu doing compositing and post processing, i can peg firefox to the ecores at 600mhz and it will play 1080p vp9 at 30fps no worries
#asahi-dev · 2023-04-22 04:30
chadmedbecause sitting around at the dekstop icestorm is more than fast enough for a snappy experience, its just on t600x theres only two of them and they end up overloaded

plus ›