From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) (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 13F8B2FFFB7 for ; Tue, 14 Oct 2025 15:14:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.66 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760454892; cv=none; b=Os31b/sjDg9keunfbcTC8cZfG9n39+9iGt082ZQC/dbJQatHsquW85McpHWRiAMQ3m1CerefqBDADSz+Z1y0zq7uFbe+M0kdGpekk3uvwlBJ8qPRHEd1zLP/KToyA9hdqy2qEQNydUiVRW5jBbXp7CxCfpFq2JZ4++PMrituQZk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760454892; c=relaxed/simple; bh=PhjtL3HD6534h9vTcz70HRQ4Ghvd6KaR4lsu8s+WwWU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OBmm9Hcttu/urXfJCsj1Hp1/7C5U4JbarKzhHHbqNDxdhUhk8bY2KmOistX6p9BqDG2KRYOmgAADkwUbENNCKI0p17EwfjVTi2PjGlOiXqDZieaAtH/mpv9GN1p0Vjgghw1K8KAL7BV1zXsWQNYZZtkNouqkGWohSVhtgaOsf1c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=ZeXvKawD; arc=none smtp.client-ip=209.85.128.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="ZeXvKawD" Received: by mail-wm1-f66.google.com with SMTP id 5b1f17b1804b1-46e491a5b96so30932335e9.2 for ; Tue, 14 Oct 2025 08:14:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1760454888; x=1761059688; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=xQLfTHNnTKNjH+34TPL7Pi8OhXbeEQ0J4cWXx6jAeow=; b=ZeXvKawD1Tj/ucKm6ywTes/XRey9q5W9b146tXZlHWh3i8RMXKREAE6WQzD3JMbrLv CmBEKfgGnIVFQRYN8Tq06YaKVtZNvRqozEkPbW6FPKWZ3pLVOP9s7IjfSThQ9iT4Si4J fN+VbPJGoJgrhJyZDurPKz0AG+ol5cCNS0mnPqesXsN6Kz12exiOX1ugKLfQvppybecy gXfYKnP75sQnm5M+2s+ZzDbpAuHPkG1/d3Y06xPnonQr29FSN367krqdWuS4Uiu3lWsp LzNzdoKzaq4wrM5EQ3wEjflxJ7WLZqfUvTEGsDKuwvj2crreP0qgWzyaxm7arXLFgW3N nCpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760454888; x=1761059688; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xQLfTHNnTKNjH+34TPL7Pi8OhXbeEQ0J4cWXx6jAeow=; b=ty3qz57DWAPFCw86sWN7UP3sm7byQo6tAwGr+2M5uGWeQC99U2qz1HQjkiHomlIKCG nhg9KWnuW982kCsdUMnTqBwtV41UoRiTTYrElS4WN2b/4m5HN4cJ/Cznd9Xctvj2wJlG DifLwRgJjvu3zj7g/pVWBjvFd/Xh3e+FwnIr5ePh/9ImNIoThPugR1DcusngV16KF1lO KIflwO5BZEmYb5qgtQw0NTlf+iA1tp7vTLAiS70Z0Fmq3EbQkEdy5KD2Amop7Mc/fYnj tIt2XVuQc/AiXlX+NUJKAxzlexAz/dUK+36OOysn4MddDovx/HIa/i6m2WxcL/r/a2YS w93Q== X-Forwarded-Encrypted: i=1; AJvYcCWXhMavjmKaw0D+yUU2aCBS8eHGswm2iisTlXNU4mYJ8JzXBPE1i0jSzXO4yfKARj5nA7m8luZLmcE=@vger.kernel.org X-Gm-Message-State: AOJu0YzJOCy5BQe82csE+pTo2Qqq0IuTddFeHM2KQ2TvA9zHkUOHExyE L7uv8kjgklzp2VA3+W5f/D6M8YEfOE95+61An96Gx4L2ydbLw7CSwR9NgJRcM9cpBkA= X-Gm-Gg: ASbGncvZwWTbn54GTNAx76I6JubIMFQCMbs2rtk0V0GsbnxxQ/5gDw2KV8Elq99tcm3 dHK1O5uyxOZ+J4aAFBdYVt0stBFagnoN2gurX88Kbw8NpvFJ2hOyRbXS1ryAudIalNdfPwmMmQG F/GJ4G/R1P+m1I28N0tOFNNoxJ8/gDpmrr9rI9fYLsv7TASRhVGMd1qQx+5XuQan7Gn6e0mCAuW vz7U3is32d1Xy2SY2Rgy1AS4Ly+DhHW3eMMYDhaKykzjNUH8QNRZf6NjC2v9ZkZL4GD+SLUB9B1 TfpJUq7W5+fY8X6m1wF6D72XrXPh+vCCM0yM0ZLDm8jrPWo6MHq+QQxvDoLQE7Nr8y7ZDtPZi0c 6LCVNZdbLDYSHcCXUAxj+C0TfiiFu3wsV09DxPvjfVwHlH55fjyqxbx5Q+9ocKlfy3Zz+KFpvBA == X-Google-Smtp-Source: AGHT+IFTHGjFphXZexQjbUWRV0zNN1oAawyBZFjG8j79GJAZYI0e5RFLHEUzsaTaFKvHfVpvOLq1+w== X-Received: by 2002:a05:600c:6818:b0:46e:36fa:6b40 with SMTP id 5b1f17b1804b1-46fa9af915emr172798525e9.24.1760454888343; Tue, 14 Oct 2025 08:14:48 -0700 (PDT) Received: from localhost (109-81-16-57.rct.o2.cz. [109.81.16.57]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-46fab500706sm157838725e9.3.2025.10.14.08.14.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Oct 2025 08:14:47 -0700 (PDT) Date: Tue, 14 Oct 2025 17:14:47 +0200 From: Michal Hocko To: Shakeel Butt Cc: Vlastimil Babka , Barry Song <21cnbao@gmail.com>, netdev@vger.kernel.org, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Barry Song , Jonathan Corbet , Eric Dumazet , Kuniyuki Iwashima , Paolo Abeni , Willem de Bruijn , "David S. Miller" , Jakub Kicinski , Simon Horman , Suren Baghdasaryan , Brendan Jackman , Johannes Weiner , Zi Yan , Yunsheng Lin , Huacai Zhou , Alexei Starovoitov , Harry Yoo , David Hildenbrand , Matthew Wilcox , Roman Gushchin Subject: Re: [RFC PATCH] mm: net: disable kswapd for high-order network buffer allocation Message-ID: References: <20251013101636.69220-1-21cnbao@gmail.com> <927bcdf7-1283-4ddd-bd5e-d2e399b26f7d@suse.cz> 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 In-Reply-To: On Tue 14-10-25 07:27:06, Shakeel Butt wrote: > On Tue, Oct 14, 2025 at 09:26:49AM +0200, Michal Hocko wrote: > > On Mon 13-10-25 20:30:13, Vlastimil Babka wrote: > > > On 10/13/25 12:16, Barry Song wrote: > > > > From: Barry Song > > [...] > > > I wonder if we should either: > > > > > > 1) sacrifice a new __GFP flag specifically for "!allow_spin" case to > > > determine it precisely. > > > > As said in other reply I do not think this is a good fit for this > > specific case as it is all or nothing approach. Soon enough we discover > > that "no effort to reclaim/compact" hurts other usecases. So I do not > > think we need a dedicated flag for this specific case. We need a way to > > tell kswapd/kcompactd how much to try instead. > > To me this new floag is to decouple two orthogonal requests i.e. no lock > semantic and don't wakeup kswapd. At the moment the lack of kswapd gfp > flag convey the semantics of no lock. This can lead to unintended usage > of no lock semantics by users which for whatever reason don't want to > wakeup kswapd. I would argue that callers should have no business into saying whether the MM should wake up kswapd or not. The flag name currently suggests that but that is mostly for historic reasons. A random page allocator user shouldn't really care about this low level detail, really. -- Michal Hocko SUSE Labs