Luigi Rizzo
6dba29a285
Two performance-related fixes:
...
1. as reported by Alexander Fiveg, the allocator was reporting
half of the allocated memory. Fix this by exiting from the
loop earlier (not too critical because this code is going
away soon).
2. following a discussion on freebsd-current
http://lists.freebsd.org/pipermail/freebsd-current/2012-January/031144.html
turns out that (re)loading the dmamap was expensive and not optimized.
This operation is in the critical path when doing zero-copy forwarding
between interfaces.
At least on netmap and i386/amd64, the bus_dmamap_load can be
completely bypassed if the map is NULL, so we do it.
The latter change gives an almost 3x improvement in forwarding
performance, from the previous 9.5Mpps at 2.9GHz to the current
line rate (14.2Mpps) at 1.733GHz. (this is for 64+4 byte packets,
in other configurations the PCIe bus is a bottleneck).
2012-01-13 10:21:15 +00:00
..
2011-11-22 21:28:20 +00:00
2011-11-22 21:28:20 +00:00
2011-12-29 16:23:14 +00:00
2011-10-16 21:01:42 +00:00
2011-01-06 21:02:14 +00:00
2011-02-21 09:01:34 +00:00
2011-11-11 19:15:32 +00:00
2011-10-17 19:49:00 +00:00
2011-03-23 13:10:15 +00:00
2012-01-06 00:22:55 +00:00
2011-12-16 00:04:28 +00:00
2011-10-17 19:49:00 +00:00
2011-10-17 19:49:00 +00:00
2011-06-07 06:18:02 +00:00
2011-11-22 21:28:20 +00:00
2012-01-07 09:41:57 +00:00
2011-11-23 21:43:51 +00:00
2011-10-13 20:06:19 +00:00
2012-01-12 00:34:33 +00:00
2012-01-11 00:18:33 +00:00
2011-11-07 15:43:11 +00:00
2011-12-13 18:11:25 +00:00
2012-01-07 09:41:57 +00:00
2011-12-13 20:31:57 +00:00
2011-11-14 18:21:27 +00:00
2012-01-07 09:41:57 +00:00
2011-01-18 15:23:16 +00:00
2011-12-17 10:23:17 +00:00
2011-12-17 10:23:17 +00:00
2012-01-07 09:41:57 +00:00
2011-11-07 15:43:11 +00:00
2011-11-22 21:28:20 +00:00
2011-12-29 17:46:24 +00:00
2011-11-22 21:28:20 +00:00
2011-12-17 15:08:43 +00:00
2011-05-22 20:55:54 +00:00
2012-01-12 00:34:33 +00:00
2011-12-13 14:06:01 +00:00
2011-09-19 10:58:30 +00:00
2011-12-29 17:46:24 +00:00
2011-12-12 12:30:44 +00:00
2011-11-07 15:43:11 +00:00
2011-02-21 09:01:34 +00:00
2011-12-23 01:39:10 +00:00
2011-12-16 02:09:51 +00:00
2011-11-23 20:27:26 +00:00
2011-12-17 15:08:43 +00:00
2011-12-13 14:06:01 +00:00
2011-12-30 02:07:50 +00:00
2012-01-12 17:30:44 +00:00
2011-12-05 18:10:43 +00:00
2011-11-22 21:28:20 +00:00
2011-06-28 08:36:48 +00:00
2012-01-07 09:41:57 +00:00
2011-12-15 06:29:13 +00:00
2012-01-10 20:52:02 +00:00
2012-01-07 09:41:57 +00:00
2011-01-18 21:14:23 +00:00
2011-12-12 21:12:07 +00:00
2011-12-13 14:06:01 +00:00
2011-12-30 04:00:31 +00:00
2012-01-07 09:41:57 +00:00
2012-01-04 04:17:03 +00:00
2011-12-19 19:00:34 +00:00
2011-11-22 21:28:20 +00:00
2011-05-15 19:04:08 +00:00
2011-12-20 03:25:11 +00:00
2011-11-22 21:28:20 +00:00
2011-11-22 21:28:20 +00:00
2011-12-28 23:26:58 +00:00
2011-11-23 21:43:51 +00:00
2011-11-23 21:43:51 +00:00
2011-11-23 21:43:51 +00:00
2012-01-04 07:58:36 +00:00
2011-11-22 21:28:20 +00:00
2012-01-05 16:27:32 +00:00
2011-11-22 21:28:20 +00:00
2012-01-07 09:41:57 +00:00
2010-12-10 22:20:11 +00:00
2012-01-07 09:41:57 +00:00
2011-12-20 02:49:01 +00:00
2011-11-07 06:44:47 +00:00
2011-11-07 15:43:11 +00:00
2011-12-17 10:23:17 +00:00
2011-11-07 06:44:47 +00:00
2011-12-27 14:59:24 +00:00
2011-01-05 23:15:22 +00:00
2011-12-17 10:23:17 +00:00
2012-01-03 09:42:31 +00:00
2012-01-07 09:41:57 +00:00
2012-01-10 19:57:23 +00:00
2011-05-03 19:51:29 +00:00
2011-11-07 15:43:11 +00:00
2011-07-17 08:19:19 +00:00
2011-10-18 08:09:44 +00:00
2011-10-02 23:22:38 +00:00
2011-03-24 08:56:12 +00:00
2012-01-07 09:41:57 +00:00
2011-11-11 22:57:52 +00:00
2011-12-17 10:23:17 +00:00
2011-11-22 21:28:20 +00:00
2011-12-13 00:38:50 +00:00
2011-01-17 22:58:28 +00:00
2011-11-22 21:28:20 +00:00
2010-10-15 14:52:11 +00:00
2011-12-05 21:38:45 +00:00
2011-05-15 13:17:08 +00:00
2011-11-22 21:28:20 +00:00
2011-10-03 20:32:55 +00:00
2011-11-07 15:43:11 +00:00
2011-12-28 22:49:28 +00:00
2011-11-01 18:28:33 +00:00
2012-01-07 09:41:57 +00:00
2011-11-22 21:56:55 +00:00
2011-12-17 10:23:17 +00:00
2012-01-02 12:12:10 +00:00
2012-01-07 09:41:57 +00:00
2012-01-13 10:21:15 +00:00
2012-01-07 09:41:57 +00:00
2011-11-22 21:28:20 +00:00
2011-11-07 06:44:47 +00:00
2012-01-11 15:00:16 +00:00
2012-01-07 09:41:57 +00:00
2011-04-03 11:55:48 +00:00
2011-02-21 09:01:34 +00:00
2011-12-17 15:08:43 +00:00
2011-01-19 00:57:58 +00:00
2011-12-13 14:06:01 +00:00
2011-11-22 21:28:20 +00:00
2011-12-14 12:34:02 +00:00
2011-11-22 21:28:20 +00:00
2010-09-05 20:04:02 +00:00
2011-11-22 21:56:55 +00:00
2011-11-22 21:56:55 +00:00
2012-01-11 21:38:05 +00:00
2011-06-26 18:26:20 +00:00
2011-11-22 21:28:20 +00:00
2012-01-07 09:41:57 +00:00
2011-11-22 21:28:20 +00:00
2011-12-17 10:23:17 +00:00
2012-01-09 23:20:30 +00:00
2011-12-05 15:33:13 +00:00
2011-11-07 15:43:11 +00:00
2012-01-07 09:41:57 +00:00
2011-11-22 21:28:20 +00:00
2011-11-22 21:28:20 +00:00
2011-11-07 15:43:11 +00:00
2011-11-22 21:28:20 +00:00
2011-11-22 21:28:20 +00:00
2012-01-05 18:32:37 +00:00
2011-11-22 21:28:20 +00:00
2011-11-22 21:56:55 +00:00
2011-11-22 21:56:55 +00:00
2011-12-17 15:08:43 +00:00
2012-01-07 09:41:57 +00:00
2012-01-07 09:41:57 +00:00
2011-11-22 21:28:20 +00:00
2011-11-01 16:13:59 +00:00
2012-01-07 09:41:57 +00:00
2012-01-07 09:41:57 +00:00
2011-08-11 12:30:23 +00:00
2012-01-11 21:17:14 +00:00
2011-12-12 18:43:24 +00:00
2011-12-13 14:06:01 +00:00
2011-11-22 21:28:20 +00:00
2012-01-07 09:41:57 +00:00
2011-08-16 20:07:47 +00:00
2011-10-07 08:59:54 +00:00
2011-12-21 12:21:22 +00:00
2011-11-07 06:44:47 +00:00
2011-12-15 05:07:16 +00:00
2012-01-07 09:41:57 +00:00
2012-01-07 09:41:57 +00:00
2011-12-15 06:29:13 +00:00
2011-11-22 21:28:20 +00:00
2012-01-03 20:17:35 +00:00
2011-05-03 19:51:29 +00:00
2011-03-23 13:10:15 +00:00
2012-01-11 17:46:08 +00:00
2011-11-22 21:28:20 +00:00
2012-01-13 07:28:34 +00:00
2011-11-22 21:28:20 +00:00
2011-12-22 15:13:32 +00:00
2011-12-06 06:28:32 +00:00
2011-10-18 08:09:44 +00:00
2011-11-28 19:03:59 +00:00
2011-11-23 05:34:01 +00:00
2012-01-07 09:41:57 +00:00
2012-01-07 09:41:57 +00:00
2011-04-27 16:43:03 +00:00
2012-01-07 09:41:57 +00:00
2011-12-17 10:23:17 +00:00
2011-12-17 10:23:17 +00:00
2012-01-11 17:41:14 +00:00
2011-11-07 15:43:11 +00:00
2012-01-07 09:41:57 +00:00
2011-11-23 20:27:26 +00:00