From 5d32d2606a2c469e1c4f7eb5f72c3e50bff1c5b9 Mon Sep 17 00:00:00 2001 From: Chris Howey Date: Sun, 13 Oct 2013 11:51:11 -0500 Subject: [PATCH] Update readme to specify BSD / OSX limits. --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a4a4fac..bf686aa 100644 --- a/README.md +++ b/README.md @@ -66,5 +66,8 @@ Notes: * No, you must add watches for any directory you want to watch. * Do I have to watch the Error and Event channels in a separate goroutine? * As of now, yes. Looking into making this single-thread friendly. -* How avoid the criptic error "no space left on device" when adding watches? - * Probably you're out of inotify's watches; verify your max with "cat /proc/sys/fs/inotify/max\_user\_watches". +* There are OS-specific limits as to how many watches can be created: + * Linux: /proc/sys/fs/inotify/max_user_watches contains the limit, + reaching this limit results in a "no space left on device" error. + * BSD / OSX: sysctl variables "kern.maxfiles" and "kern.maxfilesperproc", + reaching these limits results in a "too many open files" error. -- 2.50.1