Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755069Ab1CWFno (ORCPT ); Wed, 23 Mar 2011 01:43:44 -0400 Received: from mail-yw0-f46.google.com ([209.85.213.46]:46161 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754190Ab1CWFnn (ORCPT ); Wed, 23 Mar 2011 01:43:43 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ZTCwOllpHDAlryG9kRdaSS1rU/TYEYwwFJ7IOwwobNioEDvNK4ows0nqnOSlDZBQwY MWtCV0eEqtVRB5JduUd2cR6FN+GVIzc9/QPgTgckE/qfZb4POdfA532zdMeL4l3maiJG 6+FjceCz19AtbZtL0NDeTWEMDmOd2L80MTpqY= MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 23 Mar 2011 11:13:41 +0530 Message-ID: Subject: Re: Tests for cpusets and cgroup performance measurement From: Jaswinder Singh To: Paul Menage Cc: Linux Kernel Mailing List , Li Zefan , containers@lists.linux-foundation.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1755 Lines: 45 Hello Paul, On Mon, Mar 21, 2011 at 11:03 PM, Paul Menage wrote: > On Mon, Mar 21, 2011 at 3:42 AM, Jaswinder Singh > wrote: >> >> Can you please suggest some simple tests to measure the performance >> enhancement by using cpusets/cgroups. > > The cgroups framework is simply a way of grouping processes together > and allowing subsystems (memory, CPU, disk I/O, etc) to associate > state objects with each group. Generally this is for improving > isolation rather than improving performance - sticking extra machinery > and scheduling in will typically reduce overall throughput, but make > it more practical to share resources safely between multiple groups of > processes. > > Your question is pretty open-ended - what's your ultimate goal? You > should probably be focusing on some particular problem that you're > trying to measure/improve via resource isolation/scheduling. > As per http://www.clusterresources.com/torquedocs21/3.5linuxcpusets.shtml : Under section 3.5.4 Cpuset advantages / disadvantages "Jobs on larger NUMA systems may see a performance boost if jobs can be intelligently assigned to specific CPUs. Jobs may perform better if striped across physical processors, or contained within the fewest number of memory controllers." I am curious and want to try some simple tests so that I can see the performance improvement by using cpusets on my PCs. Can you suggest some tests so that I can study them. Thank you, -- Jaswinder Singh. -- 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/