Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2200176lqo; Mon, 13 May 2024 10:34:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+snKSqArgqiICoQyKuau/Nn9MSudopDHPQNtsgjIjQlK2wpqdoa1HJ/eE5HuQDDFdT5o4Z3XRDrVqMZ70lLfjWmp6B7gDMDAcThiuAA== X-Google-Smtp-Source: AGHT+IG0drcWews5ptYR8xjXHluW74f1YA33C3pugKmQGVBbeffDh/fNjvwcQhWRDauXmfixz9Ri X-Received: by 2002:a05:6102:dc8:b0:47c:11ba:fea9 with SMTP id ada2fe7eead31-48077e71431mr10976716137.23.1715621654623; Mon, 13 May 2024 10:34:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715621654; cv=pass; d=google.com; s=arc-20160816; b=LHNZESh4S/t4phNYjl3zdp+tiH+PiB0GaNRLt5/MIvltVazuZ8XYix8WSH+Ipuj8VE AJXSDBSLtuTNZECAt2F0cdP3lzPeYhOvY39cT23V09O82wSoRtkc+cLvuAZ2AHxN1OrD EpK7J49K6wbG64VEXD1W2G6OtqE8zku0QdF60BhHedkGf5blWO1djMd464aoLq6JDiWD 0O8OHDAry1HEfC1ywhZoz96HjTMCoJrN2AsclJNPeJUEHeA+iQTe3iSC4spkW0LPKVdn qz6AgAigwEg0WPf1KJA480NSvJVCIOP7mWhY0OKRGo74elIE6qkz0xjdq4Z9bAfzyu55 MbDQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=gF7u5KTdydtGb+C4u/lKHMX/r20FiXVK70KMr4rQijg=; fh=C++OmRrcvAVpNxte6H3YZCF/nZeLbGo+q6JwaUvJPz0=; b=nOvn8rv1mi4TjFuTc4XIM6suPFG2UaU4py5D+ZjaecYLGQGP4F1LjJ6h7ofxn/WP9U H/4eW4ZgUD4TpP6RZ8PSHo5OqaKF2p3uBmYd43qWBTfwSMVcKcjISlcHddVwD0Y4XXL5 jhy3xDNnng7LCmTTAzZFpPceb4lDUatKJeCtkj+Dw1vkeVU9iniG3Ih5uYaA9UKrnpeu s26m+dewNcwayQFskQBoOPIhq4/QmD52njIsh3JlYq4NXtPPVhsbjM4wYmVWyaOmYTON 2V0zBAHw0PDFlYlFOOWT1UUMKU8Diovn5qk178775WapPxUL3L9qORey0RSp7UTl3EqV PSvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=EYHnu708; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-177912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177912-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43e10966e68si43923031cf.535.2024.05.13.10.34.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 10:34:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=EYHnu708; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-177912-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177912-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 3E95A1C21920 for ; Mon, 13 May 2024 17:34:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61F1D22616; Mon, 13 May 2024 17:34:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="EYHnu708" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 7A9E520DF4 for ; Mon, 13 May 2024 17:34:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715621648; cv=none; b=Mlc/prgd2xgPSzp53OV3Lcm8NemGzqaDYsIcf4tHsN+q5od891kReE8S7wBsJrq/gRTNDwW5eXTxcR1QA9nQznJYqCU9pRphe/xSeNyp//E4aF4hyct7v/SrQkUskUbZCIJKrvuHOd4sgQW2c/c2007U+VXWF/KzYzOZ8zdN5G0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715621648; c=relaxed/simple; bh=LGyj4luFEwyxCJutXStC46wb2QnlMbg8i3ELpfd0ioo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=SiOMMssJyD56xClBNdYL987xKnNiuxqOar0Zb/59lah5xsS0TBGNz22mlZPSDh47bNtxg/74bE3r/Ccw+JSgXwMJZAD94O/ds/Z2qTmvvj91d5//UhCjDZbg9Vssfhy8PssEPSZ1/9oTAd/gqx65LPjGWhlZQbZinVj8CNdZVeo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=EYHnu708; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a59a8f0d941so1135522466b.2 for ; Mon, 13 May 2024 10:34:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1715621644; x=1716226444; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=gF7u5KTdydtGb+C4u/lKHMX/r20FiXVK70KMr4rQijg=; b=EYHnu708blrHYqiCasfWEmHhSyyDZnDNseVnTvOjYMkmmNWCIVosphzkryeQRqVIf8 hNYefOiTXVrMZWP7lLqmQmj79gsX85vmKg6vxv9ZipZgj6GJE6/hEsqDgXU0pJ0WEpu6 ZQF7Ma53iDSG8NX5GHkvpNIhEskuMULhrpGHo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715621644; x=1716226444; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gF7u5KTdydtGb+C4u/lKHMX/r20FiXVK70KMr4rQijg=; b=fTJ4YtHbUhFVfiWUOyAyiD7LP7C0DCxQO+I3bxu1JPzgK8ES4a2fzMA0iXhuw+hNOu mnnKvxKiFgnU38enFXNJIoU28UjuYkvteXiSXwflLzu1dzsiC8tzgFkcF15fqySn9bVu W2e0YFeKJ+CMBgSEkAtAg4UbLCB7/YAevhRJDrZvOrGHWnQvwH38rcZ9oaLpEHAHjgmC B/SScduW8aWdGyB1r0+l81EDCfMESQ5W6fWBXBhZf76AzVUE53uCrj68/5P69E7n8PmQ 1lq4QJMwrTMcuyYqkdQmFDNN99vWZgcwpn1WvOjHLhZx4fRGEf+UoRpEjdioqMuslB5y P0pg== X-Forwarded-Encrypted: i=1; AJvYcCWN3NnUW9+30o4jw5hDORBqqBL3gwJP94Q9oa4J8Shm4hAN5qEBj9FPSvoi/mkOI84kxPaR/4zx8hOlMfyQw092+jL2RsZKI3Pi0fLx X-Gm-Message-State: AOJu0YzShoc9CpfjkTpLj4x+AtbIrSEKCZh4M8Gz2koqbGRvCBnkTCur 8LVkNcRAx0BJFD1Vl2pCrhZOiFBmK7md/N70bP8l6JrxRKUboMccYR1nXNHh3GB2DoNORQ+aWww mrYn+pw== X-Received: by 2002:a17:906:22cc:b0:a59:c319:f1e3 with SMTP id a640c23a62f3a-a5a2d53ae7emr678818866b.12.1715621644509; Mon, 13 May 2024 10:34:04 -0700 (PDT) Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com. [209.85.218.41]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1792228csm622585566b.92.2024.05.13.10.34.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 May 2024 10:34:04 -0700 (PDT) Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a59a8f0d941so1135511166b.2 for ; Mon, 13 May 2024 10:34:03 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCW9PCvhhM/7o1szigHyuCo9ifNM9kwsSeoZcgL6c/nSz0/aIWfm6LkAvuJ+HUZ5a0vJLLLQPyk3oFBC3zeGZN/Gd+9HH/Nj+yXh4/xy X-Received: by 2002:a17:906:2298:b0:a5a:3579:b908 with SMTP id a640c23a62f3a-a5a3579bb63mr599168266b.38.1715621643624; Mon, 13 May 2024 10:34:03 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <587f5e6b-d543-4028-85c8-93cc8f581d02@suse.cz> In-Reply-To: <587f5e6b-d543-4028-85c8-93cc8f581d02@suse.cz> From: Linus Torvalds Date: Mon, 13 May 2024 10:33:46 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] slab updates for 6.10 To: Vlastimil Babka Cc: David Rientjes , Joonsoo Kim , Christoph Lameter , Pekka Enberg , Andrew Morton , "linux-mm@kvack.org" , LKML , patches@lists.linux.dev, Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Chengming Zhou Content-Type: text/plain; charset="UTF-8" On Thu, 9 May 2024 at 07:25, Vlastimil Babka wrote: > > To avoid affecting fast paths with another shared counter (attempted in the > past) or complex partial list traversal schemes that allow rescheduling, the > chosen solution resorts to approximation - when the partial list is over > 10000 slabs long, we will only traverse first 5000 slabs from head and tail > each and use the average of those to estimate the whole list. Both head and > tail are used as the slabs near head to tend to have more free objects than > the slabs towards the tail. I suspect you could have cut this down by an order of magnitude, and made the limit be just 1k slabs rather than 10k slabs. Or even _another_ order of magnitude smaller. Somebody was being a bit too worried about approximations, methinks - but I think the real worry goes the other way, where it's practically so hard to even hit the approximation situation that it gets no testing at all. IOW, I suspect it's better to be explicit about approximations, and have people aware of it, rather than be overly cautious and have it be a special case that almost never triggers in any normal loads. But pulled. Linus