Files
kernel-tenderloin-3.0/include/linux
Eric Dumazet 29b4433d99 net: percpu net_device refcount
We tried very hard to remove all possible dev_hold()/dev_put() pairs in
network stack, using RCU conversions.

There is still an unavoidable device refcount change for every dst we
create/destroy, and this can slow down some workloads (routers or some
app servers, mmap af_packet)

We can switch to a percpu refcount implementation, now dynamic per_cpu
infrastructure is mature. On a 64 cpus machine, this consumes 256 bytes
per device.

On x86, dev_hold(dev) code :

before
        lock    incl 0x280(%ebx)
after:
        movl    0x260(%ebx),%eax
        incl    fs:(%eax)

Stress bench :

(Sending 160.000.000 UDP frames,
IP route cache disabled, dual E5540 @2.53GHz,
32bit kernel, FIB_TRIE)

Before:

real    1m1.662s
user    0m14.373s
sys     12m55.960s

After:

real    0m51.179s
user    0m15.329s
sys     10m15.942s

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-10-12 12:35:25 -07:00
..
2010-08-24 14:57:09 -07:00
2010-08-05 13:26:20 +01:00
2010-08-12 06:38:24 +10:00
2010-06-15 09:56:01 +10:00
2010-05-27 09:12:53 -07:00
2010-09-23 14:33:39 -07:00
2010-08-12 08:43:30 -07:00
2010-08-12 08:43:30 -07:00
2010-08-12 08:43:30 -07:00
2010-06-24 21:30:09 -07:00
2010-08-18 01:09:01 -04:00
2010-09-09 18:57:23 -07:00
2010-08-06 15:36:47 -05:00
2010-08-04 11:00:45 +02:00
2010-08-12 04:14:05 +01:00
2010-09-23 14:33:39 -07:00
2010-08-18 08:35:46 -04:00
2010-07-12 14:41:40 +02:00
2010-05-25 08:07:01 -07:00
2010-07-19 11:54:16 +02:00
2010-08-11 09:23:22 +02:00
2010-08-11 18:21:02 +02:00
2010-06-16 18:08:13 +02:00
2010-06-03 03:21:52 -07:00
2010-09-21 18:04:47 -07:00
2010-08-29 21:57:55 -07:00
2010-08-19 17:16:23 -07:00
2010-09-30 21:16:05 -07:00
2010-08-09 20:45:05 -07:00
2010-06-22 08:07:01 +02:00
2010-06-03 03:21:52 -07:00
2010-08-10 11:49:21 -07:00
2010-08-12 11:27:58 +02:00
2010-09-08 18:16:52 -07:00
2010-09-09 18:57:24 -07:00
2010-06-29 10:07:09 +02:00
2010-08-02 06:39:44 +03:00
2010-08-01 10:47:00 +03:00
2010-07-06 13:45:24 -04:00
2010-06-16 18:03:15 +02:00
2010-08-09 16:48:45 -04:00
2010-07-14 17:14:00 +10:00
2010-06-03 03:21:52 -07:00
2010-09-09 09:05:06 -07:00
2010-08-11 00:29:47 -04:00
2010-06-03 03:21:52 -07:00
2010-07-02 21:59:08 -07:00
2010-10-12 12:35:25 -07:00
2010-07-05 16:14:52 -06:00
2010-07-05 16:14:25 -06:00
2010-07-31 19:53:06 +08:00
2010-08-21 23:40:14 -07:00
2010-07-19 01:58:48 +02:00
2010-07-19 01:58:48 +02:00
2010-08-04 21:53:17 -07:00
2010-09-08 18:16:55 -07:00
2010-08-09 16:47:27 -04:00
2010-05-27 09:12:50 -07:00
2010-05-30 09:02:47 -07:00
2010-10-05 00:29:48 -07:00
2010-07-23 17:08:41 +04:00
2010-06-03 03:21:52 -07:00
2010-09-08 15:04:10 +02:00
2010-05-25 11:41:43 -04:00
2010-09-27 20:24:54 -07:00
2010-08-09 16:48:44 -04:00
2010-09-24 21:27:41 -07:00
2010-08-30 13:23:33 -07:00
2010-08-18 08:35:47 -04:00
2010-08-06 10:37:02 -04:00
2010-08-11 08:59:02 -07:00
2010-06-03 03:21:52 -07:00
2010-09-13 10:26:52 +02:00