Mark Musique process as having a high priority #44

Open
opened 2023-01-15 01:29:43 +01:00 by s452639 · 1 comment
Collaborator

For performance and deterministic purposes, we need to define Musique interpreter instance as important for operating system.

For performance and deterministic purposes, we need to define Musique interpreter instance as important for operating system.
Author
Collaborator

Linux

nice value can be set, but only on processes with CAP_SYS_NICE capability which can be aquired either by running as root or marking executable with this capability:

$ sudo setcap cap_sys_nice=ep executable

Unfortunately this is not a part of ELF file, so it must be applied manually.

Lower value of nice (negative) means more scheduling privilages.

Windows

https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-setpriorityclass

macOS

Nice and root required as in Linux but without capabilities found on Linux

## Linux nice value can be set, but only on processes with CAP_SYS_NICE capability which can be aquired either by running as root or marking executable with this capability: ``` $ sudo setcap cap_sys_nice=ep executable ``` Unfortunately this is not a part of ELF file, so it must be applied manually. Lower value of nice (negative) means more scheduling privilages. ## Windows https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-setpriorityclass ## macOS Nice and root required as in Linux but without capabilities found on Linux
s452639 added the
enhancement
label 2023-01-15 02:37:00 +01:00
Sign in to join this conversation.
No Label
bug
enhancement
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: s416496/musique#44
No description provided.