11
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

WSL2のメモリ割り当て量を変えたい

Last updated at Posted at 2020-03-03

概要

.wslconfigというファイルに記述することで、メモリの割り当て量を設定できます。

設定

Windows側のホームディレクトリ(厳密には%UserProfile%)に.wslconfigファイルを作成します。

~/.wslconfig
[wsl2]
memory=8GB

ファイルを作成したら、PowerShellからWSLを再起動します。

wsl --shutdown

参考

Windows Subsystem for Linux のリリース ノート
https://docs.microsoft.com/ja-jp/windows/wsl/release-notes

11
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?