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

Comparing IO-AIO/Changes (file contents):
Revision 1.105 by root, Tue Oct 31 00:32:19 2006 UTC vs.
Revision 1.266 by root, Thu Jul 7 22:36:18 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: aio_cptree/mvtree/rmtree 4TODO: aio_cptree/mvtree
5TODO: aio_utime, aio_chmod, aio_chown? should simply stat/open first? 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
13
14TODO: remove fork support, eio_init can be called multiple times maybe
15TODO: "this might change"
16 - (libeio) added realpath.
17 - (libeio) added fallocate.
18 - (libeio) disabling sendfile on darwin unfortunately broke the emulation.
19
203.93 Wed Jun 29 23:44:18 CEST 2011
21 - ECB.H WAS MISSING.
22
233.92 Wed Jun 29 14:45:41 CEST 2011
24 - ecb.h was missing.
25
263.91 Wed Jun 29 13:24:42 CEST 2011
27 - (libeio) work around a Linux (and likely FreeBSD and other
28 kernels) bug where sendfile would not transfer all the requested
29 bytes on large transfers, using a heuristic.
30 - buggy sendfile caused aio_move/copy to sometimes fail for big
31 files (fortunately it checks that the whole file has been
32 transferred...)
33 - use libecb for higher performance and higher portability.
34 - (libeio) disable sendfile on darwin, it's too broken.
35 - disable fork tests on !linux, as only linux supports mixing
36 pthread and fork in perl.
37 - document the fact that fork doesn't work anymore when using
38 this module, on anything !GNU/Linux.
39 - increase timeout in t/04_fork.t, as too many CPAN-tester setups
40 run on a 0.1MHz cpu. Or so.
41
423.9 Fri May 27 02:43:47 CEST 2011
43 - (libeio) fix memory corruption in aio_readdirx for the flags
44 combination READDIR_STAT_ORDER | READDIR_DIRS_FIRST.
45 - add lots of newre POSIX and GNU/Linux-specific open
46 flags.
47
483.8 Sun Mar 27 12:25:33 CEST 2011
49 - use nonstandard but maybe-working-on-bsd fork technique.
50 - support a max_idle value of 0.
51 - support setting of idle timeout value (IO::AIO::idle_timeout).
52
533.72 Fri Feb 11 04:25:38 CET 2011
54 - use _POSIX_MEMLOCK_RANGE to detect mlock/munlock.
55 - aio_mknod always used a dev_t value of 0.
56 - new treescan option: --grep.
57 - add more S_IF macros, and major/minor/makedev "macros".
58
593.71 Thu Dec 30 08:18:46 CET 2010
60 - the numerical result value passed to callbacks did not stringify
61 correctly, due to internal reuse and failure to reset the sv flags.
62 - actually test for posix_[mf]advise, as at least uClibc defines
63 _POSIX_ADVISORY_INFO without actually having any of the required
64 funcitonality. ugh.
65
663.7 Mon Nov 1 23:00:34 CET 2010
67 - implement/add madvise, mmap, munmap, aio_mlockall, munlockall,
68 aio_mlock, munlock, msync and mtouch to @EXPORT_OK.
69 - document the sad state of affairs w.r.t. pthread on many bsds.
70 - do not enable mmap on systems without _POSIX_MAPPED_FILES
71 (openbsd 4.8).
72 - do not leak memory in IO::AIO::mmap when the scalar already
73 had string-data.
74 - add O_RDWR, O_APPEND and O_EXCL symbols and semi-document
75 them.
76 - cache the result IV, for a minor speedup in the common case.
77 - croak when an mmapped-scalar changes location, to detect
78 user-errors better.
79 - fix aio_readlink prototype.
80
813.65 Wed Mar 31 02:45:05 CEST 2010
82 - actually use PATH_MAX instead of NAME_MAX for readlink, as to not
83 cut off long pathnames in aio_readlink (based on patch by
84 Rasmus Andersson).
85 - a double fork partially killed the event pipe (great testcase
86 by dormando). affects IO::AIO, BDB and Async::Interrupt.
87 - suck steve's dick and rename our symbols to avoid colliding
88 with nonstandard identifier spam on the broken os x pseudo-os.
89 affects IO::AIO and BDB.
90
913.6 Mon Jan 11 00:43:39 CET 2010
92 - (libeio) more fixes for the freebsd/apple sendfile - broken by
93 manpage standards, but apparently correct accoridng to actual
94 kernel sources.
95 - add IO::AIO::mmap/munmap support.
96 - add IO::AIO::m(un)lockall support.
97 - clean up manpage.
98
993.5 Thu Jan 7 21:25:04 CET 2010
100 - (liebio) fix freebsd sendfile (Vanilla Hsu).
101 - (libeio) also fix darwin sendfile that suffered from a similar bug.
102 - add aio_statvfs as interface to statvfs/fstatvfs.
103 - work around buggy symlink() on cygwin in the testsuite.
104 - wtf. freebsd-8.0 actually passes the testsuite! I knew
105 they could implement fork and semaphores one day! cheers!
106
1073.4 Sat Jan 2 15:13:04 CET 2010
108 - (libeio) max_poll_time was not properly converted to ticks.
109 - clarify cancel_subs description.
110 - IO::AIO::sendfile did not actually return the return value
111 from the sendfile call.
112 - implement aio_msync, aio_mtouch.
113 - (libeio) tentatively support darwin in sendfile.
114
1153.31 Thu Nov 12 02:14:29 CET 2009
116 - fix result status documentation of aio_copy, aio_move.
117 - speed up object creation considerably by avoiding
118 hash lookups.
119
1203.3 Wed Aug 5 13:52:58 CEST 2009
121 - use common::sense.
122 - use common schmorp.h header.
123 - allow integers (file descriptors) in addition to file handles.
124 - take advantage of linux' eventfd (but it seems slower on smp?).
125 - use poll not select on posix platforms.
126
1273.261 Wed Jul 1 10:11:51 CEST 2009
128 - more 0S X workarounds (patch by Tokuhiro Matsuno).
129
1303.26 Tue Jun 30 09:33:26 CEST 2009
131 - 0S X of course claims to be posix 2008 but lacks posix_fadvise.
132 try to work around this horribly broken OS in a somewhat hackish
133 way. might help other os's too.
134
1353.25 Sat Jun 27 05:18:26 CEST 2009
136 - added IO::AIO::fadvise and IO::AIO::sendfile.
137 - (libeio) replaced quicksort+insertion sort by a tuned radix
138 sort + insertion sort, resulting in comparable runtime (usually
139 faster) to the old version, but without any ill side effects on
140 degenerated (for quicksort) data.
141 - (libeio) correctly sort dirs by inodes if we have perfect type
142 knowledge and DIRS_FIRST is used.
143 - (libeio) internally the wrong DT_* constants were used, but no
144 known system has differing EIO_DT_*/DT_* values, so not an issue.
145 - removed a (harmless) assert that was left over on the code
146 but should not have been.
147 - use more correct types (change IO length from IV to VAL64,
148 which makes a difference on systems without 64 bit perls).
149
1503.23 Sat Jun 13 16:57:58 CEST 2009
151 - fix off-by-one bug in aio_readdir that was introduced in the
152 rushed 3.22 release.
153
1543.22 Sat Jun 13 15:32:40 CEST 2009
155 - speed up readdirx sort algorithm slightly.
156 - bin/treescan was missing from distro tarball.
157
1583.21 Fri Jun 12 18:45:53 CEST 2009
159 - new options --dirs and --files for treescan.
160 - install bin/treescan by default.
161 - (libeio) aio_readdir can now be cancelled while executing.
162 - fix a printf format string for 64 bit systems (could lead
163 to problems on big endian 64 bit systems).
164 - do not use qsort() but our own algorithm: glibc initialises
165 the whole locale and I/O subsystem inside qsort, causing
166 a stack overflow on 32 bit machines. The new sort uses much less
167 stack and is more than twice as fast in typical situations.
168
1693.2 Sun Jun 7 20:30:05 CEST 2009
170 - (libeio) pwrite emulation was even more flawed than intended and did
171 not restore the file offset.
172 - add aio_readdirx, which can return inode and filetype and sort
173 the names in various ways.
174 - unfortunately, utime, chmod, chown on an open file that has just
175 been written can easily block, which caused aio_copy to block the
176 process. no more!
177 - no longer rely on dst path in aio_copy when futime is available.
178
1793.19 Tue Apr 21 22:05:21 CEST 2009
180 - more perl 5.10 workarounds for aio_read and write.
181 - aio_write no longer modifies the sv (if possible).
182 - aio_read now works correctly with magic values.
183
1843.18 Sun Apr 19 21:17:32 CEST 2009
185 - better diagnostics when some aio_* functions get passed an illegal fh.
186 - try to avoid crashes due to incompatible 5.10 API changes. grmbl.
187
1883.17 Thu Nov 20 08:45:36 CET 2008
189 - (libeio) added aio_sync_file_range (untested).
190 - add aio_busy to @IO::AIO::AIO_REQ.
191
1923.16 Wed Oct 22 18:28:01 CEST 2008
193 - use SvREFCNT_inc instead of SvREFCNT_inc_NN in a non-speed critical
194 part to improve portability to perl 5.8 (reported by szymon).
195
1963.15 Mon Oct 13 00:39:55 CEST 2008
197 - automatic removal of feeders was broken.
198 - (libeio) use a more robust method to detect whether a feeder
199 has added something to the group or not.
200
2013.1 Thu Oct 2 13:34:40 CEST 2008
202 - pre-deref the passed callback object, for increased speed
203 and decreased memory usage.
204 - call on_next_submit callback even for aio_group - impact unknown,
205 but seems more correct.
206 - $req->cb now returns the original callback.
207 - (libeio) pass EIO_GROUP/aio_group requests through the queue without
208 requiring a thread switch.
209 - (libeio) status code of aio_futime and aio_utime was always passed 0.
210 - do some other ยต-optimisations.
211
2123.07 Sat Aug 2 16:06:13 CEST 2008
213 - do not include LIBS in autoconf tests.
214
2153.06 Tue Jul 15 12:41:32 CEST 2008
216 - move preadwritelock definition before it's first reference,
217 to make it compile again on broken platforms (they still exist)
218 or badly cofngiured perls (redhat...), reported by Rob Bloodgood.
219
2203.05 Thu Jun 19 23:23:52 CEST 2008
221 - work around perl overriding readdir etc. with thread-unsafe
222 (sic!) versions.
223
2243.04 Wed Jun 18 01:35:38 CEST 2008
225 - (libeio) fix eio_mknod, which confused it's arguments.
226 - (libeio) do not use readdir_r, as Ulrich Drepper pointed out that this
227 is stupid.
228 - (libeio) fix eio__readahead prototype, patch by Jost Krieger.
229 - (libeio) fix a bug that could potentially cause IO::AIO
230 not to get initialised properly.
231
2323.03 Thu May 29 05:33:30 CEST 2008
233 - (libeio) correctly call pthread_attr_destroy ().
234 - (libeio) work around broken bsd headers once more.
235 - reduce shared library size again by not including wrappers.
236 - max_outstanding could cause poll to enter a busy-waiting loop.
237 - document the new IO::AIO::poll_cb result value.
238
2393.02 Mon May 12 02:32:02 CEST 2008
240 - fix a memory leak on aio_readlink.
241 - bring back working fchmod.
242 - nop and busy now set result to 0.
243 - set errno to ENOMEM when allocation fails.
244
2453.01 Sun May 11 03:07:03 CEST 2008
246 - (libeio) make it compile on systems without readahead or readdir_r.
247 - (libeio) improve configure check for readahead availability.
248 - do not try to link against -lrt.
249 - use a separate configure script for IO::AIO (not the libeio one).
250
2513.0 Sun May 11 00:57:14 CEST 2008
252 - added bin/treescan to the distribution.
253 - switched to using libeio.
254 - LOTS OF INCOMPATIBLE CHANGES:
255 - remove signal functionality, it is not worth the effort.
256 - max_outstanding no longer returns the previous number of requests.
257 - poll_cb no longer returns number of requests.
258
2592.62 Sat Apr 26 13:59:33 CEST 2008
260 - port to solaris perls configured for old posix
261 (analysed by Jost Krieger).
262 - keep a reference to the perl filehandle object in aio_close,
263 so it doesn't get closed prematurely, leading to ugly races.
264
2652.61 Wed Apr 16 18:45:02 CEST 2008
266 - fix treescan output duplication and improve output ordering.
267 also display files given on the commandline.
268 - use a different algorithm for aio_close that is faster
269 and probably has even lower chances of blocking.
270 - do our own stack memory management for threads - linux
271 allocates outrageous amounts of VM (not so bad unless you
272 use mlockall...), which severely limits the number of threads
273 on 32-bit arches: stack size is the larger of PTHREAD_STACK_MIN
274 and 4096 * sizeof (long) (usually this is 16..64k).
275
2762.6 Sun Mar 30 08:28:11 CEST 2008
277 - added aio_sync.
278 - added aio_pathsync.
279 - fix prototypes of (void) functions.
280
2812.51 Sat Oct 6 16:04:54 CEST 2007
282 - perlio isn't generally threadsafe, so aio_close could not work reliably.
283 aio_close now tries a safe hack that might not be that asynchronous
284 (see the manpage for details).
285 - discard callback return values as to not grow the stack endlessly
286 when poll_cb handles many requests without returning.
287 - minor code cleanups.
288
2892.5 Thu Oct 4 14:49:08 CEST 2007
290 - replaced _fd2fh with faster xs code.
291 - aio_close will now try to do "the right thing" and thus might
292 work sensibly for the very first time.
293
2942.41 Mon Sep 24 21:28:21 CEST 2007
295 - after fork, invest some work to make sure that the poll_fileno
296 stays stable (by dup2'ing the new fd over the old one), to make
297 it easier for programs/libs that don't control their forking
298 behaviour and cannot recreate their watchers.
299
3002.4 Sun Aug 5 18:44:22 CEST 2007
301 - add aio_truncate, aio_chmod, aio_chown, aio_utime (linux
302 successfully demonstrated that you can block on futimes...).
303 - allow undef as fileoffset for aio_read/write and use read/write(2)
304 internally (useful for sockets or O_APPEND handles).
305 - allow undef for length in aio_write.
306 - negative dataoffsets work as expected now in aio_read/aio_write.
307 - use NV instead of UV for 32 bit perls and file offsets, as NVs
308 have a larger range then.
309 - shared code between BDB and IO::AIO.
310 - aio_busy was completely broken. now fixed.
311 - readahead emulation now returns something.
312 - correctly set errno to ENOSYS on unimplemented functions
313 (should never happen, though).
314 - large changes to make it partially compile and run on win32,
315 but win32 lacks too much functionality, and perl overrides way
316 too many functions with crashing versions.
317
3182.33 Tue Jan 23 23:55:41 CET 2007
319 - fix install path (Andreas J. Koenig).
320
3212.32 Mon Jan 22 16:56:23 CET 2007
322 - added aio_rmtree.
323 - wow, aio_mkdir was missing.
324 - aio_load did return undef on error, not -1.
325 - use prefixexp not prefix in autoconf.pm
326 (suggested by ... rt.cpan.org unreachable).
327 - avoid installing autoconf.pm.
328
3292.31 Sat Jan 6 03:46:02 CET 2007
330 - added aio_load.
331
3322.3 Sat Dec 23 05:48:07 CET 2006
333 - fix off-by-one bug in aio_read, causing memory corruption
334 or crashes.
335
3362.21 Fri Dec 22 05:03:38 CET 2006
337 - minor doc updates.
338 - minor cleanups.
339 - IO::AIO::poll returns request count.
340 - undocumented and unfinished async-signal-reporting.
6 341
72.2 Tue Oct 31 00:31:00 CET 2006 3422.2 Tue Oct 31 00:31:00 CET 2006
8 - minor doc updates. 343 - minor doc updates.
9 - added aio_readlink. 344 - added aio_readlink.
10 - properly zero-terminate aio_read buffer. 345 - properly zero-terminate aio_read buffer.
11 - fix aio_read/write with nonzero dataoffset. 346 - fix aio_read/write with nonzero dataoffset.
12 - reduced size of aio request structure. 347 - reduced size of aio request structure.
13 - better diagnostics when pathnames etc. are unicode-encoded, 348 - better diagnostics when pathnames etc. are not byte-encoded;
14 do not leak request in that case, either. 349 do not leak request in that case, either.
15 350
162.1 Sun Oct 29 02:01:57 CET 2006 3512.1 Sun Oct 29 02:01:57 CET 2006
17 - INCOMPATIBLE CHANGE: replace IO::AIO::poll_some by 352 - INCOMPATIBLE CHANGE: replace IO::AIO::poll_some by
18 IO::AIO::max_poll_reqs and IO::AIO::max_poll_time. 353 IO::AIO::max_poll_reqs and IO::AIO::max_poll_time.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines