Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Don't look back, the lemmings are gaining on you.


comp / comp.os.linux.misc / Re: Linux 6.12 New preemption model

SubjectAuthor
* Linux 6.12 New preemption modelvallor
`* Re: Linux 6.12 New preemption modelLawrence D'Oliveiro
 `- Re: Linux 6.12 New preemption modelvallor

1
Subject: Linux 6.12 New preemption model
From: vallor
Newsgroups: comp.os.linux.misc
Date: Fri, 22 Nov 2024 05:29 UTC
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: vallor@cultnix.org (vallor)
Newsgroups: comp.os.linux.misc
Subject: Linux 6.12 New preemption model
Date: 22 Nov 2024 05:29:39 GMT
Lines: 39
Message-ID: <lqaj63F7fi9U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net OcRPz4Nx/3AQcYnaGPnTXw3YhK6zYYdiYpJmaoRwY+f4UHZ4LV
Cancel-Lock: sha1:hMmISrwGqo0juo6wovgc0ep3xEs= sha256:Wh5es3sIoFpho5bJemQrZMR/Qk0wRQBmuWpYIdDySdo=
X-Face: +McU)#<-H?9lTb(Th!zR`EpVrp<0)1p5CmPu.kOscy8LRp_\u`:tW;dxPo./(fCl
CaKku`)]}.V/"6rISCIDP`
User-Agent: Pan/0.161 (Hmm2; be402cc9; Linux-6.12.0)
View all headers

Thinking about trying out the new preemption model:

"make xconfig" screenshot:
https://imgur.com/OvlXmF5

From kernel/Kconfig.preempt:

config PREEMPT_RT
bool "Fully Preemptible Kernel (Real-Time)"
depends on EXPERT && ARCH_SUPPORTS_RT
select PREEMPTION
help
This option turns the kernel into a real-time kernel by replacing
various locking primitives (spinlocks, rwlocks, etc.) with
preemptible priority-inheritance aware variants, enforcing
interrupt threading and introducing mechanisms to break up long
non-preemptible sections. This makes the kernel, except for very
low level and critical code paths (entry code, scheduler, low
level interrupt handling) fully preemptible and brings most
execution contexts under scheduler control.

Select this if you are building a kernel for systems which
require real-time guarantees.

endchoice
_ _ _ _ _ _ _

I currently use the standard preemption:
Linux lm 6.12.0 #1 SMP PREEMPT_DYNAMIC Tue Nov 19 11:11:40 PST 2024
x86_64 x86_64 x86_64 GNU/Linux

Just decided in the name of Science(!), I gotta try this, and see
what it does to running graphical games, such as Elite Dangerous.
Wish me luck!

--
-v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti
OS: Linux 6.12.0 Release: Mint 21.3 Mem: 258G
"The Majority is never right unless it includes me."

Subject: Re: Linux 6.12 New preemption model
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Fri, 22 Nov 2024 06:32 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Linux 6.12 New preemption model
Date: Fri, 22 Nov 2024 06:32:25 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <vhp8hp$12m83$1@dont-email.me>
References: <lqaj63F7fi9U1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Nov 2024 07:32:25 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d0640d653b3828f8761808e02c741927";
logging-data="1136899"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+CTuPIBLaFjLathxuyJ3id"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:LJqSKk+lsxsiv8IWjMW8bdWqO08=
View all headers

On 22 Nov 2024 05:29:39 GMT, vallor wrote:

> Just decided in the name of Science(!), I gotta try this, and see what
> it does to running graphical games, such as Elite Dangerous. Wish me
> luck!

I’m going to stick my neck out and say this isn’t going to help.
PREEMPT_RT is for hard realtime, like pro audio/music processing where you
have to send/receive so many bytes every millisecond, otherwise quality
noticeably suffers. Things that are limited by human reflexes, like video
games, likely will not benefit. Human reflexes are measured in tenths of a
second, which is plenty of time to get things done in non-realtime
kernels.

Subject: Re: Linux 6.12 New preemption model
From: vallor
Newsgroups: comp.os.linux.misc
Date: Fri, 22 Nov 2024 06:52 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: vallor@cultnix.org (vallor)
Newsgroups: comp.os.linux.misc
Subject: Re: Linux 6.12 New preemption model
Date: 22 Nov 2024 06:52:37 GMT
Lines: 35
Message-ID: <lqao1lF8btnU1@mid.individual.net>
References: <lqaj63F7fi9U1@mid.individual.net> <vhp8hp$12m83$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net svhjtqq3JU+fXuzKfATi0Qi9qU8RUgnAGAFozA+uxVJuawia59
Cancel-Lock: sha1:/RQ8MH6ziJc1J7rzKcHrN+k49pM= sha256:e63ZXUWGUBhbjctcNI5AHnQD8Eoa5ezPNyu0WYYb4kE=
X-Face: +McU)#<-H?9lTb(Th!zR`EpVrp<0)1p5CmPu.kOscy8LRp_\u`:tW;dxPo./(fCl
CaKku`)]}.V/"6rISCIDP`
User-Agent: Pan/0.161 (Hmm2; be402cc9; Linux-6.12.0)
View all headers

On Fri, 22 Nov 2024 06:32:25 -0000 (UTC), Lawrence D'Oliveiro
<ldo@nz.invalid> wrote in <vhp8hp$12m83$1@dont-email.me>:

> On 22 Nov 2024 05:29:39 GMT, vallor wrote:
>
>> Just decided in the name of Science(!), I gotta try this, and see what
>> it does to running graphical games, such as Elite Dangerous. Wish me
>> luck!
>
> I’m going to stick my neck out and say this isn’t going to help.
> PREEMPT_RT is for hard realtime, like pro audio/music processing where you
> have to send/receive so many bytes every millisecond, otherwise quality
> noticeably suffers. Things that are limited by human reflexes, like video
> games, likely will not benefit. Human reflexes are measured in tenths of a
> second, which is plenty of time to get things done in non-realtime
> kernels.

I was more expecting (perhaps) smoother video and audio when
the system was under load.

We'll have to see, I couldn't go through with it:

dkms build of nvidia modules threw warnings about unknown
scheduler and mutex symbols. Also, same for some Thelio modules.

When the NVIDIA drivers catch up, I'll try it...or I might try
nouveau, though I'm reluctant to fight with that at this late
hour. (I think all I need is the Vulkan extensions from Mesa,
since my game uses DXVK -- but those extensions are in pretty
rough shape, so I've read.)

--
-v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti
OS: Linux 6.12.0 Release: Mint 21.3 Mem: 258G
"If it walks out of your refrigerator, LET IT GO !!"

1

rocksolid light 0.9.8
clearnet tor