linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Cgroups, burst
@ 2017-04-27  9:13 Kamil Kamiński
  0 siblings, 0 replies; only message in thread
From: Kamil Kamiński @ 2017-04-27  9:13 UTC (permalink / raw)
  To: tj-DgEjT+Ai2ygdnm+yROfE0A, lizefan-hv44wF8Li93QT0dZR+AlfA,
	cgroups-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-api-u79uwXL29TY76Z2rM5mHXA, mingo-H+wXaHxf7aLQT0dZR+AlfA

Hey,

Is there an easy way to burst CPU resources with cgroups when needed?
For example I want to restrict 20% of CPU per process and for example
i want to allow process to use 100% of CPU for 30 sec (burst).

I mean i want restrict CPU usage at 20% per process, not per group.
Restrict resources per group I can do this way:

echo 10000 > cpu.cfs.quota_us
echo 50000 > cpu.cfs_period_us

But I want to restrict usage per process, and if there is a
possibility to burst it.

Or maybe is there a function that will indicate when app will consume
all resources? Then I will just switch her PID to another cgroup (that
will have 100% CPU) for 30 seconds and then back to previous cgroup.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-27  9:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-27  9:13 Cgroups, burst Kamil Kamiński

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).