All of lore.kernel.org
 help / color / mirror / Atom feed
* RFC: [0/2] Remove netloop by lazy copying in netback
@ 2007-03-20  4:46 Herbert Xu
  2007-03-20  4:50 ` RFC: [1/2] [XEN] gnttab: Add new op unmap_and_replace Herbert Xu
                   ` (3 more replies)
  0 siblings, 4 replies; 63+ messages in thread
From: Herbert Xu @ 2007-03-20  4:46 UTC (permalink / raw)
  To: Keir Fraser, Xen Development Mailing List

Hi Keir:

These two patches remove the need for netloop by performing the
copying in netback and only if it is necessary.  The rationale
is that most packets will be processed without delay allowing
them to be freed without copying at all.  So instead of copying
every packet destined to dom0 we'll only copy those that linger
longer than a specified amount of time (currently 0.5s).

As it is netloop doesn't take care of all delays anyway.  For
instance packets delayed by qdisc or netfilter can hold up
resources without any limits.  Also if bridging isn't used
then traffic to dom0 does not even go through netloop.

Testing shows that these patches do eliminate the copying for
bulk transfers.  In fact, bulk transfer throughput from domU
to dom0 are increased by around 50%.  Even when the copying
path is taken the performance is roughly equal to that of
netloop despite the unoptimised copying path.

The copying is achieved through a new grant table operation.
I've only implemented it for x86.  However, there is a fallback
path for other platforms so they should continue to work.  It
shouldn't be too hard to implement this for ia64/ppc (for someone
with access to them).

In future I intend to exntend this idea to support lazy
copying for dom0 to domU as well which should give us a
complete zero-copy path from one domU to another.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 63+ messages in thread

end of thread, other threads:[~2007-03-29  6:08 UTC | newest]

Thread overview: 63+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-20  4:46 RFC: [0/2] Remove netloop by lazy copying in netback Herbert Xu
2007-03-20  4:50 ` RFC: [1/2] [XEN] gnttab: Add new op unmap_and_replace Herbert Xu
2007-03-20  4:56 ` RFC: [2/2] [NET] back: Add lazy copying Herbert Xu
2007-03-20  7:10 ` RFC: [0/2] Remove netloop by lazy copying in netback Keir Fraser
2007-03-20 10:11   ` Herbert Xu
2007-03-20 10:18     ` Keir Fraser
2007-03-22 10:50       ` Herbert Xu
2007-03-22 15:40         ` Keir Fraser
2007-03-23  3:17           ` Herbert Xu
2007-03-23 10:32             ` Keir Fraser
2007-03-23 11:42               ` Herbert Xu
2007-03-23 11:47                 ` Keir Fraser
2007-03-23 13:24                 ` Ian Pratt
2007-03-23 23:07                   ` Santos, Jose Renato G
2007-03-23 23:29                     ` Ian Pratt
2007-03-26 23:58                       ` Santos, Jose Renato G
2007-03-27 13:15                         ` Ian Pratt
2007-03-25 11:41                 ` Herbert Xu
2007-03-25 12:27                   ` Keir Fraser
2007-03-26  2:19                     ` Herbert Xu
2007-03-26 18:36                       ` Keir Fraser
2007-03-26 21:08                         ` Herbert Xu
2007-03-27  0:33                           ` Keir Fraser
2007-03-27  0:35                             ` Herbert Xu
2007-03-27  0:46                               ` Keir Fraser
2007-03-27  0:45                             ` Keir Fraser
2007-03-27  0:52                               ` Herbert Xu
2007-03-27  1:02                                 ` Keir Fraser
2007-03-27  1:08                                   ` Herbert Xu
2007-03-27  1:17                                     ` Herbert Xu
2007-03-27  3:34                                   ` Isaku Yamahata
2007-03-27  7:36                                     ` Keir Fraser
2007-03-27  7:44                                       ` Herbert Xu
2007-03-27  8:12                                         ` Keir Fraser
2007-03-27  8:15                                           ` Herbert Xu
2007-03-27  8:15                                         ` Isaku Yamahata
2007-03-27  7:51                                       ` Keir Fraser
2007-03-27  7:53                                         ` Herbert Xu
2007-03-27  7:59                                           ` Herbert Xu
2007-03-27  8:10                                             ` Keir Fraser
2007-03-27  8:13                                               ` Herbert Xu
2007-03-27  8:31                                                 ` Keir Fraser
2007-03-27  9:20                                                   ` Herbert Xu
2007-03-27  9:58                                                     ` Keir Fraser
2007-03-27 10:06                                                       ` Herbert Xu
2007-03-27 10:17                                                         ` Keir Fraser
2007-03-27 10:25                                                           ` Herbert Xu
2007-03-27 10:40                                                             ` Keir Fraser
2007-03-27 11:09                                                               ` Herbert Xu
2007-03-27  8:03                                           ` Keir Fraser
2007-03-27  8:22                                           ` Isaku Yamahata
2007-03-27 10:15                                       ` Herbert Xu
2007-03-27 10:19                                         ` Keir Fraser
2007-03-27 11:11                                           ` Herbert Xu
2007-03-27 13:50                                             ` Keir Fraser
2007-03-27 20:46                                               ` Herbert Xu
2007-03-28 13:05                                                 ` Herbert Xu
2007-03-29  6:08                                                   ` Isaku Yamahata
2007-03-27  3:41                       ` Isaku Yamahata
2007-03-27  5:45                         ` Herbert Xu
2007-03-20 10:22 ` Keir Fraser
2007-03-20 10:27   ` Keir Fraser
2007-03-20 11:50     ` David Edmondson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.