microsoft / microsoft/WSL

Ability to set the WSL1 and perhaps WSL2 process to a higher level than 8

Open
#9,422 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

**Is your feature request related to a problem? Please describe.**
We are using WSL1 for running Industry Control Software on Windows Systems, using NodeJs and some unix specific tools, however we are having performance issues, due to the process priority of WSL.

We would like to be able to increase the WSL priority

**Describe the solution you'd like**
Ability to configure that I could start WSL as e.g. Priority 13, and then anything started in WSL would still be 8, but it would be possible to start with a higher priority, using the regular system commands in Node.js `os.setPriority()` Method
https://www.geeksforgeeks.org/node-js-os-setpriority-method/

**Describe alternatives you've considered**
Perhaps all of WSL should just run as 13 or whatever is specified in a configuration variable.

**Additional context**
This is from Node running under Windows, just to share the Process Priority Levels
![image](https://user-images.githubusercontent.com/6911804/210209567-c3b0d015-774b-4a9e-938e-92e10b921acd.png)

We are using WSL1 since we appreciate that we have the same IP number as the machine, and we know that we could configure us out of this, but we haven't made the transition to WSL2 of this reason.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository files or tests are identified. Start by investigating how WSL1 and WSL2 process priorities are assigned, then compare the requested behavior with Node.js os.setPriority(). Done means establishing whether a configurable WSL launch priority can be supported and defining its behavior for processes started inside WSL.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.