Skip to content

setLowPriority should not increase process priority when already lower (in Windows) #6597

Closed

Description

@tomasz1986

Syncthing, with setLowPriority set to true, always sets its child process priority to Below normal, even if the parent priority is already lower than that.

To reproduce in Windows command line:

start /low syncthing.exe

Even though the parent process priority is Idle, the child process priority gets changed to Below normal.

image

On the other hand, with setLowPriority set to false, the child process priority remains Idle, following its parent priority.

image

I would argue that setLowPriority should not make Syncthing change its priority to a higher value than the one already defined on runtime.

Version Information

Syncthing Version: v1.4.2
OS Version: Windows 10 Enterprise 1607 LTSB

Activity

  1. added
    bug
    on May 3, 2020
  2. Bill-Stewart commented on Dec 29, 2021

    @Bill-Stewart

    It would also be nice if there was an command-line option that could prevent this as a default so that the calling process could decide and not get overridden: #8087

  3. Bill-Stewart commented on Jan 13, 2022

    @Bill-Stewart

    FWIW, the Syncthing Windows Setup package (https://github.com/Bill-Stewart/SyncthingWindowsSetup) automatically configures <setLowPriority> to false at the end of installation (the service and script launchers specify the process priority).

  4. added 2 commits that reference this issue on Jul 20, 2023
    6855bb7
    1202150
  5. added 3 commits that reference this issue on Jul 21, 2023
    d70eb56
    52d700a
    d2cfb53
  6. added this to the v1.23.7 milestone on Jul 31, 2023
  7. added
    frozen-due-to-age
    on Jul 20, 2024
  8. locked and limited conversation to collaborators on Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions