Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1388335rdb; Wed, 24 Jan 2024 13:47:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGKsubed4l24CwAarTmgZih7C/2hzegmTFYXmjb4FBq8PxPZmXU3NWU15ZQwxpaIYcMmEGL X-Received: by 2002:a05:6402:2811:b0:55c:9c81:9a36 with SMTP id h17-20020a056402281100b0055c9c819a36mr1730235ede.68.1706132860907; Wed, 24 Jan 2024 13:47:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706132860; cv=pass; d=google.com; s=arc-20160816; b=fGT6yecEO7TnDFoQMa2YLZm3QidOs0xacewR4/SnzMI5BOnBckDsJpQZtgYb+XFkKX DG0/PRdXkXlhRi5N8pYOvz7veh2Zd9TondVtgm9VictzoTwi9+kQddU/FbAALb61qr09 bH5B369L32aaQaeL82XKvdYjX4bTO+ALQZI8Vv7ZyrOwbYnylV/DBYr4NsVVhZxKzm+6 GyEKQFOX9wwgXeLM37VW1pbpPGWlyBgduVXDU9oIgV7AeKc5VknrSCFZZPwFm9eV4U20 6y38tHpFUkIZlRCx97MzfOz/p7NmbyLJtoi3jQPomAQ+s0PjBqkUEsBRNsFSd+x72XbU z2Jw== 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:sender:dkim-signature; bh=/YujGiTWHdxgZYfVaBshMu3ZIXxPdLRsSpRObPAnRM4=; fh=zhu1C8umPZjGXufbaC6GMdJqphOqjDhRtkNu5UNgLiY=; b=LHwSjEpUU62zp2tMqqseQt8D5XsozfHIG30HIvBFS9B50nbnLIJM+BxbCwkfewDTvh lcEfawAuPXNoGw86m0HqWQA7HQx46Mtm+pQBZUhslKjMkPgLeSl9C9efUYW7yQ6v9WH/ HOaUL0AM6h67D9+SAswv/4V7mv21DfwIdOi0h3yYdSY+1EPxvHez9ukt58a/SATK77kX coEKmhMVZJiAjo/sgQ/x9bcGR1lcCCmdgCnWU5Y/sgETFyWyn1CiUYxgsOOLXHzyVx2k JavRFliCwrqZWP9UDn+omd6L57NAQIs2Uu4j0sUDOIyleY4RZ/GeVy56S7MZ/7129DdQ 1k1Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UwxtXzbE; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-37711-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37711-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g6-20020a0564021ec600b00558daa83aeesi12611302edg.494.2024.01.24.13.47.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 13:47:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37711-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UwxtXzbE; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-37711-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37711-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id A6E811F248F1 for ; Wed, 24 Jan 2024 21:47:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 347FA135401; Wed, 24 Jan 2024 21:47:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UwxtXzbE" Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15551133990 for ; Wed, 24 Jan 2024 21:47:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706132853; cv=none; b=STVx5CtrZTwFUr5s93D4Q8uSBEa7i1BnJee1MNHPEkrrue2O6pJXlbsOIrk6sI6JDZ4XYmsqj0YPGSn0FspYrAxmLQR12H577Cq/jHgV4Rf1EPDCLJ5TYZjAplY/VrPC1P6Wt4V/oV3hW7+SLOV6yG1IEKqa+1+sS+2du4XGrYM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706132853; c=relaxed/simple; bh=iRVFpYRREhyk9t3Dg+gk/GrI+UevbaqTDe7W8QkKXjE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mQBdsacwmWWlNHd0hfuEFUaPx7aHXRhQzJgEZsi3y9WtepTPIOLuxUpqUfh1uvguR66QK9cWRsoln52hY+O7/p+bXuu6Ft8c+mnv9SNqeNqX/WM1FSsHTeYtPt59nuW2IyJ0vF+fhJn+AuDHmChKbItb6We3PPh6qPbBsusvr1I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UwxtXzbE; arc=none smtp.client-ip=209.85.215.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-5cedfc32250so3361222a12.0 for ; Wed, 24 Jan 2024 13:47:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706132851; x=1706737651; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=/YujGiTWHdxgZYfVaBshMu3ZIXxPdLRsSpRObPAnRM4=; b=UwxtXzbEbdgdNxhfIPhVf22EngHRRqTmQ7s6Y2pMPRoIzN7rqEZ4aGmz5Pyvwzq2Fq ZDsdIgPUY5e3lqjwjSglBej40Y2G/IpMZYHgTmMM9EvI1Fp1ATDRehdC2XUKKV+992rw cqhU1RuebNRZO2r9XwSX/bOzLjUlZUeaeDM9orSDwGILCdNy7zWyKCL9Xz2BO3/Q2ojO DGlGhiKXQCih8oKQKUymEWz9eJqQ6d28WzhM+B+58Ab+kZ7isQD32fOOD56z1VoHNe8T 3GIYjivANDgGGE2QJVxt7NJ7Zv5ChbgGOqwuUO9EL0NLewk4YohV1sTtNx09IpsYoUbX 6+sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706132851; x=1706737651; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/YujGiTWHdxgZYfVaBshMu3ZIXxPdLRsSpRObPAnRM4=; b=cQ7wz+qD8ul8K4I1mof6VsTDYUgIrLSOvEUYERZlFBKwu2diZwpviYkKQ4uScuvazA sKuZ5Iu2WTYbInjsb4EmCHwPXYopN9nLc30XMDxY1whDgcGg8QXxVZlNmwmNl6iA4Kya btmrAC/RLdRXomftWAbDlcfg/WAYOp0OqHZnmpY9XxZQXqpCaoRhMo9Z5XSLtjue0y/R wD4kLZ2uo1hNzbwL4tPZu4T3+DEUbHwqvT/WJR2IOMSbkM9KK6OHQs6l42JQp4J9P0WD lopv2ZhjDXTKz2eb+qtVit9qhMx8+vF8VxmQ51L+h7n8BALL5ACSt7eTfJuw06JGEaUA o7CQ== X-Gm-Message-State: AOJu0Yzg64w8lKjcbTFv2mPk0iNiTQehtAcPzRV6KAQF+UatFRV5Kj52 9GsYOLJMrArscTXeuPp04qPxO3Nd0kcyJcQ4Faf8Cnsism0y2NR6 X-Received: by 2002:a05:6a20:c505:b0:19b:5b8e:7b84 with SMTP id gm5-20020a056a20c50500b0019b5b8e7b84mr50112pzb.119.1706132851229; Wed, 24 Jan 2024 13:47:31 -0800 (PST) Received: from localhost (dhcp-141-239-144-21.hawaiiantel.net. [141.239.144.21]) by smtp.gmail.com with ESMTPSA id o14-20020a056a00214e00b006dcd6a5ba14sm4417043pfk.59.2024.01.24.13.47.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 13:47:30 -0800 (PST) Sender: Tejun Heo Date: Wed, 24 Jan 2024 11:47:29 -1000 From: Tejun Heo To: Leonardo Bras Cc: Lai Jiangshan , Marcelo Tosatti , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v1 1/1] wq: Avoid using isolated cpus' timers on unbounded queue_delayed_work Message-ID: References: <20240124082938.2527697-2-leobras@redhat.com> 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: <20240124082938.2527697-2-leobras@redhat.com> On Wed, Jan 24, 2024 at 05:29:37AM -0300, Leonardo Bras wrote: > + /* > + * If the work is cpu-unbound, and cpu isolation is in place, only > + * schedule use timers from housekeeping cpus. In favor of avoiding > + * cacheline bouncing, run the WQ in the same cpu as the timer. > + */ > + if (cpu == WORK_CPU_UNBOUND && housekeeping_enabled(HK_TYPE_TIMER)) > + cpu = housekeeping_any_cpu(HK_TYPE_TIMER); Would it make more sense to use wq_unbound_cpumask? Thanks. -- tejun