Jens Axboe f6762b7ad8 [PATCH] pipe: enable atomic copying of pipe data to/from user space
The pipe ->map() method uses kmap() to virtually map the pages, which
is both slow and has known scalability issues on SMP. This patch enables
atomic copying of pipe pages, by pre-faulting data and using kmap_atomic()
instead.

lmbench bw_pipe and lat_pipe measurements agree this is a Good Thing. Here
are results from that on a UP machine with highmem (1.5GiB of RAM), running
first a UP kernel, SMP kernel, and SMP kernel patched.

Vanilla-UP:
Pipe bandwidth: 1622.28 MB/sec
Pipe bandwidth: 1610.59 MB/sec
Pipe bandwidth: 1608.30 MB/sec
Pipe latency: 7.3275 microseconds
Pipe latency: 7.2995 microseconds
Pipe latency: 7.3097 microseconds

Vanilla-SMP:
Pipe bandwidth: 1382.19 MB/sec
Pipe bandwidth: 1317.27 MB/sec
Pipe bandwidth: 1355.61 MB/sec
Pipe latency: 9.6402 microseconds
Pipe latency: 9.6696 microseconds
Pipe latency: 9.6153 microseconds

Patched-SMP:
Pipe bandwidth: 1578.70 MB/sec
Pipe bandwidth: 1579.95 MB/sec
Pipe bandwidth: 1578.63 MB/sec
Pipe latency: 9.1654 microseconds
Pipe latency: 9.2266 microseconds
Pipe latency: 9.1527 microseconds

Signed-off-by: Jens Axboe <axboe@suse.de>
2006-05-01 20:02:05 +02:00
..
2006-03-31 12:18:48 -08:00
2006-03-24 07:33:20 -08:00
2006-03-28 09:16:05 -08:00
2006-03-23 07:38:09 -08:00
2006-03-27 08:44:59 -08:00
2006-03-27 08:44:59 -08:00
2006-03-31 12:18:54 -08:00
2006-04-02 00:08:05 -05:00
2006-04-11 06:18:35 -07:00
2006-03-26 08:56:56 -08:00
2006-03-27 08:44:51 -08:00
2006-04-02 00:10:28 -05:00
2006-03-26 08:56:56 -08:00
2006-04-27 13:08:56 -07:00
2006-03-23 07:38:12 -08:00
2006-03-23 07:38:12 -08:00
2006-03-27 08:44:52 -08:00
2006-03-22 07:53:57 -08:00
2006-03-27 08:44:48 -08:00
2006-03-23 07:38:13 -08:00
2006-03-23 07:38:14 -08:00
2006-03-23 07:38:14 -08:00
2006-04-11 06:18:39 -07:00
2006-04-19 09:13:53 -07:00
2006-03-27 08:44:48 -08:00
2006-03-25 08:22:51 -08:00
2006-03-25 08:22:53 -08:00
2006-03-27 08:44:51 -08:00
2006-03-23 07:38:12 -08:00
2006-04-02 00:08:05 -05:00
2006-03-28 09:16:05 -08:00
2006-03-26 08:57:03 -08:00
2006-03-31 12:18:56 -08:00
2006-03-23 07:38:11 -08:00
2006-03-26 08:57:00 -08:00
2006-03-23 07:38:14 -08:00
2006-03-28 09:16:05 -08:00
2006-03-23 07:12:57 -05:00