Re: [PATCH 1/2] fs: introduce sendfd() syscall
From: Al Viro
Date: Tue Dec 02 2014 - 22:40:27 EST
On Wed, Dec 03, 2014 at 01:22:33PM +1100, Alex Dubov wrote:
> On a less related note, I hope you will agree that the simpler
> mechanism for this very in-demand feature is long overdue on Linux
> (every man and his dog are passing fds around these days).
... and I'm less than sure that it's a good thing. If nothing else,
once the pieces of your program are passing descriptors around freely,
you have created a barfball that will be impossible to split between
several boxen if you run into scalability issues. Descriptor-passing
is limited to a single system; you *can't* do that between e.g. components
of a cluster. So it's not an unmixed blessing, just as overuse of
shared memory segments, etc. They do have their uses, but that needs
to be carefully considered every time, or you'll create a major headache
a few years down the road.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/