Tech Tricks

View on GitHub
10 September 2021

Change inotify limit

by Tianren Liu

add file /etc/sysctl.d/100-inotify.conf with following

# Increase inotify availability
fs.inotify.max_user_watches = 524288

Run sudo sysctl --system to update sysctl.

Run sysctl fs.inotify.max_user_watches to verify. If the limit is not changed, it may be overwritten by another conf file. The output of sudo sysctl --system provides clues.

tags: Ubuntu 20.04