[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [question] Is there a plan to introduce a unified co-sc
From: |
Zhang Haoyu |
Subject: |
Re: [Qemu-devel] [question] Is there a plan to introduce a unified co-scheduling mechanism to CFS ? |
Date: |
Fri, 10 Oct 2014 20:00:46 +0800 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
>> Hi,
>>
>> Is it worthy to introduce a unified co-scheduling mechanism to CFS ?
>> Because multiple cooperating threads or tasks frequently synchronize
with each other,
>> not executing them concurrently would only increase the latency of
synchronization.
>> For example, a thread blocking in spinlock to waiting for another
thread to release the same spinlock
>> might reduce its waiting time by being executed concurrently with
the thread which hold the same spinlock.
>> In virtualization scenario, multiple vcpus (which belong to the same
vm) co-scheduling is more desired
>> when several cooperating threads/task is running in guest.
>>
>> Is there a plane for this work?
>
> Please refer to gang scheduler.
>
Is there a mechanism to dynamically detect which vcpus belong to the
same gang?
Maybe a cooperative degree can be used to decide the threshold of which
vcpus belong to the same gang, just a wild thought.
> Regards,
> Wanpeng Li
>>
>> Thanks,
>> Zhang Haoyu