From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759532AbZJMLkK (ORCPT ); Tue, 13 Oct 2009 07:40:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759512AbZJMLkI (ORCPT ); Tue, 13 Oct 2009 07:40:08 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:37905 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759513AbZJMLkF (ORCPT ); Tue, 13 Oct 2009 07:40:05 -0400 Message-ID: <4AD466E5.4010206@openvz.org> Date: Tue, 13 Oct 2009 15:39:17 +0400 From: Pavel Emelyanov User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: vatsa@in.ibm.com, Bharata B Rao , Balbir Singh CC: linux-kernel@vger.kernel.org, Dhaval Giani , Vaidyanathan Srinivasan , Gautham R Shenoy , Ingo Molnar , Peter Zijlstra , Herbert Poetzl , Avi Kivity , Chris Friesen , Paul Menage , Mike Waychison Subject: Re: [RFC v2 PATCH 0/8] CFS Hard limits - v2 References: <20090930124919.GA19951@in.ibm.com> <4AC35EDD.1080902@openvz.org> <20090930142537.GJ19951@in.ibm.com> <20090930143953.GA2014@in.ibm.com> In-Reply-To: <20090930143953.GA2014@in.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > IMO Pavel's requirement can be met with a hard limit of 25% > > 2 CPU of 1GHz = (1/2 x 4) (1/2 x 2) GHz CPUs > = 1/4 x 4 2GHz CPU > = 25% of (4 2GHz CPU) > > IOW by hard-limiting a container thread to run just 0.5sec every sec on a 2GHz > cpu, it is effectively making progress at the rate of 1GHz? So, any suggestions on this? I'm not against the patches themselves. I'm just trying to tell, that setting a cpulimit with 2 numbers is not a good way to go (at least a clean explanation of how to calculate them should go with the patches). I propose to first collect what *can* be done. I see the following possibilities: 1) two times (as it is now) - I believe this is inconvenient. 2) the amount in percents (like 50%) - this is how it works in OpenVZ and customers are quite happy with it. It's better than two numbers, since you need to specify only one clean number. 3) virtual cpu power in M/GHz - I don't agree with Balbir that this is difficult for administrator. This is better than two numbers and better that the percentage, since the amount of cpu time got by a container will not change after migrating to a more powerful CPU. Thoughts? > - vatsa >