"/proc/sys/fs/inotify/max user watches"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight , -</source> +</syntaxhighlight>))
 
(다른 사용자 한 명의 중간 판 2개는 보이지 않습니다)
6번째 줄: 6번째 줄:


==확인==
==확인==
<source lang='console'>
<syntaxhighlight lang='console'>
root@localhost:~# cat /proc/sys/fs/inotify/max_user_watches
root@localhost:~# cat /proc/sys/fs/inotify/max_user_watches
12288
12288
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
root@localhost:~# sysctl fs.inotify.max_user_watches
root@localhost:~# sysctl fs.inotify.max_user_watches
fs.inotify.max_user_watches = 12288
fs.inotify.max_user_watches = 12288
</source>
</syntaxhighlight>


==임시변경==
==임시변경==
<source lang='bash'>
<syntaxhighlight lang='bash'>
sysctl -w fs.inotify.max_user_watches=524288
sysctl -w fs.inotify.max_user_watches=524288
</source>
</syntaxhighlight>


==영구변경==
==영구변경==
* /etc/sysctl.conf 에 내용 추가
* /etc/sysctl.conf 에 내용 추가
<source lang='aconf'>
<syntaxhighlight lang='aconf'>
fs.inotify.max_user_watches=524288
fs.inotify.max_user_watches=524288
</source>
</syntaxhighlight>
* 변경사항 적용
* 변경사항 적용
<source lang='bash'>
<syntaxhighlight lang='bash'>
sudo sysctl -p
sudo sysctl -p
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==
* [[/etc/sysctl.conf]]
* [[/etc/sysctl.conf]]
* [[sysctl: setting key "fs.inotify.max_user_watches": Read-only file system]]
* [[sysctl: setting key "fs.inotify.max_user_watches": Read-only file system]]
* [[forbidden sysctl: "fs.inotify.max_user_watches" not whitelisted]]


==참고==
==참고==
* https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc
* https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc
* https://github.com/cdr/code-server/issues/628 Increase fs.inotify.max_user_watches in docker container
* https://github.com/cdr/code-server/issues/628 Increase fs.inotify.max_user_watches in docker container
* https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers


[[분류:/proc/sys/fs/inotify]]
[[분류:/proc/sys/fs/inotify]]

2021년 6월 13일 (일) 20:00 기준 최신판

1 개요[ | ]

/proc/sys/fs/inotify/max_user_watches
  • watch하는 파일의 총 개수의 상한
  • 일반적인 상황에서는 조정할 필요가 없는 OS 파라미터이다.

2 확인[ | ]

root@localhost:~# cat /proc/sys/fs/inotify/max_user_watches
12288
root@localhost:~# sysctl fs.inotify.max_user_watches
fs.inotify.max_user_watches = 12288

3 임시변경[ | ]

sysctl -w fs.inotify.max_user_watches=524288

4 영구변경[ | ]

  • /etc/sysctl.conf 에 내용 추가
fs.inotify.max_user_watches=524288
  • 변경사항 적용
sudo sysctl -p

5 같이 보기[ | ]

6 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}