Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965536AbbD0WOy (ORCPT ); Mon, 27 Apr 2015 18:14:54 -0400 Received: from mail-ig0-f172.google.com ([209.85.213.172]:38488 "EHLO mail-ig0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965383AbbD0WOu (ORCPT ); Mon, 27 Apr 2015 18:14:50 -0400 MIME-Version: 1.0 In-Reply-To: References: <20150413190350.GA9485@kroah.com> <20150423130548.GA4253@kroah.com> <20150423163616.GA10874@kroah.com> <20150423171640.GA11227@kroah.com> <553A4A2F.5090406@samsung.com> Date: Mon, 27 Apr 2015 15:14:49 -0700 X-Google-Sender-Auth: 1zVrx-YsYIYwFC73zaBd9tGA_Pg Message-ID: Subject: Re: [GIT PULL] kdbus for 4.1-rc1 From: Linus Torvalds To: Andy Lutomirski Cc: Lukasz Skalski , Greg Kroah-Hartman , 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 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1251 Lines: 29 On Mon, Apr 27, 2015 at 3:00 PM, Linus Torvalds wrote: > > IOW, all the people who say that it's about avoiding context switches > are probably just full of shit. It's not about context switches, it's > about bad user-level code. Just to make sure, I did a system-wide profile (so that you can actually see the overhead of context switching better), and that didn't change the picture. The scheduler overhead *might* be 1% or so. So really. The people who talk about how kdbus improves performance are just full of sh*t. Yes, it improves things, but the improvement seems to be 100% "incidental", in that it avoids a few trips down the user-space problems. The real problems seem to be in dbus memory management (suggestion: keep a small per-thread cache of those message allocations) and to a smaller degree in the crazy utf8 validation (why the f*ck does it do that anyway?), with some locking problems thrown in for good measure. Linus -- 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/