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