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

Comparing IO-AIO/Changes (file contents):
Revision 1.41 by root, Thu Aug 18 16:32:10 2005 UTC vs.
Revision 1.294 by root, Mon May 28 17:01:26 2012 UTC

1Revision history for IO::AIO 1Revision history for IO::AIO
2 2
31.5 3TODO: aio_cptree/mvtree
4TODO: reduce condvar fairness: schedule hot-cache-threads first?
5TODO: vmsplice? (http://kerneltrap.org/node/6505 http://lwn.net/Articles/178199/)
6TODO: aio_fcntl, at least for file-locking
7TODO: aio_mincore?
8TODO: getxattr etc.?
9TODO: F_DUPFD_CLOEXEC
10TODO: emulation for splice?
11
12 - make fh argument of IO::AIO::mmap optional, also add mmap/munmap
13 to quick overview.
14
154.15 Tue Apr 10 06:59:00 CEST 2012
16 - always include linux/types.h for fiemap, for compatibility to
17 ancient systems (Paul Howarth).
18 - experimental support for IO::AIO::splice and ::tee (no aio_...).
19 - provide SEEK_HOLE and SEEK_DATA, if available.
20 - work around (again!) an immensely stupid bug in RHEL, defining
21 autoconf macros in linux system headers (analysed by Paul Howarth).
22
234.14 Sat Apr 7 02:45:18 CEST 2012
24 - fix stat structure usage on windows, which caused bogus stat results.
25 - (libeio) make readahead emulation behave more like actual readahead by never failing.
26 - new request aio_seek.
27 - new request aio_fiemap.
28 - autogenerate the #ifdef/#define 0 blocks for symbols we export.
29
304.12 Fri Dec 30 08:51:25 CET 2011
31 - realpath would return a random value if the name was too long,
32 instead of -1.
33 - port to c89.
34
354.11 Mon Oct 10 00:24:11 CEST 2011
36 - libeio didn't compile on !linux (Paul Howarth).
37
384.1 Sun Oct 9 10:24:11 CEST 2011
39 - IO::AIO did access uninitialised memory on unsuccessful stats.
40 - (libeio) added syncfs syscall wrapper.
41 - (libeio) set thread name on linux (ps -L/Hcx, top, gdb).
42 - (libeio) support multiple indepenent working directories.
43 - applied speling corrections by Nicholas Bamber.
44 - tune treescan #threads and #outstanding requests a bit.
45 - reduce the number of file descriptors in use at any one time
46 in treescan, to avoid running out of them (and using too much ram).
47 - take advantage of working directoriy abstractions
48 in aio_scandir and treescan.
49 - reduce compiled size by ~10% by not inlining some key functionality.
50 - added --progress switch to treescan.
51
524.0 Mon Jul 18 05:01:10 CEST 2011
53 - INCOMPATIBLE CHANGE: fork is no longer supported (indeed, it never was),
54 see FORK BEHAVIOUR in manpage for details.
55 - passes testsuite on win32 now and may actually work
56 (activestate 5.10.1 / MSVC6, YMMV).
57 - (libeio) fix a deadlock where a wakeup signal could be missed when
58 a timeout occured at the same time.
59 - (libeio) added realpath.
60 - (libeio) added fallocate.
61 - (libeio) disabling sendfile on darwin unfortunately broke the emulation.
62 - (libeio) do not acquire any locks when forking.
63 - (libeio) use fewer time() syscalls when waiting for new requests.
64
653.93 Wed Jun 29 23:44:18 CEST 2011
66 - ECB.H WAS MISSING.
67
683.92 Wed Jun 29 14:45:41 CEST 2011
69 - ecb.h was missing.
70
713.91 Wed Jun 29 13:24:42 CEST 2011
72 - (libeio) work around a Linux (and likely FreeBSD and other
73 kernels) bug where sendfile would not transfer all the requested
74 bytes on large transfers, using a heuristic.
75 - buggy sendfile caused aio_move/copy to sometimes fail for big
76 files (fortunately it checks that the whole file has been
77 transferred...)
78 - use libecb for higher performance and higher portability.
79 - (libeio) disable sendfile on darwin, it's too broken.
80 - disable fork tests on !linux, as only linux supports mixing
81 pthread and fork in perl.
82 - document the fact that fork doesn't work anymore when using
83 this module, on anything !GNU/Linux.
84 - increase timeout in t/04_fork.t, as too many CPAN-tester setups
85 run on a 0.1MHz cpu. Or so.
86
873.9 Fri May 27 02:43:47 CEST 2011
88 - (libeio) fix memory corruption in aio_readdirx for the flags
89 combination READDIR_STAT_ORDER | READDIR_DIRS_FIRST.
90 - add lots of newer POSIX and GNU/Linux-specific open
91 flags.
92
933.8 Sun Mar 27 12:25:33 CEST 2011
94 - use nonstandard but maybe-working-on-bsd fork technique.
95 - support a max_idle value of 0.
96 - support setting of idle timeout value (IO::AIO::idle_timeout).
97
983.72 Fri Feb 11 04:25:38 CET 2011
99 - use _POSIX_MEMLOCK_RANGE to detect mlock/munlock.
100 - aio_mknod always used a dev_t value of 0.
101 - new treescan option: --grep.
102 - add more S_IF macros, and major/minor/makedev "macros".
103
1043.71 Thu Dec 30 08:18:46 CET 2010
105 - the numerical result value passed to callbacks did not stringify
106 correctly, due to internal reuse and failure to reset the sv flags.
107 - actually test for posix_[mf]advise, as at least uClibc defines
108 _POSIX_ADVISORY_INFO without actually having any of the required
109 funcitonality. ugh.
110
1113.7 Mon Nov 1 23:00:34 CET 2010
112 - implement/add madvise, mmap, munmap, aio_mlockall, munlockall,
113 aio_mlock, munlock, msync and mtouch to @EXPORT_OK.
114 - document the sad state of affairs w.r.t. pthread on many bsds.
115 - do not enable mmap on systems without _POSIX_MAPPED_FILES
116 (openbsd 4.8).
117 - do not leak memory in IO::AIO::mmap when the scalar already
118 had string-data.
119 - add O_RDWR, O_APPEND and O_EXCL symbols and semi-document
120 them.
121 - cache the result IV, for a minor speedup in the common case.
122 - croak when an mmapped-scalar changes location, to detect
123 user-errors better.
124 - fix aio_readlink prototype.
125
1263.65 Wed Mar 31 02:45:05 CEST 2010
127 - actually use PATH_MAX instead of NAME_MAX for readlink, as to not
128 cut off long pathnames in aio_readlink (based on patch by
129 Rasmus Andersson).
130 - a double fork partially killed the event pipe (great testcase
131 by dormando). affects IO::AIO, BDB and Async::Interrupt.
132 - suck steve's dick and rename our symbols to avoid colliding
133 with nonstandard identifier spam on the broken os x pseudo-os.
134 affects IO::AIO and BDB.
135
1363.6 Mon Jan 11 00:43:39 CET 2010
137 - (libeio) more fixes for the freebsd/apple sendfile - broken by
138 manpage standards, but apparently correct accoridng to actual
139 kernel sources.
140 - add IO::AIO::mmap/munmap support.
141 - add IO::AIO::m(un)lockall support.
142 - clean up manpage.
143
1443.5 Thu Jan 7 21:25:04 CET 2010
145 - (liebio) fix freebsd sendfile (Vanilla Hsu).
146 - (libeio) also fix darwin sendfile that suffered from a similar bug.
147 - add aio_statvfs as interface to statvfs/fstatvfs.
148 - work around buggy symlink() on cygwin in the testsuite.
149 - wtf. freebsd-8.0 actually passes the testsuite! I knew
150 they could implement fork and semaphores one day! cheers!
151
1523.4 Sat Jan 2 15:13:04 CET 2010
153 - (libeio) max_poll_time was not properly converted to ticks.
154 - clarify cancel_subs description.
155 - IO::AIO::sendfile did not actually return the return value
156 from the sendfile call.
157 - implement aio_msync, aio_mtouch.
158 - (libeio) tentatively support darwin in sendfile.
159
1603.31 Thu Nov 12 02:14:29 CET 2009
161 - fix result status documentation of aio_copy, aio_move.
162 - speed up object creation considerably by avoiding
163 hash lookups.
164
1653.3 Wed Aug 5 13:52:58 CEST 2009
166 - use common::sense.
167 - use common schmorp.h header.
168 - allow integers (file descriptors) in addition to file handles.
169 - take advantage of linux' eventfd (but it seems slower on smp?).
170 - use poll not select on posix platforms.
171
1723.261 Wed Jul 1 10:11:51 CEST 2009
173 - more 0S X workarounds (patch by Tokuhiro Matsuno).
174
1753.26 Tue Jun 30 09:33:26 CEST 2009
176 - 0S X of course claims to be posix 2008 but lacks posix_fadvise.
177 try to work around this horribly broken OS in a somewhat hackish
178 way. might help other os's too.
179
1803.25 Sat Jun 27 05:18:26 CEST 2009
181 - added IO::AIO::fadvise and IO::AIO::sendfile.
182 - (libeio) replaced quicksort+insertion sort by a tuned radix
183 sort + insertion sort, resulting in comparable runtime (usually
184 faster) to the old version, but without any ill side effects on
185 degenerated (for quicksort) data.
186 - (libeio) correctly sort dirs by inodes if we have perfect type
187 knowledge and DIRS_FIRST is used.
188 - (libeio) internally the wrong DT_* constants were used, but no
189 known system has differing EIO_DT_*/DT_* values, so not an issue.
190 - removed a (harmless) assert that was left over on the code
191 but should not have been.
192 - use more correct types (change IO length from IV to VAL64,
193 which makes a difference on systems without 64 bit perls).
194
1953.23 Sat Jun 13 16:57:58 CEST 2009
196 - fix off-by-one bug in aio_readdir that was introduced in the
197 rushed 3.22 release.
198
1993.22 Sat Jun 13 15:32:40 CEST 2009
200 - speed up readdirx sort algorithm slightly.
201 - bin/treescan was missing from distro tarball.
202
2033.21 Fri Jun 12 18:45:53 CEST 2009
204 - new options --dirs and --files for treescan.
205 - install bin/treescan by default.
206 - (libeio) aio_readdir can now be cancelled while executing.
207 - fix a printf format string for 64 bit systems (could lead
208 to problems on big endian 64 bit systems).
209 - do not use qsort() but our own algorithm: glibc initialises
210 the whole locale and I/O subsystem inside qsort, causing
211 a stack overflow on 32 bit machines. The new sort uses much less
212 stack and is more than twice as fast in typical situations.
213
2143.2 Sun Jun 7 20:30:05 CEST 2009
215 - (libeio) pwrite emulation was even more flawed than intended and did
216 not restore the file offset.
217 - add aio_readdirx, which can return inode and filetype and sort
218 the names in various ways.
219 - unfortunately, utime, chmod, chown on an open file that has just
220 been written can easily block, which caused aio_copy to block the
221 process. no more!
222 - no longer rely on dst path in aio_copy when futime is available.
223
2243.19 Tue Apr 21 22:05:21 CEST 2009
225 - more perl 5.10 workarounds for aio_read and write.
226 - aio_write no longer modifies the sv (if possible).
227 - aio_read now works correctly with magic values.
228
2293.18 Sun Apr 19 21:17:32 CEST 2009
230 - better diagnostics when some aio_* functions get passed an illegal fh.
231 - try to avoid crashes due to incompatible 5.10 API changes. grmbl.
232
2333.17 Thu Nov 20 08:45:36 CET 2008
234 - (libeio) added aio_sync_file_range (untested).
235 - add aio_busy to @IO::AIO::AIO_REQ.
236
2373.16 Wed Oct 22 18:28:01 CEST 2008
238 - use SvREFCNT_inc instead of SvREFCNT_inc_NN in a non-speed critical
239 part to improve portability to perl 5.8 (reported by szymon).
240
2413.15 Mon Oct 13 00:39:55 CEST 2008
242 - automatic removal of feeders was broken.
243 - (libeio) use a more robust method to detect whether a feeder
244 has added something to the group or not.
245
2463.1 Thu Oct 2 13:34:40 CEST 2008
247 - pre-deref the passed callback object, for increased speed
248 and decreased memory usage.
249 - call on_next_submit callback even for aio_group - impact unknown,
250 but seems more correct.
251 - $req->cb now returns the original callback.
252 - (libeio) pass EIO_GROUP/aio_group requests through the queue without
253 requiring a thread switch.
254 - (libeio) status code of aio_futime and aio_utime was always passed 0.
255 - do some other ยต-optimisations.
256
2573.07 Sat Aug 2 16:06:13 CEST 2008
258 - do not include LIBS in autoconf tests.
259
2603.06 Tue Jul 15 12:41:32 CEST 2008
261 - move preadwritelock definition before it's first reference,
262 to make it compile again on broken platforms (they still exist)
263 or badly cofngiured perls (redhat...), reported by Rob Bloodgood.
264
2653.05 Thu Jun 19 23:23:52 CEST 2008
266 - work around perl overriding readdir etc. with thread-unsafe
267 (sic!) versions.
268
2693.04 Wed Jun 18 01:35:38 CEST 2008
270 - (libeio) fix eio_mknod, which confused it's arguments.
271 - (libeio) do not use readdir_r, as Ulrich Drepper pointed out that this
272 is stupid.
273 - (libeio) fix eio__readahead prototype, patch by Jost Krieger.
274 - (libeio) fix a bug that could potentially cause IO::AIO
275 not to get initialised properly.
276
2773.03 Thu May 29 05:33:30 CEST 2008
278 - (libeio) correctly call pthread_attr_destroy ().
279 - (libeio) work around broken bsd headers once more.
280 - reduce shared library size again by not including wrappers.
281 - max_outstanding could cause poll to enter a busy-waiting loop.
282 - document the new IO::AIO::poll_cb result value.
283
2843.02 Mon May 12 02:32:02 CEST 2008
285 - fix a memory leak on aio_readlink.
286 - bring back working fchmod.
287 - nop and busy now set result to 0.
288 - set errno to ENOMEM when allocation fails.
289
2903.01 Sun May 11 03:07:03 CEST 2008
291 - (libeio) make it compile on systems without readahead or readdir_r.
292 - (libeio) improve configure check for readahead availability.
293 - do not try to link against -lrt.
294 - use a separate configure script for IO::AIO (not the libeio one).
295
2963.0 Sun May 11 00:57:14 CEST 2008
297 - added bin/treescan to the distribution.
298 - switched to using libeio.
299 - LOTS OF INCOMPATIBLE CHANGES:
300 - remove signal functionality, it is not worth the effort.
301 - max_outstanding no longer returns the previous number of requests.
302 - poll_cb no longer returns number of requests.
303
3042.62 Sat Apr 26 13:59:33 CEST 2008
305 - port to solaris perls configured for old posix
306 (analysed by Jost Krieger).
307 - keep a reference to the perl filehandle object in aio_close,
308 so it doesn't get closed prematurely, leading to ugly races.
309
3102.61 Wed Apr 16 18:45:02 CEST 2008
311 - fix treescan output duplication and improve output ordering.
312 also display files given on the commandline.
313 - use a different algorithm for aio_close that is faster
314 and probably has even lower chances of blocking.
315 - do our own stack memory management for threads - linux
316 allocates outrageous amounts of VM (not so bad unless you
317 use mlockall...), which severely limits the number of threads
318 on 32-bit arches: stack size is the larger of PTHREAD_STACK_MIN
319 and 4096 * sizeof (long) (usually this is 16..64k).
320
3212.6 Sun Mar 30 08:28:11 CEST 2008
322 - added aio_sync.
323 - added aio_pathsync.
324 - fix prototypes of (void) functions.
325
3262.51 Sat Oct 6 16:04:54 CEST 2007
327 - perlio isn't generally threadsafe, so aio_close could not work reliably.
328 aio_close now tries a safe hack that might not be that asynchronous
329 (see the manpage for details).
330 - discard callback return values as to not grow the stack endlessly
331 when poll_cb handles many requests without returning.
332 - minor code cleanups.
333
3342.5 Thu Oct 4 14:49:08 CEST 2007
335 - replaced _fd2fh with faster xs code.
336 - aio_close will now try to do "the right thing" and thus might
337 work sensibly for the very first time.
338
3392.41 Mon Sep 24 21:28:21 CEST 2007
340 - after fork, invest some work to make sure that the poll_fileno
341 stays stable (by dup2'ing the new fd over the old one), to make
342 it easier for programs/libs that don't control their forking
343 behaviour and cannot recreate their watchers.
344
3452.4 Sun Aug 5 18:44:22 CEST 2007
346 - add aio_truncate, aio_chmod, aio_chown, aio_utime (linux
347 successfully demonstrated that you can block on futimes...).
348 - allow undef as fileoffset for aio_read/write and use read/write(2)
349 internally (useful for sockets or O_APPEND handles).
350 - allow undef for length in aio_write.
351 - negative dataoffsets work as expected now in aio_read/aio_write.
352 - use NV instead of UV for 32 bit perls and file offsets, as NVs
353 have a larger range then.
354 - shared code between BDB and IO::AIO.
355 - aio_busy was completely broken. now fixed.
356 - readahead emulation now returns something.
357 - correctly set errno to ENOSYS on unimplemented functions
358 (should never happen, though).
359 - large changes to make it partially compile and run on win32,
360 but win32 lacks too much functionality, and perl overrides way
361 too many functions with crashing versions.
362
3632.33 Tue Jan 23 23:55:41 CET 2007
364 - fix install path (Andreas J. Koenig).
365
3662.32 Mon Jan 22 16:56:23 CET 2007
367 - added aio_rmtree.
368 - wow, aio_mkdir was missing.
369 - aio_load did return undef on error, not -1.
370 - use prefixexp not prefix in autoconf.pm
371 (suggested by ... rt.cpan.org unreachable).
372 - avoid installing autoconf.pm.
373
3742.31 Sat Jan 6 03:46:02 CET 2007
375 - added aio_load.
376
3772.3 Sat Dec 23 05:48:07 CET 2006
378 - fix off-by-one bug in aio_read, causing memory corruption
379 or crashes.
380
3812.21 Fri Dec 22 05:03:38 CET 2006
382 - minor doc updates.
383 - minor cleanups.
384 - IO::AIO::poll returns request count.
385 - undocumented and unfinished async-signal-reporting.
386
3872.2 Tue Oct 31 00:31:00 CET 2006
388 - minor doc updates.
389 - added aio_readlink.
390 - properly zero-terminate aio_read buffer.
391 - fix aio_read/write with nonzero dataoffset.
392 - reduced size of aio request structure.
393 - better diagnostics when pathnames etc. are not byte-encoded;
394 do not leak request in that case, either.
395
3962.1 Sun Oct 29 02:01:57 CET 2006
397 - INCOMPATIBLE CHANGE: replace IO::AIO::poll_some by
398 IO::AIO::max_poll_reqs and IO::AIO::max_poll_time.
399 - fix a bug in aio_move where it would fail everytime
400 it would have to copy files manually.
401 - doc updates.
402 - start threads only on (very low) demand.
403 - end superfluous threads automatically after 10s idling.
404 - add IO::AIO::max_idle to control this.
405 - some tuning applied to random places.
406 - add aio_mknod.
407
4082.0 Thu Oct 26 18:27:58 CEST 2006
409 - minor incompatibility: max_outstanding semantics have changed.
410 - major rewrite, consider all functionality EXPERIMENTAL.
411 - aio requests can be cancelled.
412 - callbacks can be (re-)set later.
413 - aio requests can choose between 9 priorities.
414 - add aio_group: aio requests can be grouped
415 into composite requests.
416 - generator interface for groups.
417 - add IO::AIO::poll_some.
418 - major documentation improvements.
419 - very minor bugfixes.
420 - add aio_nop for dummy requests.
421 - add aio_busy mainly for benchmarking and debugging.
422 - use "fast" mutexes on linux.
423 - use dynamic (and larger) buffers instead of
424 putting them onto the stack.
425 - optimise x86 and amd64 a bit.
426 - better error checking when ENOMEM.
427 - hopefully fix mem and dirp leaks on fork.
428 - warn about broken perl malloc.
429 - compiles on cygwin (but pread is broken on cygwin
430 which is not detected by autoconf, so you have to
431 edit autoconf/config.h yourself to enable emulation).
432
4331.8 Sat Jun 24 22:20:44 CEST 2006
434 - add and/or document aio_rename, aio_link, aio_symlink and aio_move.
435
4361.73 Wed Mar 1 22:49:32 CET 2006
437 - codename "jost"
438 - AIX/Solaris(?) aren't being helpful again, hardcode a value
439 for NAME_MAX and drive with your eyes closed (reported by
440 wcooley@nakedape.cc).
441
4421.72 Thu Feb 2 00:40:44 CET 2006
443 - another minor bug in aio_scandir, again, the callback was called
444 twice when the directory can't be stat'ed.
445
4461.71 Mon Dec 26 20:20:03 CET 2005
447 - grr, another minor bug in aio_scandir, this time resulting
448 in a runtime error.
449
4501.7 Mon Dec 26 19:29:48 CET 2005
451 - aio_scandir errornously called callback twice in some cases.
452 - added AnyEvent example.
453
4541.61 Wed Sep 7 19:40:42 CEST 2005
455 - no longer include $Config{libs}, as distros include too much
456 garbage in there that is not installed on typical systems
457 (for example, debian links perl against -lgdbm and many more
458 libraries despite perl not needing it, slowing down startup and
459 wasting memory).
460
4611.6 Tue Aug 30 17:44:44 CEST 2005
462 - added aio_readdir, aio_scandir.
463 - added aio_sendfile, including sendfile emulation when sendfile
464 isn't available. Linux, FreeBSD and HP-UX might work (sendfilev
465 support is unavailable on my solaris 8 machine, but preliminary
466 code is there. What's lacking is configury stuff and testing...).
467
4681.5 Sat Aug 20 02:32:19 CEST 2005
4 - create the aio threads on demand only. 469 - create the aio threads on demand only (good after forking).
5 - somebody nagged about C89 compatibility, so this release should 470 - somebody nagged about C89 compatibility, so this release should
6 be C89 compatible, but no guarentees for future ones. 471 be C89 compatible, but no guarantees for future ones.
472 - abort when the configure script fails.
7 473
81.4 Wed Aug 17 08:07:27 CEST 2005 4741.4 Wed Aug 17 08:07:27 CEST 2005
9 - forget to recreate the pipe after forking, this could cause 475 - forgot to recreate the pipe after forking, this could cause
10 deadlocks. 476 deadlocks.
11 477
121.3 Wed Aug 17 07:25:54 CEST 2005 4781.3 Wed Aug 17 07:25:54 CEST 2005
13 - properly propagate exceptions from callbacks, instead of silently 479 - properly propagate exceptions from callbacks, instead of silently
14 eating them. 480 eating them.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines