Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755855AbbHFSOc (ORCPT ); Thu, 6 Aug 2015 14:14:32 -0400 Received: from svenfoo.org ([82.94.215.22]:57353 "EHLO mail.zonque.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755692AbbHFSOa (ORCPT ); Thu, 6 Aug 2015 14:14:30 -0400 From: Daniel Mack Subject: Re: kdbus: to merge or not to merge? To: Andy Lutomirski , David Herrmann References: Cc: Tom Gundersen , "Kalle A. Sandstrom" , Greg KH , Borislav Petkov , One Thousand Gnomes , Havoc Pennington , Djalal Harouni , cee1 , "Eric W. Biederman" , "linux-kernel@vger.kernel.org" , Linus Torvalds X-Enigmail-Draft-Status: N1110 Message-ID: <55C3A403.8020202@zonque.org> Date: Thu, 6 Aug 2015 20:14:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1183 Lines: 31 On 08/06/2015 05:21 PM, Andy Lutomirski wrote: > Maybe gdbus really does use kdbus already, but on > very brief inspection it looked like it didn't at least on my test VM. No, it's not in any released version yet. The patches for that are being worked on though and look promising. > If the client buffers on !EPOLLOUT and has a monster buffer, then > that's the client's problem. > > If every single program has a monster buffer, then it's everyone's > problem, and the size of the problem gets multiplied by the number of > programs. The size of the memory pool of a bus client is chosen by the client itself individually during the HELLO call. It's pretty much the same as if the client allocated the buffer itself, except that the kernel does it on their behalf. Also note that kdbus features a peer-to-peer based quota accounting logic, so a single bus connection can not DOS another one by filling its buffer. Thanks, Daniel -- 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/