반응형
1. Vmmem 프로세스 메모리 과다 점유 !?
WSL을 사용하고 부터 Vmmem 이라는 프로세스가 메모리를 점유할 때가 있다.
2021년 04월 13일, 아직도 Open중인 Issue인데.. ( https://github.com/microsoft/WSL/issues/4166 )
현재 최선의 방법은 Vmmem의 메모리 점유 최대치를 설정하는 방법이라는 것 같다.
2. Vmmem 메모리 점유 최대치 설정
- 사용자 경로로 이동. ( C:\Users\SOMEUSER )OR
- cd ~
- cd %UserProfile%
- .wslconfig파일 생성. (memory에 최대치를 적는다.)
- .wslconfig
[wsl2] memory=4GB swap=0 localhostForwarding=true
- .wslconfig
Reference
- WSL 2 consumes massive amounts of RAM and doesn't return it #4166: https://github.com/microsoft/WSL/issues/4166#issuecomment-526725261
- WSL 리소스 조정하기: https://seokbeomkim.github.io/posts/wsl-customize-resource/
- WSL2 기반 docker 사용시 vmmem 프로세스 메모리 소모량 줄이기: https://meaownworld.tistory.com/160
# 결론적으로 얼마전에 도커를 설치 했었는데 도커에서 메모리를 잡고 있었음
반응형