From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751543AbWHYWbj (ORCPT ); Fri, 25 Aug 2006 18:31:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751544AbWHYWbj (ORCPT ); Fri, 25 Aug 2006 18:31:39 -0400 Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:18899 "EHLO lxorguk.ukuu.org.uk") by vger.kernel.org with ESMTP id S1751526AbWHYWbi (ORCPT ); Fri, 25 Aug 2006 18:31:38 -0400 Subject: Re: [ckrm-tech] [RFC][PATCH] UBC: user resource beancounters From: Alan Cox To: sekharan@us.ibm.com Cc: Kyle Moffett , Rik van Riel , ckrm-tech@lists.sourceforge.net, Andi Kleen , Linux Kernel Mailing List , Christoph Hellwig , Andrey Savochkin , devel@openvz.org, rohitseth@google.com, hugh@veritas.com, Ingo Molnar , Kirill Korotaev , Pavel Emelianov In-Reply-To: <1156541845.1196.49.camel@linuxchandra> References: <44E33893.6020700@sw.ru> <1155929992.26155.60.camel@linuxchandra> <44E9B3F5.3010000@sw.ru> <1156196721.6479.67.camel@linuxchandra> <1156211128.11127.37.camel@galaxy.corp.google.com> <1156272902.6479.110.camel@linuxchandra> <1156383881.8324.51.camel@galaxy.corp.google.com> <1156385072.7154.59.camel@linuxchandra> <1156417808.3007.78.camel@localhost.localdomain> <1156463308.19702.40.camel@linuxchandra> <1156530108.1196.7.camel@linuxchandra> <1156538777.3007.258.camel@localhost.localdomain> <1156541845.1196.49.camel@linuxchandra> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 25 Aug 2006 23:51:36 +0100 Message-Id: <1156546297.3007.273.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 (2.6.2-1.fc5.5) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Ar Gwe, 2006-08-25 am 14:37 -0700, ysgrifennodd Chandra Seetharaman: > /* resources statistics and settings */ > struct ubparm ub_parms[UB_RESOURCES]; > }; > > ub_parms of _all_ controllers are held in this data structure. > > So, keeping the beancounter data structure inside _a_ controller > specific data structure doesn't sound right to me, as other controllers > might also have the same need ?! > > Controller _owns_ only ub_parms[controller_id], not the whole > user_beancounter, right ? Right now I understand you So you need struct controller *ub_controller[UB_RESOURCES]; ? Alan