ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.pod
(Generate patch)

Comparing libev/ev.pod (file contents):
Revision 1.102 by root, Sat Dec 22 16:21:25 2007 UTC vs.
Revision 1.104 by root, Sun Dec 23 03:48:02 2007 UTC

1032optimisations to libev. 1032optimisations to libev.
1033 1033
1034=head3 The special problem of dup'ed file descriptors 1034=head3 The special problem of dup'ed file descriptors
1035 1035
1036Some backends (e.g. epoll), cannot register events for file descriptors, 1036Some backends (e.g. epoll), cannot register events for file descriptors,
1037but only events for the underlying file descriptions. That menas when you 1037but only events for the underlying file descriptions. That means when you
1038have C<dup ()>'ed file descriptors and register events for them, only one 1038have C<dup ()>'ed file descriptors and register events for them, only one
1039file descriptor might actually receive events. 1039file descriptor might actually receive events.
1040 1040
1041There is no workaorund possible except not registering events 1041There is no workaround possible except not registering events
1042for potentially C<dup ()>'ed file descriptors or to resort to 1042for potentially C<dup ()>'ed file descriptors, or to resort to
1043C<EVBACKEND_SELECT> or C<EVBACKEND_POLL>. 1043C<EVBACKEND_SELECT> or C<EVBACKEND_POLL>.
1044 1044
1045=head3 The special problem of fork 1045=head3 The special problem of fork
1046 1046
1047Some backends (epoll, kqueue) do not support C<fork ()> at all or exhibit 1047Some backends (epoll, kqueue) do not support C<fork ()> at all or exhibit
2526than enough. If you need to manage thousands of children you might want to 2526than enough. If you need to manage thousands of children you might want to
2527increase this value (I<must> be a power of two). 2527increase this value (I<must> be a power of two).
2528 2528
2529=item EV_INOTIFY_HASHSIZE 2529=item EV_INOTIFY_HASHSIZE
2530 2530
2531C<ev_staz> watchers use a small hash table to distribute workload by 2531C<ev_stat> watchers use a small hash table to distribute workload by
2532inotify watch id. The default size is C<16> (or C<1> with C<EV_MINIMAL>), 2532inotify watch id. The default size is C<16> (or C<1> with C<EV_MINIMAL>),
2533usually more than enough. If you need to manage thousands of C<ev_stat> 2533usually more than enough. If you need to manage thousands of C<ev_stat>
2534watchers you might want to increase this value (I<must> be a power of 2534watchers you might want to increase this value (I<must> be a power of
2535two). 2535two).
2536 2536

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines