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

Comparing IO-AIO/Changes (file contents):
Revision 1.85 by root, Tue Oct 24 16:35:04 2006 UTC vs.
Revision 1.268 by root, Sun Jul 17 04:20:04 2011 UTC

1Revision history for IO::AIO 1Revision history for IO::AIO
2 2
3TODO: better autoconf.pm that can return LIBS etc. 3TODO: better autoconf.pm that can return LIBS etc.
4TODO: use feeder for aio_scandir. 4TODO: aio_cptree/mvtree
5TODO: reduce condvar fairness: schedule hot-cache-threads first?
6TODO: splice/tee/vmsplice? (http://kerneltrap.org/node/6505 http://lwn.net/Articles/178199/)
7TODO: aio_fcntl, at least for file-locking
8TODO: fallocate, if it wouldn't be so useless.
9TODO: aio_mincore?
10TODO: getxattr etc.?
11TODO: MS_xxx, posix_fadvise, posix_madvise
12TODO: realpath
5 13
62.0 14TODO: remove fork support, eio_init can be called multiple times maybe
15TODO: "this might change" - no wrklock for malloc, no automatic free in child.
16 - passes testsuite on win32 now (activetstate 5.10.1).
17 - (libeio) fix a deadlock where a wakeup signal could be missed when
18 a timeout occured at the same time.
19 - (libeio) added realpath.
20 - (libeio) added fallocate.
21 - (libeio) disabling sendfile on darwin unfortunately broke the emulation.
22 - (libeio) do not acquire any locks when forking.
23 - (libeio) use fewer time() syscalls when waiting for new requests.
24
253.93 Wed Jun 29 23:44:18 CEST 2011
26 - ECB.H WAS MISSING.
27
283.92 Wed Jun 29 14:45:41 CEST 2011
29 - ecb.h was missing.
30
313.91 Wed Jun 29 13:24:42 CEST 2011
32 - (libeio) work around a Linux (and likely FreeBSD and other
33 kernels) bug where sendfile would not transfer all the requested
34 bytes on large transfers, using a heuristic.
35 - buggy sendfile caused aio_move/copy to sometimes fail for big
36 files (fortunately it checks that the whole file has been
37 transferred...)
38 - use libecb for higher performance and higher portability.
39 - (libeio) disable sendfile on darwin, it's too broken.
40 - disable fork tests on !linux, as only linux supports mixing
41 pthread and fork in perl.
42 - document the fact that fork doesn't work anymore when using
43 this module, on anything !GNU/Linux.
44 - increase timeout in t/04_fork.t, as too many CPAN-tester setups
45 run on a 0.1MHz cpu. Or so.
46
473.9 Fri May 27 02:43:47 CEST 2011
48 - (libeio) fix memory corruption in aio_readdirx for the flags
49 combination READDIR_STAT_ORDER | READDIR_DIRS_FIRST.
50 - add lots of newer POSIX and GNU/Linux-specific open
51 flags.
52
533.8 Sun Mar 27 12:25:33 CEST 2011
54 - use nonstandard but maybe-working-on-bsd fork technique.
55 - support a max_idle value of 0.
56 - support setting of idle timeout value (IO::AIO::idle_timeout).
57
583.72 Fri Feb 11 04:25:38 CET 2011
59 - use _POSIX_MEMLOCK_RANGE to detect mlock/munlock.
60 - aio_mknod always used a dev_t value of 0.
61 - new treescan option: --grep.
62 - add more S_IF macros, and major/minor/makedev "macros".
63
643.71 Thu Dec 30 08:18:46 CET 2010
65 - the numerical result value passed to callbacks did not stringify
66 correctly, due to internal reuse and failure to reset the sv flags.
67 - actually test for posix_[mf]advise, as at least uClibc defines
68 _POSIX_ADVISORY_INFO without actually having any of the required
69 funcitonality. ugh.
70
713.7 Mon Nov 1 23:00:34 CET 2010
72 - implement/add madvise, mmap, munmap, aio_mlockall, munlockall,
73 aio_mlock, munlock, msync and mtouch to @EXPORT_OK.
74 - document the sad state of affairs w.r.t. pthread on many bsds.
75 - do not enable mmap on systems without _POSIX_MAPPED_FILES
76 (openbsd 4.8).
77 - do not leak memory in IO::AIO::mmap when the scalar already
78 had string-data.
79 - add O_RDWR, O_APPEND and O_EXCL symbols and semi-document
80 them.
81 - cache the result IV, for a minor speedup in the common case.
82 - croak when an mmapped-scalar changes location, to detect
83 user-errors better.
84 - fix aio_readlink prototype.
85
863.65 Wed Mar 31 02:45:05 CEST 2010
87 - actually use PATH_MAX instead of NAME_MAX for readlink, as to not
88 cut off long pathnames in aio_readlink (based on patch by
89 Rasmus Andersson).
90 - a double fork partially killed the event pipe (great testcase
91 by dormando). affects IO::AIO, BDB and Async::Interrupt.
92 - suck steve's dick and rename our symbols to avoid colliding
93 with nonstandard identifier spam on the broken os x pseudo-os.
94 affects IO::AIO and BDB.
95
963.6 Mon Jan 11 00:43:39 CET 2010
97 - (libeio) more fixes for the freebsd/apple sendfile - broken by
98 manpage standards, but apparently correct accoridng to actual
99 kernel sources.
100 - add IO::AIO::mmap/munmap support.
101 - add IO::AIO::m(un)lockall support.
102 - clean up manpage.
103
1043.5 Thu Jan 7 21:25:04 CET 2010
105 - (liebio) fix freebsd sendfile (Vanilla Hsu).
106 - (libeio) also fix darwin sendfile that suffered from a similar bug.
107 - add aio_statvfs as interface to statvfs/fstatvfs.
108 - work around buggy symlink() on cygwin in the testsuite.
109 - wtf. freebsd-8.0 actually passes the testsuite! I knew
110 they could implement fork and semaphores one day! cheers!
111
1123.4 Sat Jan 2 15:13:04 CET 2010
113 - (libeio) max_poll_time was not properly converted to ticks.
114 - clarify cancel_subs description.
115 - IO::AIO::sendfile did not actually return the return value
116 from the sendfile call.
117 - implement aio_msync, aio_mtouch.
118 - (libeio) tentatively support darwin in sendfile.
119
1203.31 Thu Nov 12 02:14:29 CET 2009
121 - fix result status documentation of aio_copy, aio_move.
122 - speed up object creation considerably by avoiding
123 hash lookups.
124
1253.3 Wed Aug 5 13:52:58 CEST 2009
126 - use common::sense.
127 - use common schmorp.h header.
128 - allow integers (file descriptors) in addition to file handles.
129 - take advantage of linux' eventfd (but it seems slower on smp?).
130 - use poll not select on posix platforms.
131
1323.261 Wed Jul 1 10:11:51 CEST 2009
133 - more 0S X workarounds (patch by Tokuhiro Matsuno).
134
1353.26 Tue Jun 30 09:33:26 CEST 2009
136 - 0S X of course claims to be posix 2008 but lacks posix_fadvise.
137 try to work around this horribly broken OS in a somewhat hackish
138 way. might help other os's too.
139
1403.25 Sat Jun 27 05:18:26 CEST 2009
141 - added IO::AIO::fadvise and IO::AIO::sendfile.
142 - (libeio) replaced quicksort+insertion sort by a tuned radix
143 sort + insertion sort, resulting in comparable runtime (usually
144 faster) to the old version, but without any ill side effects on
145 degenerated (for quicksort) data.
146 - (libeio) correctly sort dirs by inodes if we have perfect type
147 knowledge and DIRS_FIRST is used.
148 - (libeio) internally the wrong DT_* constants were used, but no
149 known system has differing EIO_DT_*/DT_* values, so not an issue.
150 - removed a (harmless) assert that was left over on the code
151 but should not have been.
152 - use more correct types (change IO length from IV to VAL64,
153 which makes a difference on systems without 64 bit perls).
154
1553.23 Sat Jun 13 16:57:58 CEST 2009
156 - fix off-by-one bug in aio_readdir that was introduced in the
157 rushed 3.22 release.
158
1593.22 Sat Jun 13 15:32:40 CEST 2009
160 - speed up readdirx sort algorithm slightly.
161 - bin/treescan was missing from distro tarball.
162
1633.21 Fri Jun 12 18:45:53 CEST 2009
164 - new options --dirs and --files for treescan.
165 - install bin/treescan by default.
166 - (libeio) aio_readdir can now be cancelled while executing.
167 - fix a printf format string for 64 bit systems (could lead
168 to problems on big endian 64 bit systems).
169 - do not use qsort() but our own algorithm: glibc initialises
170 the whole locale and I/O subsystem inside qsort, causing
171 a stack overflow on 32 bit machines. The new sort uses much less
172 stack and is more than twice as fast in typical situations.
173
1743.2 Sun Jun 7 20:30:05 CEST 2009
175 - (libeio) pwrite emulation was even more flawed than intended and did
176 not restore the file offset.
177 - add aio_readdirx, which can return inode and filetype and sort
178 the names in various ways.
179 - unfortunately, utime, chmod, chown on an open file that has just
180 been written can easily block, which caused aio_copy to block the
181 process. no more!
182 - no longer rely on dst path in aio_copy when futime is available.
183
1843.19 Tue Apr 21 22:05:21 CEST 2009
185 - more perl 5.10 workarounds for aio_read and write.
186 - aio_write no longer modifies the sv (if possible).
187 - aio_read now works correctly with magic values.
188
1893.18 Sun Apr 19 21:17:32 CEST 2009
190 - better diagnostics when some aio_* functions get passed an illegal fh.
191 - try to avoid crashes due to incompatible 5.10 API changes. grmbl.
192
1933.17 Thu Nov 20 08:45:36 CET 2008
194 - (libeio) added aio_sync_file_range (untested).
195 - add aio_busy to @IO::AIO::AIO_REQ.
196
1973.16 Wed Oct 22 18:28:01 CEST 2008
198 - use SvREFCNT_inc instead of SvREFCNT_inc_NN in a non-speed critical
199 part to improve portability to perl 5.8 (reported by szymon).
200
2013.15 Mon Oct 13 00:39:55 CEST 2008
202 - automatic removal of feeders was broken.
203 - (libeio) use a more robust method to detect whether a feeder
204 has added something to the group or not.
205
2063.1 Thu Oct 2 13:34:40 CEST 2008
207 - pre-deref the passed callback object, for increased speed
208 and decreased memory usage.
209 - call on_next_submit callback even for aio_group - impact unknown,
210 but seems more correct.
211 - $req->cb now returns the original callback.
212 - (libeio) pass EIO_GROUP/aio_group requests through the queue without
213 requiring a thread switch.
214 - (libeio) status code of aio_futime and aio_utime was always passed 0.
215 - do some other ยต-optimisations.
216
2173.07 Sat Aug 2 16:06:13 CEST 2008
218 - do not include LIBS in autoconf tests.
219
2203.06 Tue Jul 15 12:41:32 CEST 2008
221 - move preadwritelock definition before it's first reference,
222 to make it compile again on broken platforms (they still exist)
223 or badly cofngiured perls (redhat...), reported by Rob Bloodgood.
224
2253.05 Thu Jun 19 23:23:52 CEST 2008
226 - work around perl overriding readdir etc. with thread-unsafe
227 (sic!) versions.
228
2293.04 Wed Jun 18 01:35:38 CEST 2008
230 - (libeio) fix eio_mknod, which confused it's arguments.
231 - (libeio) do not use readdir_r, as Ulrich Drepper pointed out that this
232 is stupid.
233 - (libeio) fix eio__readahead prototype, patch by Jost Krieger.
234 - (libeio) fix a bug that could potentially cause IO::AIO
235 not to get initialised properly.
236
2373.03 Thu May 29 05:33:30 CEST 2008
238 - (libeio) correctly call pthread_attr_destroy ().
239 - (libeio) work around broken bsd headers once more.
240 - reduce shared library size again by not including wrappers.
241 - max_outstanding could cause poll to enter a busy-waiting loop.
242 - document the new IO::AIO::poll_cb result value.
243
2443.02 Mon May 12 02:32:02 CEST 2008
245 - fix a memory leak on aio_readlink.
246 - bring back working fchmod.
247 - nop and busy now set result to 0.
248 - set errno to ENOMEM when allocation fails.
249
2503.01 Sun May 11 03:07:03 CEST 2008
251 - (libeio) make it compile on systems without readahead or readdir_r.
252 - (libeio) improve configure check for readahead availability.
253 - do not try to link against -lrt.
254 - use a separate configure script for IO::AIO (not the libeio one).
255
2563.0 Sun May 11 00:57:14 CEST 2008
257 - added bin/treescan to the distribution.
258 - switched to using libeio.
259 - LOTS OF INCOMPATIBLE CHANGES:
260 - remove signal functionality, it is not worth the effort.
261 - max_outstanding no longer returns the previous number of requests.
262 - poll_cb no longer returns number of requests.
263
2642.62 Sat Apr 26 13:59:33 CEST 2008
265 - port to solaris perls configured for old posix
266 (analysed by Jost Krieger).
267 - keep a reference to the perl filehandle object in aio_close,
268 so it doesn't get closed prematurely, leading to ugly races.
269
2702.61 Wed Apr 16 18:45:02 CEST 2008
271 - fix treescan output duplication and improve output ordering.
272 also display files given on the commandline.
273 - use a different algorithm for aio_close that is faster
274 and probably has even lower chances of blocking.
275 - do our own stack memory management for threads - linux
276 allocates outrageous amounts of VM (not so bad unless you
277 use mlockall...), which severely limits the number of threads
278 on 32-bit arches: stack size is the larger of PTHREAD_STACK_MIN
279 and 4096 * sizeof (long) (usually this is 16..64k).
280
2812.6 Sun Mar 30 08:28:11 CEST 2008
282 - added aio_sync.
283 - added aio_pathsync.
284 - fix prototypes of (void) functions.
285
2862.51 Sat Oct 6 16:04:54 CEST 2007
287 - perlio isn't generally threadsafe, so aio_close could not work reliably.
288 aio_close now tries a safe hack that might not be that asynchronous
289 (see the manpage for details).
290 - discard callback return values as to not grow the stack endlessly
291 when poll_cb handles many requests without returning.
292 - minor code cleanups.
293
2942.5 Thu Oct 4 14:49:08 CEST 2007
295 - replaced _fd2fh with faster xs code.
296 - aio_close will now try to do "the right thing" and thus might
297 work sensibly for the very first time.
298
2992.41 Mon Sep 24 21:28:21 CEST 2007
300 - after fork, invest some work to make sure that the poll_fileno
301 stays stable (by dup2'ing the new fd over the old one), to make
302 it easier for programs/libs that don't control their forking
303 behaviour and cannot recreate their watchers.
304
3052.4 Sun Aug 5 18:44:22 CEST 2007
306 - add aio_truncate, aio_chmod, aio_chown, aio_utime (linux
307 successfully demonstrated that you can block on futimes...).
308 - allow undef as fileoffset for aio_read/write and use read/write(2)
309 internally (useful for sockets or O_APPEND handles).
310 - allow undef for length in aio_write.
311 - negative dataoffsets work as expected now in aio_read/aio_write.
312 - use NV instead of UV for 32 bit perls and file offsets, as NVs
313 have a larger range then.
314 - shared code between BDB and IO::AIO.
315 - aio_busy was completely broken. now fixed.
316 - readahead emulation now returns something.
317 - correctly set errno to ENOSYS on unimplemented functions
318 (should never happen, though).
319 - large changes to make it partially compile and run on win32,
320 but win32 lacks too much functionality, and perl overrides way
321 too many functions with crashing versions.
322
3232.33 Tue Jan 23 23:55:41 CET 2007
324 - fix install path (Andreas J. Koenig).
325
3262.32 Mon Jan 22 16:56:23 CET 2007
327 - added aio_rmtree.
328 - wow, aio_mkdir was missing.
329 - aio_load did return undef on error, not -1.
330 - use prefixexp not prefix in autoconf.pm
331 (suggested by ... rt.cpan.org unreachable).
332 - avoid installing autoconf.pm.
333
3342.31 Sat Jan 6 03:46:02 CET 2007
335 - added aio_load.
336
3372.3 Sat Dec 23 05:48:07 CET 2006
338 - fix off-by-one bug in aio_read, causing memory corruption
339 or crashes.
340
3412.21 Fri Dec 22 05:03:38 CET 2006
342 - minor doc updates.
343 - minor cleanups.
344 - IO::AIO::poll returns request count.
345 - undocumented and unfinished async-signal-reporting.
346
3472.2 Tue Oct 31 00:31:00 CET 2006
348 - minor doc updates.
349 - added aio_readlink.
350 - properly zero-terminate aio_read buffer.
351 - fix aio_read/write with nonzero dataoffset.
352 - reduced size of aio request structure.
353 - better diagnostics when pathnames etc. are not byte-encoded;
354 do not leak request in that case, either.
355
3562.1 Sun Oct 29 02:01:57 CET 2006
357 - INCOMPATIBLE CHANGE: replace IO::AIO::poll_some by
358 IO::AIO::max_poll_reqs and IO::AIO::max_poll_time.
359 - fix a bug in aio_move where it would fail everytime
360 it would have to copy files manually.
361 - doc updates.
362 - start threads only on (very low) demand.
363 - end superfluous threads automatically after 10s idling.
364 - add IO::AIO::max_idle to control this.
365 - some tuning applied to random places.
366 - add aio_mknod.
367
3682.0 Thu Oct 26 18:27:58 CEST 2006
369 - minor incompatibility: max_outstanding semantics have changed.
370 - major rewrite, consider all functionality EXPERIMENTAL.
7 - aio requests can be cancelled. 371 - aio requests can be cancelled.
8 - callbacks can be (re-)set later. 372 - callbacks can be (re-)set later.
9 - aio requests can have choose 9 priorities. 373 - aio requests can choose between 9 priorities.
10 - add aio_group: aio requests can be grouped 374 - add aio_group: aio requests can be grouped
11 into composite requests. 375 into composite requests.
12 - generator interface for groups. 376 - generator interface for groups.
377 - add IO::AIO::poll_some.
13 - major documentation improvements. 378 - major documentation improvements.
14 - very minor bugfixes. 379 - very minor bugfixes.
15 - add aio_nop for dummy requests. 380 - add aio_nop for dummy requests.
16 - add aio_busy mainly for benchmarking and debugging. 381 - add aio_busy mainly for benchmarking and debugging.
17 - deprecated max_outstanding.
18 - use "fast" mutexes on linux. 382 - use "fast" mutexes on linux.
19 - use dynamic (and larger) buffers instead of 383 - use dynamic (and larger) buffers instead of
20 putting them onto the stack. 384 putting them onto the stack.
21 - optimise x86 and amd64 a bit. 385 - optimise x86 and amd64 a bit.
22 - better error checking when ENOMEM. 386 - better error checking when ENOMEM.
23 - hopefully fix mem and dirp leaks on fork. 387 - hopefully fix mem and dirp leaks on fork.
388 - warn about broken perl malloc.
389 - compiles on cygwin (but pread is broken on cygwin
390 which is not detected by autoconf, so you have to
391 edit autoconf/config.h yourself to enable emulation).
24 392
251.8 Sat Jun 24 22:20:44 CEST 2006 3931.8 Sat Jun 24 22:20:44 CEST 2006
26 - add and/or document aio_rename, aio_link, aio_symlink and aio_move. 394 - add and/or document aio_rename, aio_link, aio_symlink and aio_move.
27 395
281.73 Wed Mar 1 22:49:32 CET 2006 3961.73 Wed Mar 1 22:49:32 CET 2006
62 - somebody nagged about C89 compatibility, so this release should 430 - somebody nagged about C89 compatibility, so this release should
63 be C89 compatible, but no guarantees for future ones. 431 be C89 compatible, but no guarantees for future ones.
64 - abort when the configure script fails. 432 - abort when the configure script fails.
65 433
661.4 Wed Aug 17 08:07:27 CEST 2005 4341.4 Wed Aug 17 08:07:27 CEST 2005
67 - forget to recreate the pipe after forking, this could cause 435 - forgot to recreate the pipe after forking, this could cause
68 deadlocks. 436 deadlocks.
69 437
701.3 Wed Aug 17 07:25:54 CEST 2005 4381.3 Wed Aug 17 07:25:54 CEST 2005
71 - properly propagate exceptions from callbacks, instead of silently 439 - properly propagate exceptions from callbacks, instead of silently
72 eating them. 440 eating them.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines