linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Tests for cpusets and cgroup performance measurement
@ 2011-03-21 10:42 Jaswinder Singh
  2011-03-21 17:33 ` Paul Menage
  0 siblings, 1 reply; 5+ messages in thread
From: Jaswinder Singh @ 2011-03-21 10:42 UTC (permalink / raw)
  To: Paul Menage, Linux Kernel Mailing List, Li Zefan, containers

Hello,

Can you please suggest some simple tests to measure the performance
enhancement by using cpusets/cgroups.

Thanks,
--
Jaswinder Singh.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Tests for cpusets and cgroup performance measurement
  2011-03-21 10:42 Tests for cpusets and cgroup performance measurement Jaswinder Singh
@ 2011-03-21 17:33 ` Paul Menage
  2011-03-23  5:42   ` Jaswinder Singh
  2011-03-23  5:43   ` Jaswinder Singh
  0 siblings, 2 replies; 5+ messages in thread
From: Paul Menage @ 2011-03-21 17:33 UTC (permalink / raw)
  To: Jaswinder Singh; +Cc: Linux Kernel Mailing List, Li Zefan, containers

On Mon, Mar 21, 2011 at 3:42 AM, Jaswinder Singh
<jaswinderlinux@gmail.com> 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.

Paul

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Tests for cpusets and cgroup performance measurement
  2011-03-21 17:33 ` Paul Menage
@ 2011-03-23  5:42   ` Jaswinder Singh
  2011-03-24 21:16     ` Paul Menage
  2011-03-23  5:43   ` Jaswinder Singh
  1 sibling, 1 reply; 5+ messages in thread
From: Jaswinder Singh @ 2011-03-23  5:42 UTC (permalink / raw)
  To: Paul Menage; +Cc: Linux Kernel Mailing List, Li Zefan, containers

Hello Paul,

On Mon, Mar 21, 2011 at 11:03 PM, Paul Menage <menage@google.com> wrote:
> On Mon, Mar 21, 2011 at 3:42 AM, Jaswinder Singh
> <jaswinderlinux@gmail.com> 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Tests for cpusets and cgroup performance measurement
  2011-03-21 17:33 ` Paul Menage
  2011-03-23  5:42   ` Jaswinder Singh
@ 2011-03-23  5:43   ` Jaswinder Singh
  1 sibling, 0 replies; 5+ messages in thread
From: Jaswinder Singh @ 2011-03-23  5:43 UTC (permalink / raw)
  To: Paul Menage; +Cc: Linux Kernel Mailing List, Li Zefan, containers

Hello Paul,

On Mon, Mar 21, 2011 at 11:03 PM, Paul Menage <menage@google.com> wrote:
> On Mon, Mar 21, 2011 at 3:42 AM, Jaswinder Singh
> <jaswinderlinux@gmail.com> 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Tests for cpusets and cgroup performance measurement
  2011-03-23  5:42   ` Jaswinder Singh
@ 2011-03-24 21:16     ` Paul Menage
  0 siblings, 0 replies; 5+ messages in thread
From: Paul Menage @ 2011-03-24 21:16 UTC (permalink / raw)
  To: Jaswinder Singh; +Cc: Linux Kernel Mailing List, Li Zefan, containers

On Tue, Mar 22, 2011 at 10:42 PM, Jaswinder Singh
<jaswinderlinux@gmail.com> wrote:
> "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.

Not particularly - I've never been involved in optimizing apps on
large NUMA systems. Our uses of NUMA at Google have all involved
faked-NUMA nodes, assigning nodes to jobs to provide crude memory
limits.

I suspect that there aren't very many "simple" tests out there. Google
search for [hpc numa tuning] turns up a few likely pages that might
have pointers to suitable applications.

Paul

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-03-24 21:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-21 10:42 Tests for cpusets and cgroup performance measurement Jaswinder Singh
2011-03-21 17:33 ` Paul Menage
2011-03-23  5:42   ` Jaswinder Singh
2011-03-24 21:16     ` Paul Menage
2011-03-23  5:43   ` Jaswinder Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).