!hzgkCxLtCOTmFXGauj:nixos.org

NixOS Gaming

540 Members
Gaming things, my hands are typing words.153 Servers

Load older messages


SenderMessageTime
22 Jul 2024
@k900:0upti.meK900nice is kind of the wrong tool these days10:49:13
@k900:0upti.meK900
In reply to @atemu12:matrix.org
So if you have one context with a compositor running and another where you run some compute, the compositor starts lagging?
No, the compositor context gets priority
10:49:25
@k900:0upti.meK900 "Context" here is generally more granular than "process" because a process can create more than one context 10:49:47
@atemu12:matrix.orgAtemu
In reply to @k900:0upti.me
You want SCHED_FIFO/SCHED_RR for actually-RT stuff
Forgot to reply to the RT stuff: AFAIK, RT prio is meant for computationally "small" tasks that have strict deadlines
11:10:06
@k900:0upti.meK900Well yes, that's why I said actually-Rt11:10:19
@k900:0upti.meK900 * Well yes, that's why I said actually-RT11:10:21
@atemu12:matrix.orgAtemuIt does not help in games in my testing11:10:20
@k900:0upti.meK900So like, you want your compositor to run at SCHED_RT11:10:28
@atemu12:matrix.orgAtemuRight but that doesn't help the game, does it?11:10:43
@k900:0upti.meK900And your background tasks to run at SCHED_BATCH11:10:52
@atemu12:matrix.orgAtemuOther than being composited on time11:10:55
@atemu12:matrix.orgAtemuI run them as SCHED_IDLE11:11:04
@k900:0upti.meK900Then it's definitely not an issue of niceness11:11:20
@atemu12:matrix.orgAtemu
In reply to @atemu12:matrix.org
Try running a game with something compiling in the background at """"idle"""" priority. It'll reduce to 1/2 the frame rate and be a stuttery mess.
.
11:11:30
@k900:0upti.meK900Because SCHED_IDLE will literally only be scheduled when there is absolutely nothing else to schedule11:11:33
@atemu12:matrix.orgAtemuThat's the theory11:12:02
@k900:0upti.meK900Are you sure it's not actually bottlenecking on I/O?11:12:05
@k900:0upti.meK900That would be my guess11:12:08
@atemu12:matrix.orgAtemuI'd expect more severe lag spikes if IO was involved11:12:29
@atemu12:matrix.orgAtemuThe frame rate is just generally lower and spikier but not binary11:12:50
@atemu12:matrix.orgAtemu * The frame rate is just generally lower and spikier but not binary (either high or lagspike)11:13:06
@atemu12:matrix.orgAtemuW.r.t. nice, what I mean is that it still does not work across cgroups IIRC11:14:10
@k900:0upti.meK900It's very likely just the game attempting to stream assets11:14:30
@k900:0upti.meK900And getting stuck on iops11:14:36
@k900:0upti.meK900So things get spikier when more assets are streamed11:14:45
@atemu12:matrix.orgAtemuSo I can't tell Linux that my general purpose (non-RT) process is higher priority than some other general purpose process when it's running in another cgroup11:15:06
@atemu12:matrix.orgAtemuI know how asset streaming lag feels like 11:15:17
@atemu12:matrix.orgAtemuThis ain't it11:15:19
@atemu12:matrix.orgAtemuI'm also standing still11:15:29
@atemu12:matrix.orgAtemuAnd everything relevant is in the page cache11:15:49

There are no newer messages yet.


Back to Room ListRoom Version: 10