Re: Add PGM protocol support to the IP stack

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Monday, March 22, 2010 - 11:53 am

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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Add PGM protocol support to the IP stack, Christoph Lameter, (Thu Mar 18, 10:58 am)
Re: Add PGM protocol support to the IP stack, Christoph Lameter, (Thu Mar 18, 2:58 pm)
Re: Add PGM protocol support to the IP stack, Andi Kleen, (Fri Mar 19, 10:18 am)
Re: Add PGM protocol support to the IP stack, David Miller, (Fri Mar 19, 2:53 pm)
Re: Add PGM protocol support to the IP stack, H. Peter Anvin, (Fri Mar 19, 3:26 pm)
Re: Add PGM protocol support to the IP stack, Christoph Lameter, (Mon Mar 22, 7:20 am)
Re: Add PGM protocol support to the IP stack, Christoph Lameter, (Mon Mar 22, 7:24 am)
Re: Add PGM protocol support to the IP stack, Andi Kleen, (Mon Mar 22, 9:36 am)
Re: Add PGM protocol support to the IP stack, Christoph Lameter, (Mon Mar 22, 9:51 am)
Re: Add PGM protocol support to the IP stack, Andi Kleen, (Mon Mar 22, 10:43 am)
Re: Add PGM protocol support to the IP stack, Christoph Lameter, (Mon Mar 22, 11:07 am)
Re: Add PGM protocol support to the IP stack, Andi Kleen, (Mon Mar 22, 11:53 am)
Re: Add PGM protocol support to the IP stack, Christoph Lameter, (Mon Mar 22, 12:32 pm)
Re: Add PGM protocol support to the IP stack, Christoph Lameter, (Fri Mar 26, 10:33 am)
Re: Add PGM protocol support to the IP stack, Andi Kleen, (Sat Mar 27, 6:11 am)
Re: Add PGM protocol support to the IP stack, Martin Sustrik, (Sat Mar 27, 9:54 am)
Re: Add PGM protocol support to the IP stack, Christoph Lameter, (Mon Mar 29, 7:50 am)
Re: Add PGM protocol support to the IP stack, Christoph Lameter, (Mon Mar 29, 8:00 am)
Re: Add PGM protocol support to the IP stack, Andi Kleen, (Mon Mar 29, 2:43 pm)
Re: Add PGM protocol support to the IP stack, H. Peter Anvin, (Mon Mar 29, 4:01 pm)
Re: Add PGM protocol support to the IP stack, Christoph Lameter, (Tue Mar 30, 11:12 am)