WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Very High CPU and Power usage / Win X with Ubuntu 20.04.2 / after yarn build - taking forever

Open comtechnet opened this issue 5 years ago • 4 comments

Windows Build Number

19043.1237

WSL Version

  • [X] WSL 2
  • [ ] WSL 1

Kernel Version

2 / last updated on 2/5/2021

Distro Version

Ubuntu 20.04.2 - but I can't "upgrade" it - lost the root password - is this fixable?

Other Software

Version: 1.60.2 (user setup) Commit: 7f6ab5485bbc008386c4386d08766667e155244e Date: 2021-09-22T12:00:31.514Z Electron: 13.1.8 Chrome: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Windows_NT x64 10.0.19043

Repro Steps

yarn build from VSCode terminal

Expected Behavior

git nouns repo (blockchain monorepo) on github

yarn (install)

yarn build

started from ubuntu (git repo into subdirectory) - then code .

Actual Behavior

long delays 1/2 hr to yarn build

Diagnostic Logs

none

comtechnet avatar Oct 05 '21 15:10 comtechnet

dup of #7254 #3191

maceip avatar Feb 11 '22 00:02 maceip

just updated to win 11 10.0.22000.493 wsl2 Kernel version: 5.10.60.1 git clone in /home/x

npm build chokes the machine but eventually finishes.

maceip avatar Feb 11 '22 04:02 maceip

tried

$ mylimit=65500
$ sudo prlimit --nofile=$mylimit --locks=$mylimit --sigpending=$mylimit --pid $$
$LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4 npm run dev-stage

still slow

maceip avatar Feb 11 '22 14:02 maceip

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!