Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753620AbbHGOka (ORCPT ); Fri, 7 Aug 2015 10:40:30 -0400 Received: from svenfoo.org ([82.94.215.22]:36438 "EHLO mail.zonque.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753323AbbHGOk3 (ORCPT ); Fri, 7 Aug 2015 10:40:29 -0400 Subject: Re: kdbus: to merge or not to merge? To: Andy Lutomirski References: <55C3A403.8020202@zonque.org> 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 From: Daniel Mack X-Enigmail-Draft-Status: N1110 Message-ID: <55C4C35A.4070306@zonque.org> Date: Fri, 7 Aug 2015 16:40:26 +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: 997 Lines: 22 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? 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/