Subject: Re: Faster pipes, now with uvm_loan()
To: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
From: Frank van der Linden <fvdl@wasabisystems.com>
List: tech-kern
Date: 04/10/2001 14:16:10
On Mon, Apr 09, 2001 at 10:55:37PM +0200, Hubert Feyrer wrote:
> How do we compare with the new code to other OSs?

See below. We're not quite up to FreeBSD 4.2 (which has approximately
the same code), but close to Linux. For sizes <= 64k that is. I
assume that has to do with the PIPE_SIZE and BIG_PIPE_SIZE values
(BIG_PIPE_SIZE is 64k).

All measurements done using hbench-OS, on a P5-200 with 64M of
memory. I attemped to keep kernel configurations similar, as
far as possible.

NetBSD-current with old pipes:
   4k: 17.880217 (std. 0.104337, 0.58%) [median 17.928850]
   8k: 18.461200 (std. 0.095643, 0.52%) [median 18.494850]
   16k: 18.733467 (std. 0.075237, 0.40%) [median 18.714450]
   32k: 18.694467 (std. 0.165095, 0.88%) [median 18.781650]
   64k: 18.877050 (std. 0.182188, 0.97%) [median 18.835500]
   128k: 18.433917 (std. 0.103718, 0.56%) [median 18.388050]
   256k: 18.187250 (std. 0.070821, 0.39%) [median 18.169700]
   512k: 17.708933 (std. 0.091455, 0.52%) [median 17.744900]
   1m: 18.061000 (std. 0.093400, 0.52%) [median 18.113350]
   2m: 18.350117 (std. 0.150894, 0.82%) [median 18.412750]
   4m: 17.784633 (std. 0.019428, 0.11%) [median 17.794450]
   


NetBSD-current with new pipes:
   4k: 27.693450 (std. 0.346530, 1.25%) [median 27.830200]
   8k: 28.839383 (std. 0.332977, 1.15%) [median 28.849000]
   16k: 36.549867 (std. 0.582216, 1.59%) [median 36.778250]
   32k: 43.904250 (std. 0.525858, 1.20%) [median 44.037950]
   64k: 47.105300 (std. 0.342385, 0.73%) [median 47.021150]
   128k: 25.775183 (std. 0.040270, 0.16%) [median 25.786150]
   256k: 26.191017 (std. 0.040605, 0.16%) [median 26.205800]
   512k: 26.449733 (std. 0.017903, 0.07%) [median 26.455600]
   1m: 26.464950 (std. 0.042331, 0.16%) [median 26.482750]
   2m: 26.571683 (std. 0.006773, 0.03%) [median 26.570550]
   4m: 26.427783 (std. 0.017708, 0.07%) [median 26.427550]
 
 
FreeBSD 4.2 
   4k: 25.458133 (std. 0.438439, 1.72%) [median 25.564400]
   8k: 38.200883 (std. 0.178894, 0.47%) [median 38.243400]
   16k: 43.848833 (std. 0.637475, 1.45%) [median 44.099600]
   32k: 49.064833 (std. 0.376022, 0.77%) [median 49.240100]
   64k: 51.921083 (std. 0.377913, 0.73%) [median 52.017000]
   128k: 51.365850 (std. 0.282010, 0.55%) [median 51.377850]
   256k: 43.763950 (std. 0.341966, 0.78%) [median 43.847800]
   512k: 39.818100 (std. 0.074884, 0.19%) [median 39.827200]
   1m: 38.689533 (std. 0.039276, 0.10%) [median 38.678100]
   2m: 38.478317 (std. 0.043335, 0.11%) [median 38.491850]
   4m: 38.173117 (std. 0.044787, 0.12%) [median 38.181850]
 
 
Linux 2.4.1
   4k: 38.495917 (std. 0.433673, 1.13%) [median 38.488450]
   8k: 37.864717 (std. 0.128809, 0.34%) [median 37.847100]
   16k: 39.632167 (std. 0.298232, 0.75%) [median 39.728950]
   32k: 40.718917 (std. 0.203573, 0.50%) [median 40.796350]
   64k: 39.434050 (std. 0.498159, 1.26%) [median 39.270800]
   128k: 45.588350 (std. 0.129661, 0.28%) [median 45.581900]
   256k: 45.752350 (std. 0.372030, 0.81%) [median 45.880600]
   512k: 45.839000 (std. 0.068368, 0.15%) [median 45.833250]
   1m: 45.754633 (std. 0.066069, 0.14%) [median 45.765850]
   2m: 45.399083 (std. 0.241628, 0.53%) [median 45.443300]
   4m: 43.825450 (std. 0.160520, 0.37%) [median 43.870000]

Solaris 8
   4k: 17.983500 (std. 0.673230, 3.74%) [median 18.168600]
   8k: 20.252417 (std. 0.163393, 0.81%) [median 20.302650]
   16k: 21.066967 (std. 0.049189, 0.23%) [median 21.071400]
   32k: 20.474433 (std. 0.040549, 0.20%) [median 20.479100]
   64k: 20.540867 (std. 0.035038, 0.17%) [median 20.537900]
   128k: 21.082233 (std. 0.059837, 0.28%) [median 21.065900]
   256k: 21.398050 (std. 0.069499, 0.32%) [median 21.390450]
   512k: 19.792333 (std. 0.103589, 0.52%) [median 19.775350]
   1m: 19.701150 (std. 0.065190, 0.33%) [median 19.738950]
   2m: 19.042350 (std. 0.087964, 0.46%) [median 19.090500]
   4m: 18.162017 (std. 0.034807, 0.19%) [median 18.146000]
-- 
Frank van der Linden                           fvdl@wasabisystems.com
======================================================================
Quality NetBSD CDs, Support & Service.   http://www.wasabisystems.com/