RE: [ofa-general] Re: [PATCH RFC] RDMA/CMA: Allocate PS_TCPportsfrom the host TCP port space.
- From: "Felix Marti" <felix@xxxxxxxxxxx>
- Date: Mon, 20 Aug 2007 21:21:18 -0700
-----Original Message-----copy_to_user
From: Patrick Geoffray [mailto:patrick@xxxxxxxx]
Sent: Monday, August 20, 2007 1:34 PM
To: Felix Marti
Cc: Evgeniy Polyakov; David Miller; sean.hefty@xxxxxxxxx;
netdev@xxxxxxxxxxxxxxx; rdreier@xxxxxxxxx;
general@xxxxxxxxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx;
jeff@xxxxxxxxxx
Subject: Re: [ofa-general] Re: [PATCH RFC] RDMA/CMA: Allocate
PS_TCPportsfrom the host TCP port space.
Felix Marti wrote:
Yes, the app will take the cache hits when accessing the data.However,
the fact remains that if there is a copy in the receive path, youthese
require and additional 3x memory BW (which is very significant at
high rates and most likely the bottleneck for most currentsystems)...
and somebody always has to take the cache miss be it the
orfull
the app.
The cache miss is going to cost you half the memory bandwidth of a
copy. If the data is already in cache, then the copy is cheaper.use
However, removing the copy removes the kernel from the picture on the
receive side, so you lose demultiplexing, asynchronism, security,
accounting, flow-control, swapping, etc. If it's ok with you to not
the kernel stack, then why expect to fit in the existinginfrastructure
anyway ?Many of the things you're referring to are moved to the offload adapter
but from an ease of use point of view, it would be great if the user
could still collect stats the same way, i.e. netstat reports the 4-tuple
in use and other network stats. In addition, security features and
packet scheduling could be integrated so that the user configures them
the same way as the network stack.
A
Yes, RDMA support is there... but we could make it better and easierto
What do you need from the kernel for RDMA support beyond HW drivers ?
fast way to pin and translate user memory (ie registration). That isin
pretty much the sandbox that David referred to.
Eventually, it would be useful to be able to track the VM space to
implement a registration cache instead of using ugly hacks in user-
space
to hijack malloc, but this is completely independent from the net
stack.
use. We have a problem today with port sharing and there was aproposal
The port spaces are either totally separate and there is no issue, or
completely identical and you should then run your connection manager
user-space or fix your middlewares.When running on an iWarp device (and hence on top of TCP) I believe that
the port space should shared and i.e. netstat reports the 4-tuple in
use.
by
and not for technical reasons. I believe this email threads shows in
detail how RDMA (a network technology) is treated as *** child
Zero-copy and RDMA are not the same but in the context of thisthe network folks, well at least by one of them.
I don't think it's fair. This thread actually show how pushy some RDMA
folks are about not acknowledging that the current infrastructure is
here for a reason, and about mistaking zero-copy and RDMA.
discussion I referred to RDMA as a superset (zero-copy is implied).
-
This is a similar argument than the TOE discussion, and it was
definitively a good decision to not mess up the Linux stack with TOEs.
Patrick
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/
- References:
- Re: [ofa-general] Re: [PATCH RFC] RDMA/CMA: Allocate PS_TCPportsfrom the host TCP port space.
- From: David Miller
- RE: [ofa-general] Re: [PATCH RFC] RDMA/CMA: Allocate PS_TCPportsfrom the host TCP port space.
- From: Felix Marti
- Re: [ofa-general] Re: [PATCH RFC] RDMA/CMA: Allocate PS_TCPportsfrom the host TCP port space.
- From: Evgeniy Polyakov
- RE: [ofa-general] Re: [PATCH RFC] RDMA/CMA: Allocate PS_TCPportsfrom the host TCP port space.
- From: Felix Marti
- Re: [ofa-general] Re: [PATCH RFC] RDMA/CMA: Allocate PS_TCPportsfrom the host TCP port space.
- From: Patrick Geoffray
- Re: [ofa-general] Re: [PATCH RFC] RDMA/CMA: Allocate PS_TCPportsfrom the host TCP port space.
- Prev by Date: Re: [patch 04/11] Kprobes - declare kprobe_mutex static
- Next by Date: [PATCH][bugzilla #8679] therm_throt.c: Fix section mismatch
- Previous by thread: Re: [ofa-general] Re: [PATCH RFC] RDMA/CMA: Allocate PS_TCPportsfrom the host TCP port space.
- Next by thread: Re: [ofa-general] Re: [PATCH RFC] RDMA/CMA: Allocate PS_TCPportsfrom the host TCP port space.
- Index(es):