From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932065AbbAWQQ1 (ORCPT ); Fri, 23 Jan 2015 11:16:27 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:35149 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755788AbbAWQI6 (ORCPT ); Fri, 23 Jan 2015 11:08:58 -0500 Date: Sat, 24 Jan 2015 00:08:54 +0800 From: Greg Kroah-Hartman To: Austin S Hemmelgarn Cc: David Herrmann , "Michael Kerrisk (man-pages)" , Daniel Mack , Arnd Bergmann , "Eric W. Biederman" , One Thousand Gnomes , Tom Gundersen , Jiri Kosina , Andy Lutomirski , Linux API , linux-kernel , Djalal Harouni , Johannes Stezenbach , "Theodore T'so" Subject: Re: [PATCH 01/13] kdbus: add documentation Message-ID: <20150123160854.GA5210@kroah.com> References: <1421435777-25306-1-git-send-email-gregkh@linuxfoundation.org> <1421435777-25306-2-git-send-email-gregkh@linuxfoundation.org> <54BE5DC8.70706@gmail.com> <54BE9D08.7010804@zonque.org> <54BF805B.4000609@gmail.com> <54BFDAAA.50203@zonque.org> <54C0CE8A.5080805@gmail.com> <54C10DDC.9000503@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54C10DDC.9000503@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 22, 2015 at 09:49:00AM -0500, Austin S Hemmelgarn wrote: > While I agree that there should be a way for userspace to get the list of > supported operations, userspace apps will only actually care about that > once, when they begin talking to kdbus, because (ignoring the live kernel > patching that people have been working on recently) the list of supported > operations isn't going to change while the system is running. While a u64 > copy has relatively low overhead, it does have overhead, and that is very > significant when you consider part of the reason some people want kdbus is > for the performance gain. Especially for those automotive applications that > have been mentioned which fire off thousands of messages during start-up, > every little bit of performance is significant. A single u64 in a structure is not going to be measurable at all, processors just copy memory too fast these days for 4 extra bytes to be noticable. So let's make this as easy as possible for userspace, making it simpler logic there, which is much more important than saving theoretical time in the kernel. thanks, greg k-h