Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp470269pxb; Wed, 24 Feb 2021 07:02:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvUg2sUOsVHOHtxThJiZx+A6Y6iA8zYZfcfOOrc6vP1QcI8ALqePecHCiRWjGVrGheABaW X-Received: by 2002:aa7:d315:: with SMTP id p21mr31944094edq.300.1614178965759; Wed, 24 Feb 2021 07:02:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614178965; cv=none; d=google.com; s=arc-20160816; b=H2/57osEBoYHR0PZto+EKb4r73E9VCH7MUM4v29/J1LCRI7vLJW8+jdLjgdRxfbYmF ZbeOBeTLUGeLueQLSAp3cfEOt/pTj8JD8yK7dJvcAmFiw6yZPwXM9WQ/JHjzikpwz6TT PSZyt8n8l3YimBhRGWWuWRYUFBgarb0g1/QI3/K9Qj/UFF6GepesCjAm4Zq0y40F3LsH nhhzgjLUJ9b4cszAZxwEzvGa/DlmLYJon+KSF+VNwSFm/jO/WJL7IX05jLfkmo4zWlMQ fhWifgtlpKH9HlEZGqHOxWNo8g9GJ1w1r6delbvMxWbrWYM4Qz8axbMG3GfWVun3Nd/Z Otdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject:dkim-signature; bh=kG2vtjsRdoQ+vHTLYj3dcbBFCmpdhzFhVSU1YaNR790=; b=LIjPFLJKoMJe+cG5B6EpHn14FZQ9W88xgoW5i+eo2lH/Lmj+yobSifxWMJHv4H7CQ4 UeUrx5VxH72tIbPghVzXxKA/F6SjAMX6w1XleAUmWK2TCkiAb9FUzpw/nuPJpXyDd08v qZ2Mb0Ikl3VwBOVa8Uo5VvhbafInUkHMNIiHKp9oHEH7bcQWOQ84UM3U54SxZuSkOtZI fCOiqWK4SDAJI1Sr+8M9nxyT3MZtTHHiWrBd4SGF7zErlylfcf6i+ASTd24FCvKAeYZC 3bevf6f+xAm70tovu64PMJoqtHrDSfgYhYqydXAKk7k+MmqFnag4/SnEBt8RYuIFxYj9 3WdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=LflfjaFm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du16si1456129ejc.388.2021.02.24.07.01.47; Wed, 24 Feb 2021 07:02:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=LflfjaFm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235713AbhBXO5T (ORCPT + 99 others); Wed, 24 Feb 2021 09:57:19 -0500 Received: from aserp2120.oracle.com ([141.146.126.78]:59988 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232161AbhBXNz0 (ORCPT ); Wed, 24 Feb 2021 08:55:26 -0500 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 11ODoFEU144545; Wed, 24 Feb 2021 13:52:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : from : to : cc : references : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=kG2vtjsRdoQ+vHTLYj3dcbBFCmpdhzFhVSU1YaNR790=; b=LflfjaFmHb/1jY5IyK+xGIvansHoJBoHfBHRwxkWhTBAcKmgsOSOliNZnBfOdPqqpw6v BeRq1Iiv/PM/J51Cw4ReROPNd4EpdmU7V8OnwG5H7kJ9Xog2ksNb6m3XS4msFeGUyiQW Jz+UmD+caL9KNVPidqHBdNvuhSWJqCVoFeTpyT7q/roxfBFu0SMkM39hbPOL0DRTM+eC RnVm/n7cE1kud6tXa/KI7wn12MjMnMZUg4pdgpFxXGcp8E9R1A50T2fThyhKDwacEK6Z WXIDnO1V3iQVOM7/41uZzJ97RuYwmHF1sDhvHpKgKBHCaJZqJhv5rB6fV8V8DZlnUk0t lQ== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 36ttcmay6f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 24 Feb 2021 13:52:33 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 11ODoXL4097576; Wed, 24 Feb 2021 13:52:31 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 36v9m5ytat-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 24 Feb 2021 13:52:31 +0000 Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 11ODqHuT019022; Wed, 24 Feb 2021 13:52:20 GMT Received: from [192.168.0.193] (/69.207.174.138) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 24 Feb 2021 05:52:17 -0800 Subject: Re: [PATCH v10 2/5] sched: CGroup tagging interface for core scheduling From: chris hyser To: Josh Don Cc: Peter Zijlstra , "Joel Fernandes (Google)" , Nishanth Aravamudan , Julien Desfossez , Tim Chen , Vineeth Pillai , Aaron Lu , Aubrey Li , Thomas Gleixner , linux-kernel , mingo@kernel.org, torvalds@linux-foundation.org, fweisbec@gmail.com, Kees Cook , Greg Kerr , Phil Auld , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini , vineeth@bitbyteword.org, Chen Yu , Christian Brauner , Agata Gruza , Antonio Gomez Iglesias , graf@amazon.com, konrad.wilk@oracle.com, dfaggioli@suse.com, Paul Turner , Steven Rostedt , Patrick Bellasi , benbjiang@tencent.com, Alexandre Chartre , James.Bottomley@hansenpartnership.com, OWeisse@umich.edu, Dhaval Giani , Junaid Shahid , Jesse Barnes , Ben Segall , Hao Luo , Tom Lendacky References: <20210123011704.1901835-1-joel@joelfernandes.org> <20210123011704.1901835-3-joel@joelfernandes.org> <0e91838e-4cca-4c3b-cb36-226c098f36c9@oracle.com> Message-ID: <94f43bb6-501c-2851-de32-6f4356b4a480@oracle.com> Date: Wed, 24 Feb 2021 08:52:11 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-IMR: 1 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9904 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 adultscore=0 suspectscore=0 mlxlogscore=999 mlxscore=0 spamscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102240107 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9904 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 adultscore=0 lowpriorityscore=0 spamscore=0 mlxscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 impostorscore=0 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102240107 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/24/21 8:02 AM, Chris Hyser wrote: >> However, it means that overall throughput of your binary is cut in >> ~half, since none of the threads can share a core. Note that I never >> saw an indefinite deadlock, just ~2x runtime for your binary vs th > control. I've verified that both a) manually >> hardcoding all threads to >> be able to share regardless of cookie, and b) using a machine with 6 >> cores instead of 2, both allow your binary to complete in the same >> amount of time as without the new API. > > This was on a 24 core box. When I run the test, I definitely hangs. I'll answer your other email as wwll. I just want to clarify. The test completes in secs normally. When I run this on the 24 core box from the console, other ssh connections immediately freeze. The console is frozen. You can't ping the box and it has stayed that way for up to 1/2 hour before I reset it. I'm trying to get some kind of stack trace to see what it is doing. To the extent that I've been able to trace it or print it, the "next code" always seems to be __sched_core_update_cookie(p); -chrish