On Tue, 19 Sep 2006, Mark Taylor wrote:
> On Tue, 19 Sep 2006, Peter W. Draper wrote:
>
> > > Question is, how big should the buffer be? How long is a piece of
> > > string?
> >
> > Well I make his message 464 characters, so that just sneaks over the
> > current hard limit of 444 (500-56), so not much bigger. 1000 must look
> > about right.
>
> don't make no difference to me, but why not save the same debate in 3
> years time and go for a factor of 10 increase at least? From a position
> of total ignorance about this bit of AMS I'd guess that there's unlikely
> to be resource issues here beyond the actual number of bytes in the
> buffer itself (maybe times a small integer factor); obviously a few
> kilobytes counts as pretty cheap these days.
Hmm, that's a bit brave and I think likely to break too as it exceeds the
maximum size of an interprocess message, which I think is 2036 bytes.
David, looking in msp_par.h there's a definition of MSP_MXMSGSZ of 2036.
That defines the content part of the structure sent between processes, so
I think that is the actual limit, goodness knows how that relates to the
500 byte message limit, but clearly it wouldn't be a good idea to exceed
it. Increasing the 2036 would have performance issues as that is the size
actually sent up and down the wire.
Cheers,
Peter.
|