| Summary: | [PATCH] Respect maximum RLIMIT_RTTIME when setting Linux thread priority | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Andrew Eikum <aeikum> |
| Component: | thread | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | sezeroz |
| Version: | HG 2.1 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | [PATCH] Respect maximum RLIMIT_RTTIME when setting Linux thread priority | ||
Patch doesn't apply since https://hg.libsdl.org/SDL/rev/535a3a1a7a7e Thanks, Ozkan. It looks like the commit you point to has made this patch unnecessary. I'm unsure about the rlim_cur setting in the current code, but presumably it was tested and working. Resolving. |
Created attachment 4448 [details] [PATCH] Respect maximum RLIMIT_RTTIME when setting Linux thread priority Currently the code to set RLIMIT_RTTIME doesn't actually make any changes. The rtkit daemon requires the process's RLIMIT_RTTIME to be below some configurable value. This patch queries that value and then uses it to cap our max RLIMIT_RTTIME setting. This lets the process achieve RT priority via rtkit.