Re: Sketch of an idea for handling the "mixed workload" problem

2024-01-23 Thread Demi Marie Obenour
On Mon, Jan 22, 2024 at 11:54:14AM +, George Dunlap wrote: > On Mon, Jan 22, 2024 at 12:31 AM Demi Marie Obenour > wrote: > > > > On Fri, Sep 29, 2023 at 05:42:16PM +0100, George Dunlap wrote: > > > The basic credit2 algorithm goes something like this: > > > > > > 1. All vcpus start with the

Re: Sketch of an idea for handling the "mixed workload" problem

2024-01-22 Thread George Dunlap
On Mon, Jan 22, 2024 at 1:02 PM George Dunlap wrote: > 2. two VMs running kernbench, but not competing for vcpu > 3. four VMs running kernbench, competing for vcpus Sorry, this should be competing for *P*cpus -George

Re: Sketch of an idea for handling the "mixed workload" problem

2024-01-22 Thread George Dunlap
On Mon, Jan 22, 2024 at 12:50 PM Marek Marczykowski-Górecki wrote: > > On Mon, Jan 22, 2024 at 12:25:58PM +, George Dunlap wrote: > > On Mon, Jan 22, 2024 at 12:17 PM Marek Marczykowski-Górecki > > wrote: > > > > > > On Mon, Jan 22, 2024 at 11:54:14AM +, George Dunlap wrote: > > > > The

Re: Sketch of an idea for handling the "mixed workload" problem

2024-01-22 Thread Marek Marczykowski-Górecki
On Mon, Jan 22, 2024 at 12:25:58PM +, George Dunlap wrote: > On Mon, Jan 22, 2024 at 12:17 PM Marek Marczykowski-Górecki > wrote: > > > > On Mon, Jan 22, 2024 at 11:54:14AM +, George Dunlap wrote: > > > The other issue I have with this (and essentially where I got stuck > > > developing

Re: Sketch of an idea for handling the "mixed workload" problem

2024-01-22 Thread George Dunlap
On Mon, Jan 22, 2024 at 12:17 PM Marek Marczykowski-Górecki wrote: > > On Mon, Jan 22, 2024 at 11:54:14AM +, George Dunlap wrote: > > The other issue I have with this (and essentially where I got stuck > > developing credit2 in the first place) is testing: how do you ensure > > that it has

Re: Sketch of an idea for handling the "mixed workload" problem

2024-01-22 Thread Marek Marczykowski-Górecki
On Mon, Jan 22, 2024 at 11:54:14AM +, George Dunlap wrote: > The other issue I have with this (and essentially where I got stuck > developing credit2 in the first place) is testing: how do you ensure > that it has the properties that you expect? Audio is actually quite nice use case at

Re: Sketch of an idea for handling the "mixed workload" problem

2024-01-22 Thread George Dunlap
On Mon, Jan 22, 2024 at 12:31 AM Demi Marie Obenour wrote: > > On Fri, Sep 29, 2023 at 05:42:16PM +0100, George Dunlap wrote: > > The basic credit2 algorithm goes something like this: > > > > 1. All vcpus start with the same number of credits; about 10ms worth > > if everyone has the same weight

Re: Sketch of an idea for handling the "mixed workload" problem

2024-01-21 Thread Demi Marie Obenour
On Fri, Sep 29, 2023 at 05:42:16PM +0100, George Dunlap wrote: > The basic credit2 algorithm goes something like this: > > 1. All vcpus start with the same number of credits; about 10ms worth > if everyone has the same weight > > 2. vcpus burn credits as they consume cpu, based on the relative >

Re: Sketch of an idea for handling the "mixed workload" problem

2024-01-21 Thread Demi Marie Obenour
On Mon, Oct 02, 2023 at 12:20:31PM +0100, George Dunlap wrote: > On Sun, Oct 1, 2023 at 12:28 AM Demi Marie Obenour > wrote: > > > > On Fri, Sep 29, 2023 at 05:42:16PM +0100, George Dunlap wrote: > > > The basic credit2 algorithm goes something like this: > > > > > > 1. All vcpus start with the

Re: Sketch of an idea for handling the "mixed workload" problem

2023-10-02 Thread George Dunlap
On Sun, Oct 1, 2023 at 12:28 AM Demi Marie Obenour wrote: > > On Fri, Sep 29, 2023 at 05:42:16PM +0100, George Dunlap wrote: > > The basic credit2 algorithm goes something like this: > > > > 1. All vcpus start with the same number of credits; about 10ms worth > > if everyone has the same weight >

Re: Sketch of an idea for handling the "mixed workload" problem

2023-09-30 Thread Demi Marie Obenour
On Fri, Sep 29, 2023 at 05:42:16PM +0100, George Dunlap wrote: > The basic credit2 algorithm goes something like this: > > 1. All vcpus start with the same number of credits; about 10ms worth > if everyone has the same weight > 2. vcpus burn credits as they consume cpu, based on the relative >

Sketch of an idea for handling the "mixed workload" problem

2023-09-29 Thread George Dunlap
The basic credit2 algorithm goes something like this: 1. All vcpus start with the same number of credits; about 10ms worth if everyone has the same weight 2. vcpus burn credits as they consume cpu, based on the relative weights: higher weights burn slower, lower weights burn faster 3. At any