Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp214123rdb; Fri, 5 Jan 2024 07:34:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IErYUNKQ/GvRAu6xoWisDWi75VKms/rGPEwAI+4oZW3uL6/gsg+vVslpTdUYv+XvAor6+eU X-Received: by 2002:a05:620a:1b86:b0:781:53f4:80de with SMTP id dv6-20020a05620a1b8600b0078153f480demr2559662qkb.146.1704468870988; Fri, 05 Jan 2024 07:34:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704468870; cv=none; d=google.com; s=arc-20160816; b=hLAxjYT7sKUW98N3l0kXp5iM56Gx76gVZio3BWh3NhzoCnkHe4QePkMtJooNqbbGAn YEEbeB2hH0boAeWhgy1a9VB90AYV+knIxcvr4PB0T3GGhpjgucvEVWRVsNLEln0DmpUg uArxDafX4wIs8qtWnoT7uQP3GFeUPx3LsBWUPd7IyuPZRQ0pHQ2aGTHXCc0JlY13R0/r GPDW0NKSpEHeDM+/mEWraXdUmtd3gKyKsN6xiX9Ml7h4SWZLyAG29oxyt4lneLur8MMG gse5lLGx8Xa25oSLtY0y0x6bsvrMQY5s/hSeAJMm7g1u7FesL6Du7hTKBzVq6f8tS/A6 a3Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=0TY2tK1Et5681qdWkhQWK7TKRb/9setDuVBnoXVgexU=; fh=dQkE0rjPkRupeRfRe886IbNEvqSZODCDG/62kQ9k1Q0=; b=eWFDSB4nsorTZPbVGSFP3izHr7E/UGqVBtvyNxcUtw4goQOLCVIjKR4YskH+0NEz8i 88dAzabj9IcfoDFSVfKqu1J0nIWwdlJftxMLVV1CLLIiz/wW1KypkXfQOkgksjmQi/z8 wCB9FLn1ELbfy2biwaWoH7Axnyyn6LCCwDCwNuykWL4DMxlx/wjcXsfwa1cG62UxYch/ rIcU13CslhWrJNbIjfCAeY+SFOyECXdsL4Fv4fpIm7UhJE9pqaHJFM5WwzBvw6/oJOJF MvzKKzOuRCJoFw/bwYjn7LZsbCLqQO8mWBaGgt+jNEP1JZHmlpcLLg5hlLt5zujpA9Iu IMzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=EFV5pVvH; spf=pass (google.com: domain of linux-kernel+bounces-17997-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17997-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 d3-20020a05620a240300b00781e28a23c0si1770231qkn.477.2024.01.05.07.34.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 07:34:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17997-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=@soleen.com header.s=google header.b=EFV5pVvH; spf=pass (google.com: domain of linux-kernel+bounces-17997-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17997-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 BC0881C22AFD for ; Fri, 5 Jan 2024 15:34:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3996C2E640; Fri, 5 Jan 2024 15:34:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=soleen.com header.i=@soleen.com header.b="EFV5pVvH" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) (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 F204D2E631 for ; Fri, 5 Jan 2024 15:34:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=soleen.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=soleen.com Received: by mail-qt1-f177.google.com with SMTP id d75a77b69052e-427c4bf6017so8461791cf.0 for ; Fri, 05 Jan 2024 07:34:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; t=1704468855; x=1705073655; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0TY2tK1Et5681qdWkhQWK7TKRb/9setDuVBnoXVgexU=; b=EFV5pVvHiQnqoV9y7BQQq9nRu87mykB2Rai0EIP6qviKgt54hRLI0m9de01VYYt1AX q0UwruXuBCSkrZCZRieqIg7+aevZFSab5kMlO8Jyz2nDpiDlf/Z5Ukub/JzndhhJtuUo 8kGZeGqt2vARqYzwIXSAOAVHTNbUBANkLmINPM45sLwhjIxuoA54PLpdUVLS8OMKrfs/ qzvQsiIlQ3xMVnvhcKlrxWcl2v9Kgmy7yj69GVJBQLRDbzjkgug6Q4E1c8eG94U3uNhw 18Iyqmj1bzy1OkC8j1mxXToPWjmVekiW0bfg8cpp/1/3GgrRhENtdnle6+I78mggTVZE ioaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704468855; x=1705073655; h=content-transfer-encoding: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=0TY2tK1Et5681qdWkhQWK7TKRb/9setDuVBnoXVgexU=; b=f03zIeiIsjWrJkxfeY1NOzGQWvCf+hhIpJo1GAsYZckBSmUhKGRgRQ3dXl0jQe5vnL v53LeEW5+4htQd+R6imEhPbUUjrOGn3Z6zQujoZIISU5rn3hW+iNtFHfsz3aaC/OD4Yf NMZuO7iEy6wG5HPdq7rpuqUoyKaY41euLEOY120RcQqsoAUFlnOMwxSOKFLCSw3xCveH EqlJEhnd+dR3EbZ4gInKihbcrKaTkTrKUckTxhd6JVwH8KImwYPTrrpbyZHNz1EE6vuk KQ5+Lb1mcuwfeh//lceViiOnHRR+Co3BttiwLx5NJsy6SH0e2kcTTfJZ3p0m4/xZ/uf9 Couw== X-Gm-Message-State: AOJu0Yygmx/PPMV4lajld8WIGT2GNf5QyMImhJGtWfkhRq7utZeDaH8H qVEnHKBrgmmyjcuFCXCUAqa/K7nL2hFXGBZ8ge/M7NOuZ62FxQ== X-Received: by 2002:a05:622a:1349:b0:429:791f:9708 with SMTP id w9-20020a05622a134900b00429791f9708mr909674qtk.35.1704468854882; Fri, 05 Jan 2024 07:34:14 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231226200205.562565-1-pasha.tatashin@soleen.com> In-Reply-To: From: Pasha Tatashin Date: Fri, 5 Jan 2024 10:33:38 -0500 Message-ID: Subject: Re: [PATCH v3 00/10] IOMMU memory observability To: =?UTF-8?Q?Michal_Koutn=C3=BD?= Cc: akpm@linux-foundation.org, alim.akhtar@samsung.com, alyssa@rosenzweig.io, asahi@lists.linux.dev, baolu.lu@linux.intel.com, bhelgaas@google.com, cgroups@vger.kernel.org, corbet@lwn.net, david@redhat.com, dwmw2@infradead.org, hannes@cmpxchg.org, heiko@sntech.de, iommu@lists.linux.dev, jernej.skrabec@gmail.com, jonathanh@nvidia.com, joro@8bytes.org, krzysztof.kozlowski@linaro.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, lizefan.x@bytedance.com, marcan@marcan.st, mhiramat@kernel.org, m.szyprowski@samsung.com, paulmck@kernel.org, rdunlap@infradead.org, robin.murphy@arm.com, samuel@sholland.org, suravee.suthikulpanit@amd.com, sven@svenpeter.dev, thierry.reding@gmail.com, tj@kernel.org, tomas.mudrunka@gmail.com, vdumpa@nvidia.com, wens@csie.org, will@kernel.org, yu-cheng.yu@intel.com, rientjes@google.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Jan 5, 2024 at 4:02=E2=80=AFAM Michal Koutn=C3=BD wrote: > > On Thu, Jan 04, 2024 at 02:12:26PM -0500, Pasha Tatashin wrote: > > Yes, we will have a difference between GFP_ACCOUNT and what > > NR_IOMMU_PAGES shows. GFP_ACCOUNT is set only where it makes sense to > > charge to user processes, i.e. IOMMU Page Tables, but there more IOMMU > > shared data that should not really be charged to a specific process. > > I see. I'd suggest adding this explanation to commit 10/10 message > (perhaps with some ballpark numbers of pages). In order to have a > reference and understadning if someone decided to charge (and limit) all > in the future. Sure, I will update the commit log in 10/10 with this info if we will have = v4. Pasha > > Thanks, > Michal