# WSL 2.0 Global configuration (.wslconfig) 을 통한 성능 향상

> Clean Markdown view of GeekNews topic #2327. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=2327](https://news.hada.io/topic?id=2327)
- GeekNews Markdown: [https://news.hada.io/topic/2327.md](https://news.hada.io/topic/2327.md)
- Type: news
- Author: [kibua20](https://news.hada.io/@kibua20)
- Published: 2020-06-24T12:12:56+09:00
- Updated: 2020-06-24T12:12:56+09:00
- Original source: [kibua20.tistory.com](https://kibua20.tistory.com/63)
- Points: 6
- Comments: 0

## Topic Body

WSL 2.0 Global configuration (.wslconfig) 을 통한 성능 향상

* Windows 빌드 19041 이상에서 지원함

- 커널 설정: 리눅스 커널을 사용자가 지정

- kernelCommandLine : 사용자가 지정하는 kernel command line 추가

- 메모리: WSL 2.0  사용하는 메모리 지정한다. 기본 값으로 윈도우의 80%를 설정함  (WSL 성능 향상)

- CPU : WSL  2.0 에서 사용하는 CPU 개수 지정  (WSL 성능 향상)

- localhostForwarding:  localhost에 연결을 위한 포트 포워딩

- 가상 메모리: SWAP 공간을 할당 크기 지정 가능 (WSL에서 메모리가 부족한 경우 사용)

- 가상 메모리 파일 저정: Swap 파일을 지정 가능하다.  위치 설정을 하지 않으면 윈도우 프로파일 폴더 하위의 temp 폴더에 생성된다.

## Comments



_No public comments on this page._
