Score:0

How do CPUShares work across parent and children cgroups?

in flag

Redhat has a great blog post describing CPUShares, but it assumes processes reside in leaf CGroups, and doesn't discuss how CPU time is calculated for processes that reside in branch CGroups.

For example: what is the CPU usage for each of these processes?

  • CGroup A (CPU Shares: 1024)
    • Process 1 (spinning at max CPU)
  • CGroup B (CPU Shares: 512)
    • Process 2 (spinning at max CPU)
    • CGroup C (CPU Shares: 256)
      • Process 3 (spinning at max CPU)
    • CGroup D (CPU Shares: 128)
      • Process 4 (spinning at max CPU)
Process CPU Usage (%)
Process 1 ???
Process 2 ???
Process 3 ???
Process 4 ???

I'd love it if someone could help clarify this for me!

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.