Function procfs::sys::fs::epoll::max_user_watches [−][src]
pub fn max_user_watches() -> ProcResult<u64>
Expand description
Get the limit on the total number of file descriptors that a user can register across all epoll instances.
The limit is per real user ID. Each registered file descriptor costs roughtly 90 bytes on a 32-bit kernel,
and roughly 160 bytes on a 64-bit kernel. Currently, the default value for max_user_watches
is 1/25 (4%)
of the available low memory, divided by the registration cost in bytes.
(Since Linux 2.6.28)