Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2359974imc; Tue, 12 Mar 2019 12:09:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwCkle95xl5Q3HtsjvrkqCrMZMeRX3Lvg9f+z9W0OzcABn/3sPSXGJZ45swjFwmOYqarxJU X-Received: by 2002:a17:902:205:: with SMTP id 5mr37410631plc.336.1552417782921; Tue, 12 Mar 2019 12:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552417782; cv=none; d=google.com; s=arc-20160816; b=qlQoHYXLIykQRx1bkJGo4OFwOMElK39GNzi3SMFD9c6Ib2R9Y8FfJAyYnHYAkwxrPA XU4Bchw4ecw1peQ+E1hOiDbWot88ALqYzkIrTGs9hbBbpGXLYtVzXv3rVCQCO8IJsfJr UGLIKFg0p+FQRhA9aY9FMcb3LEbnc7kP4JeWspa0vj3GB60vnTYjx4gCQQ41n71JzBuu lbDMQ76QPlqZjbK/EtK+DaMEoNvfGi7BHcFvCOoQEwwA2WHKdDKL7M36N1Yw58B5i0a4 ppL6sXbM/BKnssE3B/AhJmFGwtsFVZaEwEDONh7vt+uBe2i6D6CEiGCpCJt0xtB8z0fV X/ZQ== 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=uEAT2G3qFUC9WUHy6JWKqZSMeEsr5HOQ60HQ3eOAhz0=; b=xuxSNsdV9P8umonKg9VhFuQ2DxzAIcY4gxKMMsy9YEp0G1MaeD5lV2T/66J//fx84f Wojamqhzvb3jj96/Smt7yjW1z7i0XFk1ZQ2xoCRHXJ9TZM8wOPByUKxJ+6ktaL5Iv8M8 Zjesi4XJeTLPKKjyH5Q3ZCHJlEqhSAXkzpMSEOc7jU7qAgqJWAPhdU8flyEc0Yfqtnw1 WHchkoR4+RAl4IpW+UtIO6sfFGb/lB5BeO0aiDiPuSC0gLNeH5mW+47iZ1ApVvlZaVM3 T+gIPSi0uckWB/yTaj+7eVdTyhki1r47THrrrv24O7xp+fzdZrGh3I3v2QhlmxI4GZA0 rZEw== 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 y16si8027263pgl.17.2019.03.12.12.09.27; Tue, 12 Mar 2019 12:09:42 -0700 (PDT) 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 S1727111AbfCLTIt (ORCPT + 99 others); Tue, 12 Mar 2019 15:08:49 -0400 Received: from mga02.intel.com ([134.134.136.20]:5364 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726892AbfCLTIt (ORCPT ); Tue, 12 Mar 2019 15:08:49 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2019 12:08:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,471,1544515200"; d="scan'208";a="282047437" Received: from guptapadev.jf.intel.com (HELO guptapadev.amr) ([10.7.198.56]) by orsmga004.jf.intel.com with ESMTP; 12 Mar 2019 12:08:48 -0700 Subject: Re: [RFC][PATCH 00/16] sched: Core scheduling To: Peter Zijlstra Cc: Aubrey Li , Mel Gorman , Ingo Molnar , Thomas Gleixner , Paul Turner , Tim Chen , Linux List Kernel Mailing , Linus Torvalds , Fr?d?ric Weisbecker , Kees Cook , Greg Kerr , Subhra Mazumdar References: <20190218165620.383905466@infradead.org> <20190222124544.GY9565@techsingularity.net> <14a9adf7-9b50-1dfa-0c35-d04e976081c2@oracle.com> <19d5d492-a4c1-b3c8-cae4-da2fdfcb872b@oracle.com> From: Pawan Gupta Openpgp: preference=signencrypt Autocrypt: addr=pawan.kumar.gupta@linux.intel.com; keydata= mQINBFxSKbgBEACf6qEkqjW8WmIcRWUirY2tTzDtfXueD/WSxQM8Zbt2zl189Y0hEUIUOgrR u9/P5kky1+Etwff03RwXnwU6FKmsE1ZEmZ3YJto0tuJp6ERy4wXUgXwTwbCRPGNlKmogxiVH JVQBXN5XILq4o1SoUpQ7BH5eI4+cLp4Xfqsf+Ir2VzJffkgHJckp67Uz90jrs4TU2RVNVEkw M5bJ/T5By+pzUP+TFD97Crm2t0jx3JIopWYqeMQf+4tba30ojRL0vPUsxz8+r3ttvEeiM6DU 9Q/SUxPaRUDYcQ6gs8BlXohsS4b05/w7S2VhpnoOb63asNglsZGidPp+XUqcCi54AFx6qKCl NxBTB3Tcr2j0y7azR8OMXjhqYNBG4fozGQkNCqkgabrjtvK/tMX6DTYslldxH4ZXlZwGP78n BjHZZQp4GGIdkqwtOXBJ8WTogE0E1e/TV2Pb5Q6i0+jSgJ/YzZ1xEMc4DHmaLhw73QfxJIFX gGkieQU0Zo8i9AzzswqfTs8b9zaOjUmUByAqrn6y4teR2pe7dorIGTPwiRhGL6/EQAheB54D 8CXDCx7vayIjkfIzKDqHz7eAVWx9H4WjJuNpFlSXKFAai36FSTtseudqmzZauNDO0QDIeaBO NkWdV3wKrbrYBn4MriCvfJQVSmUJQzxC59YqQgYmQqnAqLtHGQARAQABtC9QYXdhbiBHdXB0 YSA8cGF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9Zq GZcXQxq7A6lmOe6N7gxumU9Fnb0UyAkfm8xRtFmAyLSMOlzi7s1vuHiTHsi722NBdzL6k0Rl QP0uleNIfMi8d02aVyUPkBSE00VXtvfTiTHYWke+8lxx8wk0vpFdABEBAAGJAjYEGAEIACAW IQTgGimUN6rHjSJ/ffXi0HEQq1x+dAUCXFIv7gIbDAAKCRDi0HEQq1x+dKWPD/9qIQIo9xT1 4E+Lpf3ztCwz6/jjakB14+rV6C/lXvfxaCBwutHVxu/iScIkSJfu4LI9ZOC8Q4cuOYR4oxAK 409ktAg1yPhbNSo5ndEGaJIEWMSsfqE+TwWWmdtZKCki7HunTQLCHlAFV+u8bz+nFjinhrPb Hs8lnV+xAoW+dgU8qfnw13qw/Z7c8mLemmJnCFbHayXSm5VpDwXqu2/mOwN0mmwcWunXRfUA vNjRuHI22Mzk2fHGq+0X7G6atoIlH5gEMZWVJQgMVs2lALv6K/EWhv+Q2dZxOvchNRMWXBFu 4FZk5DgnQII2pn3eQ50x1iB/vZPf1szeHJX9uX8fwhMkIf3BAiM6cWrGsBtdXnM3Z9Jq1eZv KW3dugVFbrdmpzNSo7CUm/RWibiPPxYlDHzMFQV8ozIw7sYn/Is3NvPItKqjtk3EeGQ2ERB2 3icI3vaNiIL/DIHWlskSC3ofUV3b3KifFSKYtGf3xpRu9+6lZWyPc8m0m7zOw3YlhtrsBQsu AH27GakHMtcL+XlB/Br8orDnYTmUAEF+G/w7rHbaqqDsjz1ACKJy/SWthw+wmaluIB9yyVld WzXbLkD+PIprl5vhPaWfHwRdyjDUCMzj/3OCWOW8zWXvXuhHtsEQDtl/6kh04LfMnZfN0K0i m/wHiAuVkdCC09ylqYQ5rRGb2g== Message-ID: <2f67558f-2720-9ef6-7d69-5436e0da6537@linux.intel.com> Date: Tue, 12 Mar 2019 12:07:31 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <19d5d492-a4c1-b3c8-cae4-da2fdfcb872b@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, With core scheduling LTP reports 2 new failures related to cgroups(memcg_stat_rss and memcg_move_charge_at_immigrate). I will try to debug it. Also "perf sched map" indicates there might be a small window when 2 processes in different cgroups run together on one core. In below case B0 and D0(stress-ng-cpu and sysbench) belong to 2 different cgroups with cpu.tag enabled. $ perf sched map *A0 382.266600 secs A0 => kworker/0:1-eve:51 *B0 382.266612 secs B0 => stress-ng-cpu:7956 *A0 382.394597 secs *B0 382.394609 secs B0 *C0 382.494459 secs C0 => i915/signal:0:450 B0 *D0 382.494468 secs D0 => sysbench:8088 *. D0 382.494472 secs . => swapper:0 . *C0 383.095787 secs *B0 C0 383.095792 secs B0 *D0 383.095820 secs *A0 D0 383.096587 secs In some cases I dont see an IPI getting sent to sibling cpu when 2 incompatible processes are picked. Like is below logs at timestamp 382.146250 "stress-ng-cpu" is picked when "sysbench" is running on the sibling cpu. kworker/0:1-51 [000] d... 382.146246: __schedule: cpu(0): selected: stress-ng-cpu/7956 ffff9945bad29200 kworker/0:1-51 [000] d... 382.146246: __schedule: max: stress-ng-cpu/7956 ffff9945bad29200 kworker/0:1-51 [000] d... 382.146247: __prio_less: (swapper/4/0;140,0,0) ?< (sysbench/8088;140,34783671987,0) kworker/0:1-51 [000] d... 382.146248: __prio_less: (stress-ng-cpu/7956;119,34817170203,0) ?< (sysbench/8088;119,34783671987,0) kworker/0:1-51 [000] d... 382.146249: __schedule: cpu(4): selected: sysbench/8088 ffff9945a7405200 kworker/0:1-51 [000] d... 382.146249: __prio_less: (stress-ng-cpu/7956;119,34817170203,0) ?< (sysbench/8088;119,34783671987,0) kworker/0:1-51 [000] d... 382.146250: __schedule: picked: stress-ng-cpu/7956 ffff9945bad29200 kworker/0:1-51 [000] d... 382.146251: __switch_to: Pawan: cpu(0) switching to stress-ng-cpu kworker/0:1-51 [000] d... 382.146251: __switch_to: Pawan: cpu(4) running sysbench stress-ng-cpu-7956 [000] dN.. 382.274234: __schedule: cpu(0): selected: kworker/0:1/51 0 stress-ng-cpu-7956 [000] dN.. 382.274235: __schedule: max: kworker/0:1/51 0 stress-ng-cpu-7956 [000] dN.. 382.274235: __schedule: cpu(4): selected: sysbench/8088 ffff9945a7405200 stress-ng-cpu-7956 [000] dN.. 382.274237: __prio_less: (kworker/0:1/51;119,50744489595,0) ?< (sysbench/8088;119,34911643157,0) stress-ng-cpu-7956 [000] dN.. 382.274237: __schedule: picked: kworker/0:1/51 0 stress-ng-cpu-7956 [000] d... 382.274239: __switch_to: Pawan: cpu(0) switching to kworker/0:1 stress-ng-cpu-7956 [000] d... 382.274239: __switch_to: Pawan: cpu(4) running sysbench -Pawan