Skip to content

Instantly share code, notes, and snippets.

@capaj
Last active November 29, 2025 08:02
Show Gist options
  • Select an option

  • Save capaj/c7f0fb13b7206cb4bb93ab583b9b91d4 to your computer and use it in GitHub Desktop.

Select an option

Save capaj/c7f0fb13b7206cb4bb93ab583b9b91d4 to your computer and use it in GitHub Desktop.
inotify ubuntu sane defaults
sudo tee /etc/sysctl.d/99-inotify.conf >/dev/null <<'EOF'
fs.inotify.max_user_watches = 1048576
fs.inotify.max_user_instances = 2048
fs.inotify.max_queued_events = 32768
EOF
sudo sysctl --system
@capaj
Copy link
Author

capaj commented Nov 29, 2025

very much recommend doing this on any ubuntu machine you plan to use for serious work.
The default values are comically tiny in 2025:

  • watches per user starts at 8192
  • inotify instances per user starts at 128
  • queue capacity starts at 16384

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment