Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp404996lqb; Tue, 16 Apr 2024 22:30:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVxGkZW5eLd5uHV8hKnhuEGIQJqqEEoU9T6k3v3Cx4cjXPyQRLkYQe58NlnYgY7VV9S0a2rHS6ghMYfRtFitc2ZfnEgTJSoSPrRANQHGQ== X-Google-Smtp-Source: AGHT+IGsxXZC5SNMy1KHfr0WgrHxEN2Fv+5T6W3geTpl8cLVKnOEPhW3aZzye/eKypE5NX7gdEH6 X-Received: by 2002:ad4:5993:0:b0:699:3883:5474 with SMTP id ek19-20020ad45993000000b0069938835474mr12732272qvb.33.1713331804655; Tue, 16 Apr 2024 22:30:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713331804; cv=pass; d=google.com; s=arc-20160816; b=ULCd7Dts/sO1cWvU93dO61AxmkppTp3fsOFj9k77U/dFTBzbI0L13Gmi0X74Sota5N cBLKqbkWRwmCYBEeYN+kingG4Q2AKfXRFGh9v68YYcRsxay4Th2YCSJVccZKZpLvcTa5 /FiEcEIIfpPBDjASu7QEv3ZbmVUgREYB3fE22NdnC8XiHObI/f8qGMXoWA+XhLalh0Tc O2QZAiKZMpiXHPg4LW+aKC9IuX35mo3mA4rq0hkWS8nNRx5zuLQlZ+/W7WGiVUS9KEeG oCyBa/u6zby+JYfavq+PWTPgzZDupz2MwEISao/nqMfew5azPjVA86n+0quTBrULU+/H kTGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gpxivsdp+mN00C3q1/pka6Me/n6JWPp7eC0c08fzrcw=; fh=/7AqYDe4mQKoJZ8Roi+FJPgiYc3Gyu8g/sTN1gbnCOE=; b=Sli4HBqS7tWv7oaQ3BQvj8AgYXxEgSfSD0vO1c3dDhIdYXIOmaczm1Hnr2lF4FoSPq Y4DK7QBp4LDkZKMb3QnbIdf1HpxwH54D0CYTfD5hMm++dm7dZ3sfGQvtiRqeM/nYiT72 d1mw5ZGZ5EZ26nFa/LAkeeGZYWogsVhaATkC7X5TwsYRie5EORHw6DRaCeo2h56vF7cQ RfVFrzeu4vo2j9WR7hyUWXbVhnkcGyLPAreyUdVXhY9qJOfRM/4Im/uLo3lzZbhBBCy2 ECNITV34IDvEq0J00F+vY6d8sQLijfL2ixsAMo21V3juqe3jDfhKSebPXs7PmSUIccvi klAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=kpBQIcuV; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-147961-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147961-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p19-20020a0ce193000000b0069b56f0e477si11835426qvl.27.2024.04.16.22.30.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 22:30:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147961-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=kpBQIcuV; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-147961-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147961-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 592191C20D78 for ; Wed, 17 Apr 2024 05:30:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D918C52F7E; Wed, 17 Apr 2024 05:29:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="kpBQIcuV" Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D89AF52F62; Wed, 17 Apr 2024 05:29:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.92.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713331797; cv=none; b=TbdQl8hYTJj/4+Pg53BkQscjn1IrPuRDcZwa/MF6Vja0dm3LhliKWkSwLGLusOOtwikOu2uqkvz9G4tlq5vSFKwa4zo2ZLXkmFHj8e5ZMmx6gEV85p8deY+tQh6Q0v3RQK1JDuYXGi1t0ALy2qZkKUBAxKoCmUzUZeGoUM0uoDU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713331797; c=relaxed/simple; bh=weqydP0eb3rEOce8N5EeNv8gpJqd5E3/fPPd4LRA/i0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lhZvcVdM/CCVeoPu4c1VBFq9qthdIZ0kLsIV3zymE+/QAV9CpFZixN0Mcve7vqN+1sRUjm+6ShPa2b+OI3UQ+kHbgKjg3uDfdzB/+6f8ifsxfMwAGIN+evc5gvD5n+4+MyDy8xLnKLSn5ptwORxax20gOgAXjhlpXiplMyxNhsw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=kpBQIcuV; arc=none smtp.client-ip=90.155.92.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=gpxivsdp+mN00C3q1/pka6Me/n6JWPp7eC0c08fzrcw=; b=kpBQIcuVe20vaqV3uRycXoYE3d Ex350cgW3fwTebGyDdeB+2NRi4rOUHrM0Vhus2om7VvaT3O7JJOuw9xDrdZwEYS4xAcD3ftfIQKll 7a7TDOJUwKBJ7T3gWet3sdvN2iVY3x1nFusogp7OFvLYBNBzAJNko3k4pBNH4Aru1UC5OKnGBD5Vi ytm359kDssgG9O9lCx6ol5LCcVNCD+XOz02ZDHEEvrLkPw7Ft82tJ8eUAPHviRygadbyj3QCz41QU ZFNVR794ss80QIqFM53mq9x0xaqjmgZS1pN7wjAP0fFrGZUnXOBCO0kgfk8LptuO8O+z0u4Blotsk ivC12Z4w==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwxmf-0000000BPQt-4BjR; Wed, 17 Apr 2024 05:27:04 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 91AAC30040C; Wed, 17 Apr 2024 07:24:37 +0200 (CEST) Date: Wed, 17 Apr 2024 07:24:37 +0200 From: Peter Zijlstra To: Elizabeth Figura Cc: Arnd Bergmann , Greg Kroah-Hartman , Jonathan Corbet , Shuah Khan , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, wine-devel@winehq.org, =?iso-8859-1?Q?Andr=E9?= Almeida , Wolfram Sang , Arkadiusz Hiler , Andy Lutomirski , linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Randy Dunlap , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng Subject: Re: [PATCH v4 00/30] NT synchronization primitive driver Message-ID: <20240417052437.GJ30852@noisy.programming.kicks-ass.net> References: <20240416010837.333694-1-zfigura@codeweavers.com> <20240416081421.GB31647@noisy.programming.kicks-ass.net> <4340072.ejJDZkT8p0@terabithia> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4340072.ejJDZkT8p0@terabithia> On Tue, Apr 16, 2024 at 04:18:24PM -0500, Elizabeth Figura wrote: > Is the concern about poor performance when ntsync is in use, or is nesting a > lot of spinlocks like that something that could cause problems for unrelated > tasks? I'm not familiar enough with the scheduler to know if this can be > abused. The problem is keeping preemption disabled for potentially a fairly long time. By doing that you potentially affect the performance of other tasks.