DescriptionLinux: stop libevent from pre-allocating huge arrays.
Currently, libevent allocates two structures of size RLIMIT_NOFILE
(which is 8192 on Ubuntu) and so these end up being several hundred kB
of memory for each MessageLoopIO.
This patch changes the default size to 32. If the thread watches a
file descriptor greater than 32, the arrays will be grown as needed,
doubling each time.
Patch Set 1 #
Created: 11 years, 6 months ago
Messages
Total messages: 2 (0 generated)
|