Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932473AbbD0I5v (ORCPT ); Mon, 27 Apr 2015 04:57:51 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:31375 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932210AbbD0I5t (ORCPT ); Mon, 27 Apr 2015 04:57:49 -0400 X-AuditID: cbfec7f5-f794b6d000001495-c8-553dfa0fa4dc Message-id: <553DFA09.9000605@samsung.com> Date: Mon, 27 Apr 2015 10:57:45 +0200 From: Lukasz Skalski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-version: 1.0 To: Greg Kroah-Hartman , Havoc Pennington Cc: Andy Lutomirski , Linus Torvalds , Andrew Morton , Arnd Bergmann , "Eric W. Biederman" , One Thousand Gnomes , Tom Gundersen , Jiri Kosina , "linux-kernel@vger.kernel.org" , Daniel Mack , David Herrmann , Djalal Harouni Subject: Re: [GIT PULL] kdbus for 4.1-rc1 References: <20150413190350.GA9485@kroah.com> <20150423130548.GA4253@kroah.com> <20150423163616.GA10874@kroah.com> <20150423171640.GA11227@kroah.com> <553A4A2F.5090406@samsung.com> <553A547A.1060505@samsung.com> <20150424192546.GA13543@kroah.com> In-reply-to: <20150424192546.GA13543@kroah.com> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCIsWRmVeSWpSXmKPExsVy+t/xa7r8v2xDDW4s0rSYs34Nm8XfScfY LZr+vmKxmNd6lMXi/7YWdotJU/6yWTQvXs9msXjeXBaL3XMWs1hc3jWHzWL12gZWi4WTN7FY rPy9nc3iUd9bdgc+j/tv/rJ4/P41idFj56y77B5/fvWxeJyY8ZvFY//cNewerSc3sXqs+HWE 3ePiJWWPMwuAjM+b5DymHGpn8di+ezlLAG8Ul01Kak5mWWqRvl0CV8bFn4/ZC1pEKub+u8/a wPiIr4uRg0NCwETizq+6LkZOIFNM4sK99WxdjFwcQgJLGSV+zrnCDOE8Y5S4MXkbC0gVr4CW xJNXa9hBbBYBVYkfj2+xgthsAjoST07eZwIZKioQIXH7MidEuaDEj8n3wFpFBMIkDu/9xgIy k1ngF7PEn/v9TCAJYQFNiZVHVzFCLOtilnj79TNYglNAX2L1t1OsIEOZBfQk7l/UAgkzC8hL bF7zlnkCo8AsJDtmIVTNQlK1gJF5FaNoamlyQXFSeq6RXnFibnFpXrpecn7uJkZI3H3dwbj0 mNUhRgEORiUeXoUZtqFCrIllxZW5hxglOJiVRHh3fAYK8aYkVlalFuXHF5XmpBYfYpTmYFES 5525632IkEB6YklqdmpqQWoRTJaJg1OqgbGGQ2Z60L3pDg8vh364ZjX5wrrEQ0dLFmvMOGfZ t9Ziv+X5Bs321IvRNzc89L3ocHcJv4utWObG8uPpyRV/a+4nvRHL8XhWE544Z+eHpTNVio7t lEzLKK1RU1paq1C48uql36G3nXiaRdZf0JTgWdM0U/H/+rbAZa9sWBjjzz1cc7l37sNFp5Yo sRRnJBpqMRcVJwIAR/jnWLcCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2748 Lines: 66 On 04/24/2015 09:25 PM, Greg Kroah-Hartman wrote: > On Fri, Apr 24, 2015 at 04:34:34PM +0200, Lukasz Skalski wrote: >> On 04/24/2015 04:19 PM, Havoc Pennington wrote: >>> On Fri, Apr 24, 2015 at 9:50 AM, Lukasz Skalski wrote: >>>> - client: http://fpaste.org/215156/ >>>> >>> >>> Cool - it might also be interesting to try this without blocking round >>> trips, i.e. send requests as quickly as you can, and collect replies >>> asynchronously. That's how people ideally use dbus. It should >>> certainly reduce the total benchmark time, but just wondering if this >>> usage increases or decreases the delta between userspace daemon and >>> kdbus. >> >> No problem - I'll prepare also asynchronous version. > > That would be great to see as well. Many thanks for doing this work. As it was proposed by Havoc and Greg I've created simple benchmark for asynchronous calls: - server: http://fpaste.org/215157/ (the same as in the previous test) - client: http://fpaste.org/215724/ (asynchronous version) For asynchronous version of client I had to decrease number of calls to 128 (for synchronous version it was x20000 calls), otherwise we can exceed the maximum number of pending replies per connection. The test results are following: +--------------+--------------------+--------------------+ | | Elapsed time | Elapsed time | | Message size | GLIB WITH NATIVE | GLIB + DBUS-DAEMON | | [bytes] | KDBUS SUPPORT* | | +--------------+--------------------+--------------------+ | | 1) 0.018639 s | 1) 0.029947 s | | 1000 | 2) 0.017045 s | 2) 0.032812 s | | | 3) 0.017490 s | 3) 0.029971 s | | | 4) 0.018001 s | 4) 0.026485 s | +--------------+--------------------+--------------------+ | | 3) 0.019898 s | 3) 0.040914 s | | 10000 | 3) 0.022187 s | 3) 0.033604 s | | | 3) 0.020854 s | 3) 0.037616 s | | | 3) 0.020020 s | 3) 0.033772 s | +--------------+--------------------+--------------------+ *all tests performed without using memfd mechanism. And as I wrote in my previous mail, kdbus transport for GLib is not finished yet and there are still some places for improvements, so please do not treat these test results as final). > > greg k-h > Cheers, -- Lukasz Skalski Samsung R&D Institute Poland Samsung Electronics l.skalski@samsung.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/