[Info-vax] Large mailboxes

Marc Van Dyck marc.gr.vandyck at invalid.skynet.be
Sun Nov 29 06:25:32 EST 2020


David Jones submitted this idea :

> The UCB field where the driver tracks the message count is only 16 bits. The
> mailbox driver sources I have, circa 1999, show it doing no boundary checks
> against a 65K limit for pending message count. It does, however, check for
> zero message count in a few places, which could potentially be an issue if
> the counter rolls over at the wrong time. I suppose the authors could imagine
> a case where you'd get 65K messages before running out of buffer quota
> for the mailbox.

OK, that was the information I needed. So internally the count can't go
higher than 64k otherwise I risk screwing things. It's a pity that this
is not clearly stated in the documentation. But ok, for us it will just
be a minor annoyance. We'll just use several mailboxes in parallel
rather than a single big one. Many thanks !

-- 
Marc Van Dyck



More information about the Info-vax mailing list