Coalescing pipe allocation
Dag-ErlingSmørgrav
des at des.no
Tue Feb 3 09:01:13 PST 2004
Robert Watson <rwatson at FreeBSD.org> writes:
> Well, I don't know so much about the portability issues, but I can say
> that it seems silly to incur the costs if few applications take advantage
> of the feature. Especially if the cost can be defered until the feature
> is exercised. I have some local patches that defer all pipe buffer
> allocation until a particular direction is first used, but this has some
> potential downsides, including increasing the chances that a lack of
> resources is discovered on first-use, rather than on allocation of the
> pipe (which makes it a lot harder to write robust applications).
This is IMHO a lesser evil than the current behaviour, and there is
always the option of blocking if memory can't be allocated right away.
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-current
mailing list