From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 466181F4CAC for ; Mon, 10 Mar 2025 22:39:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741646363; cv=none; b=e/uxH+yYJtX8bMDXIoCr/Q48D1D/pVkj/ZVfZfvhxbvkT3dD4hFL6QL1cGOQCS0jldXmWVpb9/Pwn4ECZgL1MWgmNSb281SsaRXmz6c0fupTy3MMyXVsMbMOIWncTvXpE4z2oUd9J6RoCRrL+CjyslURHXoDTTov+jei+XKk3Z0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741646363; c=relaxed/simple; bh=rJolrJAtyC/aBfw6fPsglUjT07JuUYVss89j8LWAWrQ=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=sOt0AoKp8cJ1t3snJy93Vs9zijg2M5PpVos5W1fbi97dt5riJ38IFkaP5hW+hGcnZOq76YHEHWkIYe0Bp/uH5wKxvyfDkFv9uGpDPo+lV3KuxZi7oQp2j2jg+GNJfLOzTiguZXOVtv23NGcyE3DIjQijpwhGREWR3R3r0RGAMGo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=DJt/dRkN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="DJt/dRkN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50BCFC4CEE5; Mon, 10 Mar 2025 22:39:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1741646362; bh=rJolrJAtyC/aBfw6fPsglUjT07JuUYVss89j8LWAWrQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DJt/dRkNnDsq8SZ9cU8Z9Elb9EYLKmG3gkECi9vpTGcKs9CtE/CUpni1aZ7iAwX0M ykBAkGhLUzTFMPPUO4paC8wVJVwFKU8LdLWTLiRvsq+IaKQqB1mAdUnrYLoEGc2ySu R2vK2oNjfoxD9wVEAuUfLkPbydWEXFx4SXWTDJUo= Date: Mon, 10 Mar 2025 15:39:21 -0700 From: Andrew Morton To: SeongJae Park Cc: "Liam R. Howlett" , David Hildenbrand , Lorenzo Stoakes , Shakeel Butt , Vlastimil Babka , kernel-team@meta.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 0/9] mm/madvise: batch tlb flushes for MADV_DONTNEED and MADV_FREE Message-Id: <20250310153921.47d390c637105e3ad6fc49c0@linux-foundation.org> In-Reply-To: <20250310172318.653630-1-sj@kernel.org> References: <20250310172318.653630-1-sj@kernel.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Mon, 10 Mar 2025 10:23:09 -0700 SeongJae Park wrote: > It is unclear if such use case > is common and the inefficiency is significant. Well, we could conduct a survey, Can you add some logging to detect when userspace performs such an madvise() call, then run that kernel on some "typical" machines which are running "typical" workloads? That should give us a feeling for how often userspace does this, and hence will help us understand the usefulness of this patchset.