Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754054AbbDXNup (ORCPT ); Fri, 24 Apr 2015 09:50:45 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:38022 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752447AbbDXNuo (ORCPT ); Fri, 24 Apr 2015 09:50:44 -0400 X-AuditID: cbfec7f5-f794b6d000001495-84-553a4a33281f Message-id: <553A4A2F.5090406@samsung.com> Date: Fri, 24 Apr 2015 15:50:39 +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 , Andy Lutomirski Cc: 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 , linux-kernel@vger.kernel.org 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> In-reply-to: <20150423171640.GA11227@kroah.com> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNIsWRmVeSWpSXmKPExsVy+t/xy7rGXlahBmsmiFrMWb+GzeLvpGPs Fk1/X7FYzGs9ymLxf1sLu8WkKX/ZLJoXr2ez2D1nMYvF5V1z2CxWr21gtVg4eROLxcrf29ks HvW9ZXfg9bj/5i+Lx+9fkxg9ds66y+7x51cfi8eJGb9ZPPbPXcPu0XpyE6vHil9H2D3OLAAS nzfJeUw51M7isX33cpYAnigum5TUnMyy1CJ9uwSujCPHm1gL5kpWvLjQzdrAOFG4i5GTQ0LA ROLs0aXsELaYxIV769m6GLk4hASWMkr0LdnPDuE8Y5TY8+suK0gVr4CWxModf8E6WARUJS4f vMoMYrMJ6Eg8OXmfqYuRg0NUIELi9mVOiHJBiR+T77GAhEUEYiS2rTUHGcks8J5ZouXnMrAx wgKaEiuPrmKE2PWAUeJe1w02kASngL7ElfNb2UCamQX0JO5f1AIJMwvIS2xe85Z5AqPALCQr ZiFUzUJStYCReRWjaGppckFxUnqukV5xYm5xaV66XnJ+7iZGSJR93cG49JjVIUYBDkYlHt6G S5ahQqyJZcWVuYcYJTiYlUR4/5lbhQrxpiRWVqUW5ccXleakFh9ilOZgURLnnbnrfYiQQHpi SWp2ampBahFMlomDU6qBsV3/1hnFOXmLJqQksU3aeUfENSpKeuvb6WzTP3ul6Sm+WzdlJ5/8 XVZOjltz50t3O709X/d95crMqzp3wuUPLE2MLb6xafGbTqfW2AWv5oY+qfnoliVatiTq+7Z9 urG+Bu93hmXWpv255dE7jVFN3Lim6a+hQ77O46kfKnr8l5QvfF77e1JPgRJLcUaioRZzUXEi AMtfMPyuAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3404 Lines: 75 Hi All, On 04/23/2015 07:16 PM, Greg Kroah-Hartman wrote: > On Thu, Apr 23, 2015 at 09:46:22AM -0700, Andy Lutomirski wrote: >> - There's still an open performance question. Namely: is kdbus performant? > > Yes, I thought that was already answered. Tizen posted some numbers > with a much older version of the code, before David fixed a bunch of > issues that he and you found, and that averaged between 25-50% faster. > Details are in this presentation: > http://download.tizen.org/misc/media/conference2014/slides/tdc2014-kdbus-in-tizen3.pdf > > The Tizen and GENIVI developers are off running numbers with the latest > code, or so they told me through emails, but I don't know when/if that > will ever happen, so I can't promise more than what is already here. > I'm working on kdbus support for GLib ([1],[2]). I saw some questions about kdbus performance, so I've prepared simple benchmark. Because David already has posted some comparison results between kdbus and UDS, I've decided to use my GLib port with native kdbus support (it should be noted, that this port is not finished yet and there are still some places for improvements, thus please do not treat these test results as final). To perform tests I've created two simple apps: - server: http://fpaste.org/215157/ - client: http://fpaste.org/215156/ The first one (server) registers itself on the bus under well-known name ("com.test.app") and waits for calls to its objects and methods. The second one (client) makes calls and records periods of time between moment of preparing of a call to the moment of receiving an answer. The measurement is made by performing 20000 of calls and computing a sum of duration of every call (for two different sizes of message payload: 1000 and 10000 bytes). The client program returns total time of performed calls after successful execution. All tests have been run on VirtualBox with ArchLinux and latest version of systemd and kdbus. The test results are following: +--------------+--------------------+--------------------+ | | Elapsed time | Elapsed time | | Message size | GLIB WITH NATIVE | GLIB + DBUS-DAEMON | | [bytes] | KDBUS SUPPORT* | | +--------------+--------------------+--------------------+ | | 1) 2.874264 s | 1) 4.624631 s | | 1000 | 2) 2.932835 s | 2) 4.669730 s | | | 3) 2.899634 s | 3) 4.747275 s | | | 4) 2.970106 s | 4) 4.725723 s | +--------------+--------------------+--------------------+ | | 3) 3.182379 s | 3) 5.469663 s | | 10000 | 3) 3.334170 s | 3) 5.520757 s | | | 3) 3.353305 s | 3) 5.556374 s | | | 3) 3.367732 s | 3) 5.597758 s | +--------------+--------------------+--------------------+ *all tests performed without using memfd mechanism. I hope it will be useful for someone :) [1] https://github.com/lukasz-skalski/glib [2] https://bugzilla.gnome.org/show_bug.cgi?id=721861 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/