Skip to content

Internal restart of service with same PID resets nice value and never gets updated again #112

@PVermeer

Description

@PVermeer

I'm testing out bazzite with System76 scheduler and sunshine game streaming. Sunshine is added to to the recording assignment that get's set with recording nice=-9 io=(best-effort)0. This works well with sunshine manual start / restart and via a systemd unit start / restart. gnome-system-monitor Reports very high.

However, sunshine has an internal restart function:
https://github.com/LizardByte/Sunshine/blob/69a3edd9b01c76aa44fd5c2a29de1c3b3722cb41/src/platform/linux/misc.cpp#L233-L261

and:
https://github.com/LizardByte/Sunshine/blob/69a3edd9b01c76aa44fd5c2a29de1c3b3722cb41/src/entry_handler.cpp#L148-L167

Using this restart results in a restart of sunshine with the same PID and a reset of the nice value (low normal, high when stream start). System76 scheduler never sets this back to very high as monitored in gnome-system-monitor.

Using bazzite Gnome Desktop edition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions