INN with hyperthreading/SMP
Russ Allbery
rra at stanford.edu
Thu May 13 22:01:54 UTC 2004
Forrest J Cavalier <mibsoft at epix.net> writes:
> The INN file handle/mmap .IDX caching made it impossible for a thread to
> guarantee its cache slot will not be purged by some other thread ariving
> later.
Hm, that doesn't make a lot of sense to me. There's a reference count on
the cache slots and they won't be purged if there are still references to
them. You do have to put a lock around the shared cache, of course.
> I seem to recall also that there was a problem having to manage
> potentially simultaneous inserts into a single newsgroup.
Given the data structures used, you'll have to single-thread through at
least the metadata update.
--
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
Please send questions to the list rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
More information about the inn-workers
mailing list