K 10 svn:author V 6 dillon K 8 svn:date V 27 2002-06-22T18:08:04.000000Z K 7 svn:log V 845 MFC 1.90. Fix a major performance issue that was introduced in late 2000. Setting B_CLRBUF for the BALLOC call unexpectedly caused BALLOC to issue a read-before-write for each fs block, resulting in a huge (4x) performance penalty due to extra I/Os and lack of clustering. This workaround avoids the unnecessary read resulting in full write clustering performance to media. It is expected to have major visible effects only on large news systems (e.g. INN cyclic buffers), and databases, especially on hardware RAID systems (10x), and has already been shown to have a huge positive effect on INN. Most other programs use write-append which is already optimal. This patch does not fix the double-memory-copy to the filesystem buffer. That is a more difficult problem and is being worked on as a separate issue. Reviewed by: mckusick, tegge END