RW wrote:
> On Wed, 01 Apr 2009 12:27:22 -0700
> Linda Walsh <sa-u...@tlinx.org> wrote:
>
>
>> 01234567890123456789012345678901234567890123456789012345678901234567890123456789
>> Matt Kettler wrote:
>>
>
>
>>>> How often does the whitelist get sync'd to disk?
>>>>
>>> In the case of the whitelist, it's per-message.
>>>
>> -----
>> *ouch* -- you mean each message writes out an 80MB white-list
>> file? That's alot of I/O per message, no wonder spamd seems to be
>> slowing down...
>>
>
> I think it's fairly safe to assume that the Berkeley DB libraries were
> not written by people who dropped-out in the second week of
> C-programming 101, and never learned any more sophisticated way of
> accessing a database file than reading it in and then writing it out.
>
> http://en.wikipedia.org/wiki/Berkeley_DB
>
> http://en.wikipedia.org/wiki/Mmap
>
>
True, I did not mean to imply the entire file is written per message. I
meant that *a* write occurs on a per-message basis.