Note: lists.cloudfoundry.org will be down for maintenance on Monday, September 26th, starting at 9AM Pacific Time (4PM Monday September 26, 2022 UTC), for approximately one hour.
CPU weight of application
According to code
, diego apps scale the number of allocated cpu shares linearly with the
amount of memory when allocated memory is > 256MB and < 8192MB, is there a way
to allocate extra cpu to an app that happens to need less memory?
Eric Malm <emalm@...>
Hi, Sam,toggle quoted messageShow quoted text
No, the LRP generated for the CF app will have its CPU weight set
proportionally to its desired memory. Keep in mind that for an app running
on Linux, the CPU weight corresponds to the cpu.shares cgroup, which
enforces a relative amount of CPU usage amongst processes only if there is
contention over CPU. If nothing else is competing for CPU on the VM, your
process can use as much as it is capable of using.
Eric, CF Runtime Diego PM
On Sun, Apr 10, 2016 at 8:19 PM, Sam Dai <sam.dai(a)servicemax.com> wrote: