Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp676302imj; Wed, 13 Feb 2019 15:31:06 -0800 (PST) X-Google-Smtp-Source: AHgI3IbsA5EG0NwTdjoJKocgMtkOJWaYiRk9+e3cSK1n8Rn2+7yFnevFnMs8PJG8T1/EuGEFzHQp X-Received: by 2002:aa7:8497:: with SMTP id u23mr729841pfn.253.1550100666780; Wed, 13 Feb 2019 15:31:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550100666; cv=none; d=google.com; s=arc-20160816; b=LtFENGjWNK79wHR3lMAr0UOwUgIvF1CKLrw2wtTwn7Pk04+XhxqWVWf56uwSznRsfO +MGHIlAyMWlclFypJPztbix8VLtcXjkmYE2tBh6/nBhGwREhj52BH32aezK8X+GgfYla 5M+lor+Gh3GuXBUm1IfryhdzpOInuv6ApoonJAEgWrWOEXiHrecNfiAiMKj+Sc1oGeQI iu61uJcXof9jNSnB1+daCN/M8VB4iyrlWI16urHAOATVbEIi3UT1XD3zoQUagongsM8h oSZPjPy9+HdFfKPk8luM83Q3jqsud2fh3bJXwY8f4K9DIUlWyTAi88zrQ4lMGMwXXgPw c3zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=lGQooQA9XEqoQcC6yEJIcYMniezetWxrtoWhQcZOlNk=; b=tvvzO3ngbi6pUJ4nQ9jH7TixD//KJikkvMkbtvc756IPErmkA6D5QOJmu1+O4JCuPN utB7c9Pnk+sbp9uz6DIfe5kBhsTMAlA08tVMkihL86vs+aHjXm7DpdNaN3S+stRgw63J /aHYX13lrAX1BSg00DVACTmKiTbg47gICOwjIN+AjptcrOLwxYRYE8mpAWLbO9v+WtlH t2SsussBcU8GPo0gHdcBvUAVozFbzHMfjDvJt1vupkUGtmFhi0Kv91EMQIK1y6/rENAe z7LbwndC16ELYxOFaZlk7kZE/Jv4W45RhlIdtCwhOULV/ivSthtxHtvEU6Pzg3UCp15I Ncqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5si596223pgr.482.2019.02.13.15.30.50; Wed, 13 Feb 2019 15:31:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404918AbfBMSZL (ORCPT + 99 others); Wed, 13 Feb 2019 13:25:11 -0500 Received: from mga01.intel.com ([192.55.52.88]:2921 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728875AbfBMSZL (ORCPT ); Wed, 13 Feb 2019 13:25:11 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Feb 2019 10:25:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,366,1544515200"; d="scan'208";a="115952785" Received: from schen9-desk.jf.intel.com (HELO [10.54.74.162]) ([10.54.74.162]) by orsmga006.jf.intel.com with ESMTP; 13 Feb 2019 10:25:10 -0800 Subject: Re: Gang scheduling To: Subhra Mazumdar , linux-kernel@vger.kernel.org Cc: Peter Zijlstra References: <44347e72-d595-5c2d-3983-7237526c71c6@oracle.com> <890bd498-93b2-5d9d-8066-21278540727f@oracle.com> From: Tim Chen Openpgp: preference=signencrypt Autocrypt: addr=tim.c.chen@linux.intel.com; prefer-encrypt=mutual; keydata= mQINBE6ONugBEAC1c8laQ2QrezbYFetwrzD0v8rOqanj5X1jkySQr3hm/rqVcDJudcfdSMv0 BNCCjt2dofFxVfRL0G8eQR4qoSgzDGDzoFva3NjTJ/34TlK9MMouLY7X5x3sXdZtrV4zhKGv 3Rt2osfARdH3QDoTUHujhQxlcPk7cwjTXe4o3aHIFbcIBUmxhqPaz3AMfdCqbhd7uWe9MAZX 7M9vk6PboyO4PgZRAs5lWRoD4ZfROtSViX49KEkO7BDClacVsODITpiaWtZVDxkYUX/D9OxG AkxmqrCxZxxZHDQos1SnS08aKD0QITm/LWQtwx1y0P4GGMXRlIAQE4rK69BDvzSaLB45ppOw AO7kw8aR3eu/sW8p016dx34bUFFTwbILJFvazpvRImdjmZGcTcvRd8QgmhNV5INyGwtfA8sn L4V13aZNZA9eWd+iuB8qZfoFiyAeHNWzLX/Moi8hB7LxFuEGnvbxYByRS83jsxjH2Bd49bTi XOsAY/YyGj6gl8KkjSbKOkj0IRy28nLisFdGBvgeQrvaLaA06VexptmrLjp1Qtyesw6zIJeP oHUImJltjPjFvyfkuIPfVIB87kukpB78bhSRA5mC365LsLRl+nrX7SauEo8b7MX0qbW9pg0f wsiyCCK0ioTTm4IWL2wiDB7PeiJSsViBORNKoxA093B42BWFJQARAQABtDRUaW0gQ2hlbiAo d29yayByZWxhdGVkKSA8dGltLmMuY2hlbkBsaW51eC5pbnRlbC5jb20+iQI+BBMBAgAoAhsD BgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAUCXFIuxAUJEYZe0wAKCRCiZ7WKota4STH3EACW 1jBRzdzEd5QeTQWrTtB0Dxs5cC8/P7gEYlYQCr3Dod8fG7UcPbY7wlZXc3vr7+A47/bSTVc0 DhUA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fVsqS1TJrnengBgbPgesYO5eY0Tm3+0pa07EkONsxnzyWJDn4fh/eA6IEUo2JrOrex O6cRBNv9dwrUfJbMgzFeKdoyq/Zwe9QmdStkFpoh9036iWsj6Nt58NhXP8WDHOfBg9o86z9O VMZMC2Q0r6pGm7L0yHmPiixrxWdW0dGKvTHu/DH/ORUrjBYYeMsCc4jWoUt4Xq49LX98KDGN dhkZDGwKnAUAEQEAAYkCJQQYAQIADwIbDAUCXFIulQUJEYZenwAKCRCiZ7WKota4SYqUEACj P/GMnWbaG6s4TPM5Dg6lkiSjFLWWJi74m34I19vaX2CAJDxPXoTU6ya8KwNgXU4yhVq7TMId keQGTIw/fnCv3RLNRcTAapLarxwDPRzzq2snkZKIeNh+WcwilFjTpTRASRMRy9ehKYMq6Zh7 PXXULzxblhF60dsvi7CuRsyiYprJg0h2iZVJbCIjhumCrsLnZ531SbZpnWz6OJM9Y16+HILp iZ77miSE87+xNa5Ye1W1ASRNnTd9ftWoTgLezi0/MeZVQ4Qz2Shk0MIOu56UxBb0asIaOgRj B5RGfDpbHfjy3Ja5WBDWgUQGgLd2b5B6MVruiFjpYK5WwDGPsj0nAOoENByJ+Oa6vvP2Olkl gQzSV2zm9vjgWeWx9H+X0eq40U+ounxTLJYNoJLK3jSkguwdXOfL2/Bvj2IyU35EOC5sgO6h VRt3kA/JPvZK+6MDxXmm6R8OyohR8uM/9NCb9aDw/DnLEWcFPHfzzFFn0idp7zD5SNgAXHzV PFY6UGIm86OuPZuSG31R0AU5zvcmWCeIvhxl5ZNfmZtv5h8TgmfGAgF4PSD0x/Bq4qobcfaL ugWG5FwiybPzu2H9ZLGoaRwRmCnzblJG0pRzNaC/F+0hNf63F1iSXzIlncHZ3By15bnt5QDk l50q2K/r651xphs7CGEdKi1nU0YJVbQxJQ== Message-ID: <70d78b14-53a6-4523-856b-e67139a55a58@linux.intel.com> Date: Wed, 13 Feb 2019 10:25:09 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <890bd498-93b2-5d9d-8066-21278540727f@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/12/19 6:57 PM, Subhra Mazumdar wrote: > Hi Tim, > > On 10/12/18 11:01 AM, Tim Chen wrote: >> On 10/10/2018 05:09 PM, Subhra Mazumdar wrote: >>> Hi, >>> >>> I was following the Coscheduling patch discussion on lkml and Peter mentioned he had a patch series. I found the following on github. >>> >>> https://github.com/pdxChen/gang/commits/sched_1.23-loadbal >>> >>> I would like to test this with KVMs. Are the commits from 38d5acb to f019876 sufficient? Also is there any documentaion on how to use it (any knobs I need to turn on for gang scheduling to happen?) or is it enabled by default for KVMs? >>> >>> Thanks, >>> Subhra >>> >> I would suggest you try >> https://github.com/pdxChen/gang/tree/sched_1.23-base >> without the load balancing part of gang scheduling. >> It is enabled by default for KVMs. > I applied the following 3 patches on 4.19 and tried to install a KVM (with > virt-install). But the kernel hangs with following error: > > kernel:watchdog: BUG: soft lockup - CPU#21 stuck for 23s! [kworker/21:1:573] > > kvm,sched: Track VCPU threads > x86/kvm,sched: Add fast path for reschedule interrupt > sched: Optimize scheduler_ipi() > > The track VCPU patch seems to be the culprit. > > Thanks, > Subhra Thanks for giving it a try. Peter is working on a new version. So I'll not try to debug this patchset for now. Tim