… | |
… | |
277 | IO::AIO::idle_timeout $seconds |
277 | IO::AIO::idle_timeout $seconds |
278 | IO::AIO::max_outstanding $maxreqs |
278 | IO::AIO::max_outstanding $maxreqs |
279 | IO::AIO::nreqs |
279 | IO::AIO::nreqs |
280 | IO::AIO::nready |
280 | IO::AIO::nready |
281 | IO::AIO::npending |
281 | IO::AIO::npending |
|
|
282 | $nfd = IO::AIO::get_fdlimit [EXPERIMENTAL] |
282 | IO::AIO::min_fdlimit $nfd; |
283 | IO::AIO::min_fdlimit $nfd [EXPERIMENTAL] |
283 | |
284 | |
284 | IO::AIO::sendfile $ofh, $ifh, $offset, $count |
285 | IO::AIO::sendfile $ofh, $ifh, $offset, $count |
285 | IO::AIO::fadvise $fh, $offset, $len, $advice |
286 | IO::AIO::fadvise $fh, $offset, $len, $advice |
286 | IO::AIO::mmap $scalar, $length, $prot, $flags[, $fh[, $offset]] |
287 | IO::AIO::mmap $scalar, $length, $prot, $flags[, $fh[, $offset]] |
287 | IO::AIO::munmap $scalar |
288 | IO::AIO::munmap $scalar |
… | |
… | |
1482 | C<IO::AIO::FIEMAP_EXTENT_DATA_ENCRYPTED>, C<IO::AIO::FIEMAP_EXTENT_NOT_ALIGNED>, |
1483 | C<IO::AIO::FIEMAP_EXTENT_DATA_ENCRYPTED>, C<IO::AIO::FIEMAP_EXTENT_NOT_ALIGNED>, |
1483 | C<IO::AIO::FIEMAP_EXTENT_DATA_INLINE>, C<IO::AIO::FIEMAP_EXTENT_DATA_TAIL>, |
1484 | C<IO::AIO::FIEMAP_EXTENT_DATA_INLINE>, C<IO::AIO::FIEMAP_EXTENT_DATA_TAIL>, |
1484 | C<IO::AIO::FIEMAP_EXTENT_UNWRITTEN>, C<IO::AIO::FIEMAP_EXTENT_MERGED> or |
1485 | C<IO::AIO::FIEMAP_EXTENT_UNWRITTEN>, C<IO::AIO::FIEMAP_EXTENT_MERGED> or |
1485 | C<IO::AIO::FIEMAP_EXTENT_SHARED>. |
1486 | C<IO::AIO::FIEMAP_EXTENT_SHARED>. |
1486 | |
1487 | |
1487 | At the time of this writing (Linux 3.2), this requets is unreliable unless |
1488 | At the time of this writing (Linux 3.2), this request is unreliable unless |
1488 | C<$count> is C<undef>, as the kernel has all sorts of bugs preventing |
1489 | C<$count> is C<undef>, as the kernel has all sorts of bugs preventing |
1489 | it to return all extents of a range for files with large number of |
1490 | it to return all extents of a range for files with a large number of |
1490 | extents. The code works around all these issues if C<$count> is undef. |
1491 | extents. The code (only) works around all these issues if C<$count> is |
|
|
1492 | C<undef>. |
1491 | |
1493 | |
1492 | =item aio_group $callback->(...) |
1494 | =item aio_group $callback->(...) |
1493 | |
1495 | |
1494 | This is a very special aio request: Instead of doing something, it is a |
1496 | This is a very special aio request: Instead of doing something, it is a |
1495 | container for other aio requests, which is useful if you want to bundle |
1497 | container for other aio requests, which is useful if you want to bundle |
… | |
… | |
2069 | |
2071 | |
2070 | =over 4 |
2072 | =over 4 |
2071 | |
2073 | |
2072 | =item $numfd = IO::AIO::get_fdlimit |
2074 | =item $numfd = IO::AIO::get_fdlimit |
2073 | |
2075 | |
|
|
2076 | This function is I<EXPERIMENTAL> and subject to change. |
|
|
2077 | |
2074 | Tries to find the current file descriptor limit and returns it, or |
2078 | Tries to find the current file descriptor limit and returns it, or |
2075 | C<undef> and sets C<$!> in case of an error. The limit is one larger than |
2079 | C<undef> and sets C<$!> in case of an error. The limit is one larger than |
2076 | the highest valid file descriptor number. |
2080 | the highest valid file descriptor number. |
2077 | |
2081 | |
2078 | =item IO::AIO::min_fdlimit [$numfd] |
2082 | =item IO::AIO::min_fdlimit [$numfd] |
|
|
2083 | |
|
|
2084 | This function is I<EXPERIMENTAL> and subject to change. |
2079 | |
2085 | |
2080 | Try to increase the current file descriptor limit(s) to at least C<$numfd> |
2086 | Try to increase the current file descriptor limit(s) to at least C<$numfd> |
2081 | by changing the soft or hard file descriptor resource limit. If C<$numfd> |
2087 | by changing the soft or hard file descriptor resource limit. If C<$numfd> |
2082 | is missing, it will try to set a very high limit, although this is not |
2088 | is missing, it will try to set a very high limit, although this is not |
2083 | recommended when you know the actual minimum that you require. |
2089 | recommended when you know the actual minimum that you require. |