On Mon, Mar 22, 2010 at 01:07:37PM -0500, Christoph Lameter wrote:
AF_UNIX is not SHM today.
The only point is to avoid one copy? (user1 -> kernel -> user2 to user1 -> user2)
Not sure if that is really worth it. Don't you need another copy to the reliability
buffer anyways?
Letting kernel parse a data structure in user defined memory is also
always somewhat tricky.
But in principle AF_INET over localhost should not be that less efficient
than AF_UNIX, so you can probably drop it for now (unless you need special AF_UNIX
features like credentials)
Those could be a problem in kernel memory consumption. One would need
to be very careful to have a good memory management scheme for the socket
in place.
One problem is memory management then. What happens when a process opens 100 of those
sockets and fills them all?
I guess you would still need a suitable global limit like TCP has.
There's just no portable atomic64_t. Ok maybe you can use the socket lock
to synchronize all the counts if they are only per socket.
-Andi
--
ak@linux.intel.com -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html