From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX57q-0001CK-HT for qemu-devel@nongnu.org; Wed, 23 May 2012 02:32:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SX57n-0001bR-In for qemu-devel@nongnu.org; Wed, 23 May 2012 02:32:50 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:42371) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX57n-0001bH-AV for qemu-devel@nongnu.org; Wed, 23 May 2012 02:32:47 -0400 Received: by pbbro12 with SMTP id ro12so11307940pbb.4 for ; Tue, 22 May 2012 23:32:45 -0700 (PDT) From: Liu Ping Fan Date: Wed, 23 May 2012 14:32:27 +0800 Message-Id: <1337754751-9018-1-git-send-email-kernelfans@gmail.com> Subject: [Qemu-devel] [RFC] kvm: export host NUMA info to guest's scheduler List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, qemu-devel@nongnu.org Cc: Peter Zijlstra , Ingo Molnar , Avi Kivity , Anthony Liguori Currently, the guest can not know the NUMA info of the vcpu, which will result in performance drawback. For example: Supposing vcpu-a on nodeA, vcpu-b on nodeB, when load balance, the tasks' pull and push between these vcpus will cost more. But unfortunately, currently, the guest is just blind to this. So here is the idea to solve it. Export host numa info through guest's sched domain to its scheduler. So the guest's lb will consider the cost. These patches include: For guest: 0001-sched-add-virt-sched-domain-for-the-guest.patch 0002-sched-add-virt-domain-device-s-driver.patch For host: 0001-kvm-collect-vcpus-numa-info-for-guest-s-scheduler.patch 0001-Qemu-add-virt-sched-domain-device.patch Please give some comments and suggestion. Thanks and regards, pingfan