- 论坛徽章:
- 7
|
本帖最后由 cxytz01 于 2013-04-22 10:17 编辑
man epoll 的一段话,一段看不懂。
/proc interfaces
The following interfaces can be used to limit the amount of kernel memory consumed by epoll:
/proc/sys/fs/epoll/max_user_watches (since Linux 2.6.2
This specifies a limit on the total number of file descriptors that a user can register across all epoll instances on the system. The limit is per real user ID. Each registered file descriptor costs roughly 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.
翻译下红色标注语句的意思,8G-64bit kernel 可以有多少max_user_watcher?
|
|