kernel/ucounts: expose current inotify watch count
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | kernel/ucounts: expose current inotify watch countkernel/ | +29 | 1 reply |
Reviews trailers per patch
The patch has a Reviewed-by or Acked-by.
| Patch | Jan Kara |
|---|---|
| 1/1 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/1] kernel/ucounts: expose current inotify watch count
This patch enables reading the amount of inotify watches in use.
Inotify watches are a finite resource, in a similar way to available file descriptors. However, there is no way to check how many watches we have available or in use, we can only read the max.
This patch adds a 'current_inotify_watches' entry to the per-user sysctl table that gets mounted under /proc/sys/user/. This is the same table that contains 'max_inotify_watches'.
The motivation for this patch is to be able to set up monitoring and alerting before an application starts failing because it runs out of inotify watches.
Albert Vaca Cintora (1):
kernel/ucounts: expose current inotify watch count
kernel/ucount.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+)
--
2.20.1