Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754027AbbHGPJy (ORCPT ); Fri, 7 Aug 2015 11:09:54 -0400 Received: from mail-lb0-f175.google.com ([209.85.217.175]:35906 "EHLO mail-lb0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753341AbbHGPJw (ORCPT ); Fri, 7 Aug 2015 11:09:52 -0400 MIME-Version: 1.0 In-Reply-To: <55C4C35A.4070306@zonque.org> References: <55C3A403.8020202@zonque.org> <55C4C35A.4070306@zonque.org> From: Andy Lutomirski Date: Fri, 7 Aug 2015 08:09:31 -0700 Message-ID: Subject: Re: kdbus: to merge or not to merge? To: Daniel Mack Cc: David Herrmann , 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 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: 1234 Lines: 26 On Fri, Aug 7, 2015 at 7:40 AM, Daniel Mack wrote: > On 08/06/2015 08:43 PM, Andy Lutomirski wrote: >> Nonetheless, it looks like the slice logic (aside: it looks *way* more >> complicated than necessary -- what's wrong with circular buffers) >> will, under most (but not all!) workloads, concentrate access to a >> smallish fraction of the pool. This is IMO bad, since it means that >> most of the time most of the pool will remain uncommitted. If, at >> some point, something causes the access pattern to change and hit all >> the pages (even just once), suddenly all of the pools get committed, >> and your memory usage blows up. > > That's a general problem with memory overcommitment, and not specific to > kdbus. IOW: You'd have the same problem with a similar logic implemented > in userspace, right? > Sure, except that, if it's in userspace and it starts causing problems, then userspace can fix it without running into kernel ABI stability issues. --Andy -- 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/