From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 EEF9225776 for ; Mon, 13 Jul 2026 21:29:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783978142; cv=none; b=ljNw+rwbNgcwUoSnha5ZGYJJD2rPxDMW8ihLfi+iIyEibwKpW4R09zAdmNSQAEz1jdDKU5yy3VLfUPF9Zdg/9UicDNMNeUTBmdZsMUCSjMdXsKeCylz+H+dwx307KxOWl5mZUYJOBZ2TQDINu3Gjn5JNZhpVqy8c6I6tz/0eVgk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783978142; c=relaxed/simple; bh=2ZrCZFXS5/VhTEv6Kj24OanhcNM15iH9nGjK/9R+4zY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type:Content-Disposition; b=R8xsNDPgB3zMgjqDWg8D6EXlDja6HyBVPgV3UiY2rltUxSyFwEfUd71vIZIwn/K+Jg9CnrJmBJhZYV/LDKbhVcLWIYvVzMNuCnBQmFQ/gAEZnfDPzGSMyNOseBDZ1vxYDOSeZIBd24DIah8lJbiZwvDnbl9kLs5Dy48k4JPJZ2Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hMd2YHlW; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hMd2YHlW" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-493c5220cb7so2322285e9.3 for ; Mon, 13 Jul 2026 14:29:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783978139; x=1784582939; darn=vger.kernel.org; h=content-transfer-encoding:content-disposition:content-type :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=ZQQoNjvYMy7swaXdt0/pPw+8PJHakFz/v63Sfote3Ss=; b=hMd2YHlWWekTt6ZIgXH8Z070oDo8dTWxKvVcXEfpz7vXaRMbZheByABG3u8qlgVAcp eENNLrDZey0Yi9v7qFCtdzsM/a39HTaJNGV/oqFLPdEbr6zMrSsfKRUUTRrjr/p7E7ev LARsSEte3K89l+y9ypvqm5clcCxwFKJnxVlDfZZOjAVXkQ0/aZ50V+pkIi2HIG6MuL2S LzIxNvf/k7WeSMYnbXPfwsVauqlFswQPwSsAoWWBSMuaw3UBLRyu24bxZtouiKukA9cR fT8wlOPle1R6mADwnX/Z0NltXZDcWBpuqYRE4U00jQb+YCZl0YMpv9v7PfdNh26epBK3 eWtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783978139; x=1784582939; h=content-transfer-encoding:content-disposition:content-type :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=ZQQoNjvYMy7swaXdt0/pPw+8PJHakFz/v63Sfote3Ss=; b=V5HI9yZ9lNPvPxWrQryJNEIlpIpPChtHeKzgEy0gQI4IsFTRnAFZzb3w1YNqQ3LFeF ARhYXGBnnT7YackqZXEgnY4+KME5xvTvhUHaZBOH1G6/jgaTlpMKL8hnAJZGKq7nSWRd 1sVVruQMl0qdxdoz71hkfsoqDUNzj3s7FLD/E5EXFT3+hILu11ofAxB36Y7KVDnLfQEN ILHTYdIkdE05mRTx4FGj9/JigErYaCBCzCPuZLap1NT5zFV7Ss8GSXsWFLCxIA0i1WTP 1+guaNel06xKZMQKux2x7Nqa3uQsUs/bFmfSHV2KosDKnZcj2I0LyetoP6NYJEIH1Xsj XMwA== X-Forwarded-Encrypted: i=1; AHgh+RoH/nBEkyyk7jROhAbvGYdgLvz8wlufCwVf9K5xeg+NZuPQngToWyz417xfD5jEXsFphu/r8aHNd3U=@vger.kernel.org X-Gm-Message-State: AOJu0Yzwv3qdfVCbBIgXLKoOET50uGhX6M2y/ZijkjP+1uejI5aZF45D mOrp2o6YDc1aasVAJnu05TSXGVAoUHNyr+Jm74R6o4NHcrfiSwpyLDK4 X-Gm-Gg: AfdE7cle9mo4sQ3ndLJjvol1eY6NrGZcT7F6Ew34r2YeIg1OVC46EuW/xASP6O2I9SW jqfDBQ7L8yx7MYN904m4IVHZs+oNJovVXYiDIoPG/ef5QN325wD0DE5MqIJupBrUMQPuYDb0U2N lkSMsnN8eGkNEC/y6M7M6RmOrLStH3SkJ51gbd8LjRNksWK5mSIbvsrDOjGvKnxD8bCsVp9gVyX atq0B8sTNciMEFyEgtlmUACVWkb+sTsX8weJ6AJjVz14ATU5f4xbhXWJ1zr1tDPmFwFCF+TQlOI pU6T9XSdFMC4hk9o2Ex9kCRvwaDWgpkwwRlf/qs/Wo5P8U5GJ+gS/6uxHELjWZvPzNwgwfuPpQs DM4rp3Te17t/9SehNjH2/S8CvCkyUqVXStkeWYDpXFxMK37RjQcEORA05wVqmHlGGCMjdbLbnwg dcFPLrqe/tiOwOt0t9qAOX+1m/etEC7VXR X-Received: by 2002:a05:600c:6989:b0:493:bfbf:1da4 with SMTP id 5b1f17b1804b1-493f881de65mr104977295e9.22.1783978138921; Mon, 13 Jul 2026 14:28:58 -0700 (PDT) Received: from WindFlash.powerhub ([2a0a:ef40:f61:3b01:d08a:833b:756:8fce]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47f4635ac2esm2503549f8f.13.2026.07.13.14.28.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2026 14:28:58 -0700 (PDT) From: Leonardo Bras To: Sebastian Andrzej Siewior Cc: Leonardo Bras , Jonathan Corbet , Shuah Khan , Peter Zijlstra , Ingo Molnar , Will Deacon , Boqun Feng , Waiman Long , Andrew Morton , David Hildenbrand , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Jann Horn , Pedro Falcato , Brendan Jackman , Johannes Weiner , Zi Yan , Harry Yoo , Hao Li , Christoph Lameter , David Rientjes , Roman Gushchin , Chris Li , Kairui Song , Kemeng Shi , Nhat Pham , Baoquan He , Barry Song , Youngjun Park , Qi Zheng , Shakeel Butt , Axel Rasmussen , Yuanchu Xie , Wei Xu , "Borislav Petkov (AMD)" , Randy Dunlap , Feng Tang , Dapeng Mi , Kees Cook , Marco Elver , Jakub Kicinski , Li RongQing , Eric Biggers , "Paul E. McKenney" , Nathan Chancellor , Nicolas Schier , Miguel Ojeda , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Thomas Gleixner , Douglas Anderson , Gary Guo , Christian Brauner , Pasha Tatashin , Coiby Xu , Masahiro Yamada , Frederic Weisbecker , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-rt-devel@lists.linux.dev, Marcelo Tosatti Subject: Re: [PATCH v4 3/4] swap: apply new pw_queue_on() interface Date: Mon, 13 Jul 2026 18:28:52 -0300 Message-ID: X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260713073158.CHjwei-N@linutronix.de> References: <20260519012754.240804-1-leobras.c@gmail.com> <20260519012754.240804-4-leobras.c@gmail.com> <20260520150736.HZnlFkv7@linutronix.de> <20260713073158.CHjwei-N@linutronix.de> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8bit On Mon, Jul 13, 2026 at 09:31:58AM +0200, Sebastian Andrzej Siewior wrote: > On 2026-07-12 18:43:48 [-0300], Leonardo Bras wrote: > > > I thought that this improved since commit > > > ff042f4a9b050 ("mm: lru_cache_disable: replace work queue synchronization with synchronize_rcu") > > > > > > Did it get worse or was it not entirely gone? > > > > > > > I worked in this patchset majorly after that commit date, and it was still > > an issue up to last time Marcelo tested. Not sure of the impact of above > > commit, but I suppose it may have brought some improvements without fully > > fixing it. > > It would be good to know what is still missing and maybe it can be > addressed without introducing this remote locking. > I get the point, but the main idea is to make this as proof of concept of the mechanism, that can use to solve the latency introduced by IPIs from per-cpu workqueues. I remember discussing all those examples with Marcelo in the past, and IIRC to solve this we would either have to use per-cpu spinlocks, which is undesired in terms of performance on !RT, or skip remote operations in isolated cpus, which may have weird behaviors, or disable caches in isolated cpus which is terrible for performance there. In any case, the main goal is to get something generic enough to deal with most cases, not an individual solution. Thanks! Leo