Skip to content

mxqd: Remove RLIMIT_CPU usage for runtime limitation #166

Merged
merged 1 commit into from
Sep 11, 2024
Merged

Conversation

donald
Copy link
Contributor

@donald donald commented Sep 11, 2024

The current code applies a RLIMIT_CPU limit to jobs with job_threads == i. This is incorrect, as such jobs can still get more processors if they require more server slots because of their memory demands.

Since mxqd can now monitor and reliably kill jobs that exceed their allowed runtime, this code is obsolete and no longer useful.

There is no reason to fix this code, so remove it entirely.

Fixes #165

The current code applies a RLIMIT_CPU limit to jobs with `job_threads == i`.
This is incorrect, as such jobs can still get more processors if they
require more server slots because of their memory demands.

Since mxqd can now monitor and reliably kill jobs that exceed their
allowed runtime, this code is obsolete and no longer useful.

There is no reason to fix this code, so remove it entirely.
@donald donald merged commit d83d4bf into master Sep 11, 2024
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
1 participant