ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/AIO.pm
(Generate patch)

Comparing IO-AIO/AIO.pm (file contents):
Revision 1.72 by root, Tue Oct 24 14:25:53 2006 UTC vs.
Revision 1.73 by root, Tue Oct 24 16:35:04 2006 UTC

936request/result processing, while the child frees the request/result queue 936request/result processing, while the child frees the request/result queue
937(so that the requests started before the fork will only be handled in the 937(so that the requests started before the fork will only be handled in the
938parent). Threads will be started on demand until the limit set in the 938parent). Threads will be started on demand until the limit set in the
939parent process has been reached again. 939parent process has been reached again.
940 940
941Temporary memory that was allocated for request processing is not
942reclaimed in the child, however. While this is possible in some cases, it
943is almost impossible in others (threads are evil you know), so you will
944have to live with it. This is around 64k buffer (for sendfile, readahead
945emulation) + the size of the directory being scanned (readdir).
946
947In short: the parent will, after a short pause, continue as if fork had 941In short: the parent will, after a short pause, continue as if fork had
948not been called, while the child will act as if IO::AIO has not been used 942not been called, while the child will act as if IO::AIO has not been used
949yet. 943yet.
950 944
951=head2 MEMORY USAGE 945=head2 MEMORY USAGE
967temporary buffers, and each thread requires a stack and other data 961temporary buffers, and each thread requires a stack and other data
968structures (usually around 16k-128k, depending on the OS). 962structures (usually around 16k-128k, depending on the OS).
969 963
970=head1 KNOWN BUGS 964=head1 KNOWN BUGS
971 965
972See FORK BEHAVIOUR, above. 966Known bugs will be fixed in the next release.
973 967
974=head1 SEE ALSO 968=head1 SEE ALSO
975 969
976L<Coro::AIO>. 970L<Coro::AIO>.
977 971

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines