OK, and I guess that if pcore 5 was also provisioned to PID 4, the system call which would provision pcore 5 to PID 3 will fail, right? If yes, is there an API to fetch the current provisioning status? That way I can avoid perf users to have to guess, failure after failure, what the CPUs available are.
On Wed, Dec 2, 2015 at 7:34 AM, Barret Rhoden <[email protected]> wrote: > On 2015-12-02 at 07:30 "'Davide Libenzi' via Akaros" > <[email protected]> wrote: > > It's question day!! 😀 > > Yay! \o/ > > > What if one of those cores is already assigned to another task. Will > > the two time share the overlapping cores, or the system call will > > fail? > > Say pcore 5 is allocated to process 4, and then pcore 5 is provisioned > to another process, say PID 3. If PID 3 has a request for more cores > (i.e., they want more cores than they currently have), then the kernel > scheduler will preempt pcore 5 from PID 4 and allocated pcore 5 to PID > 3. > > -- > You received this message because you are subscribed to the Google Groups > "Akaros" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Akaros" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
