Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jul 2012 11:27:28 +0200
From:      rudo tomori <rudotx@gmail.com>
To:        soc-status@freebsd.org
Subject:   cpu limits status report
Message-ID:  <CALamsEtEFt-nf9zKit6Gf3AzP_pV0ze-UWYa-a=gi-Th5GmHUw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,
the goal of my gsoc project is to enable the system administrators to
configure %CPU limits using the rctl command. So that they can for
example limit a particular user to 50% cpu time.

Last week I slightly changed the way how I handle processes that
exceed their cpu limits. I changed it because the way I was doing it
wasn't stable and occasionally caused kernel panics or just freeze of
the kernel. Now my implementation looks stable to me. I have also some
benchmarks available that show %cpu distribution during make
buildworld with per-user %cpu limits imposed.

For example here
https://socsvn.freebsd.org/socsvn/soc2012/rudot/benchmarking/hw/buildworld/nolimit/plot.eps
you can see the %cpu distribution when no limits are imposed. You can
see the per-user %cpu distribution when cpu is limited to 80% here
https://socsvn.freebsd.org/socsvn/soc2012/rudot/benchmarking/hw/buildworld/80pct/plot.eps.
Here https://socsvn.freebsd.org/socsvn/soc2012/rudot/benchmarking/hw/buildworld/60pct/plot.eps
the cpu is limited to 60% for the user running make buildworld.

This week, I want to finish support for the ule scheduler.

Here I add some information about the benchmarks:

Every ten seconds, I run the ps command and view all processes of the
user who is running make buildworld. I add up the %cpu percentages and
the sum of all these values is on the x axis in the charts. The y axis
shows number of times the specific sum of %cpu was obtained.

So for example if there is a column 10 units high at 30% in the plot
that means the 30% per-user cpu utilisation has been measured 10
times.

rudo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALamsEtEFt-nf9zKit6Gf3AzP_pV0ze-UWYa-a=gi-Th5GmHUw>