From owner-p4-projects@FreeBSD.ORG Tue Jul 21 13:25:42 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4CAB51065676; Tue, 21 Jul 2009 13:25:42 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5E9E106564A for ; Tue, 21 Jul 2009 13:25:41 +0000 (UTC) (envelope-from zhaoshuai@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C93A38FC24 for ; Tue, 21 Jul 2009 13:25:41 +0000 (UTC) (envelope-from zhaoshuai@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n6LDPfC3044699 for ; Tue, 21 Jul 2009 13:25:41 GMT (envelope-from zhaoshuai@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n6LDPfki044697 for perforce@freebsd.org; Tue, 21 Jul 2009 13:25:41 GMT (envelope-from zhaoshuai@FreeBSD.org) Date: Tue, 21 Jul 2009 13:25:41 GMT Message-Id: <200907211325.n6LDPfki044697@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to zhaoshuai@FreeBSD.org using -f From: Zhao Shuai To: Perforce Change Reviews Cc: Subject: PERFORCE change 166362 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2009 13:25:43 -0000 http://perforce.freebsd.org/chv.cgi?CH=166362 Change 166362 by zhaoshuai@zhaoshuai on 2009/07/21 13:25:06 add LMbench result Affected files ... .. //depot/projects/soc2009/fifo/fifo_test/README#3 edit Differences ... ==== //depot/projects/soc2009/fifo/fifo_test/README#3 (text+ko) ==== @@ -57,7 +57,7 @@ The test is executed 100 times for all combinations of the following parameters for message size and number of messages transmitted. The - avarage time is caculated and then printed. + avarage time cost is caculated and then printed. - Message size(bytes): 64, 128, 256, 512, 1024, 2048, 4096 - Number of messages : 100, 1000, 5000, 10000, 100000 @@ -91,10 +91,50 @@ From these results, we can see that the new fifo implementation gains little advantage over the old fifo implementation when transfering small amount of data. - e.g. transferring 100*128 bytes of data costs 89 microseconds under the new fifo - code while it costs 96 microseconds under the old fifo code. But when transferring + e.g. handling 100*128 bytes of data costs 89 microseconds under the new fifo code + while it costs 96 microseconds under the old fifo code. But when transferring large amount of data, the new fifo implementation gains significant advantage over - the old fifo implementation. e.g. it takes 1126 microseconds transferring 10000*64 + the old fifo implementation. e.g. it takes 1126 microseconds handling 10000*64 bytes of data under the old fifo implementation, but under the new fifo implementation, it takes 753 microseconds, saving 30% of time. That is to say, the new fifo system increases the throughput by 30% in this case. + + == LMbench == + + There is a FIFO related test in LMBench. It is designed to measure FIFO latency. + I run the test many times, but the result varies from time to time. + + Here are 10 results observed under the new fifo implementation. + + FIFO latency: 12.2243 microseconds + FIFO latency: 12.1555 microseconds + FIFO latency: 16.0318 microseconds + FIFO latency: 16.4396 microseconds + FIFO latency: 14.5265 microseconds + FIFO latency: 15.3577 microseconds + FIFO latency: 7.5029 microseconds + FIFO latency: 12.9248 microseconds + FIFO latency: 13.6932 microseconds + FIFO latency: 11.6913 microseconds + + The following 10 results are observed under the old fifo implementation. + + FIFO latency: 11.8956 microseconds + FIFO latency: 10.2409 microseconds + FIFO latency: 10.8170 microseconds + FIFO latency: 9.4636 microseconds + FIFO latency: 18.8605 microseconds + FIFO latency: 5.7682 microseconds + FIFO latency: 6.9138 microseconds + FIFO latency: 5.6443 microseconds + FIFO latency: 15.9345 microseconds + FIFO latency: 7.4886 microseconds + + It is very strange that the result fluctuates in a large range. Since each value + we get is an avarage value which is caculated after hundreds of internal test, + we could expect that each result have little difference with others. + + I think the testing method adopted by LMbench is not stable, thus those results + are not convincing. + +