Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp21556rdb; Fri, 5 Jan 2024 01:03:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGGuLOJVIYvVEIOmdvZj0AcjSUvPWqjD8HKlzz6OF0Ay0uUcX7xDzO8yFql1l7HxwzpVG4T X-Received: by 2002:a05:6a20:c75c:b0:197:4c4f:5fad with SMTP id hj28-20020a056a20c75c00b001974c4f5fadmr1715629pzb.35.1704445388670; Fri, 05 Jan 2024 01:03:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704445388; cv=none; d=google.com; s=arc-20160816; b=sFNNmv6K/Zpdhz7hQq9CdUm9QFRpn/5IhECp3l2jMMEofAxVywDcunHV+MFh7F3g+H eCO31Wwlfnmq25R77tKLyHJPA4PUI0ZFX2Xd16CAMQ0p1ZnHbxXxkq5Qp//OwnGlL26L XinkzyLGT2UTqcfQzQp3KQRXH6+qG5cdnxp8OoOTy2d2lwVj9osde35ZftnyRiFBz3yU tlSVPnIx2eOBGlZFg3LL+Abqr6tap/UUA+/ZKsNQzddPkJ+2mwFuymozG7XVlWdgK75v sMZY3OeO4I9ISyQPw0DexnfwKmXFMsKf+I9qv+xNr/yEY87QtI4VZ0lafPbnTvRLlVaY ReSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=/Hmj9D9VfyQx+ZfVXhsSYh7Uls173247uQLnYHxXG1M=; fh=trliAlNXWkLDmUVwfOn1g8DZWJhis83xOGWPpfgfJdg=; b=I0ZvtCacSOhRvmRY9+r8x2Xc4vv+kffKt7vygZEoTpwJYEnx+2W2DMYjiaBSZ5cyNJ isIHDZJT+45z9tZozJ44iRxeNT5GRY8YknlCGJoqkAv0SF1t7njmSYB/HrPW6U/Kb26P 4Hl85n0KnD2MkF1e0lbrIissWc9tDHcM/qqK5/iOxR0tOrRC97wRaGu69BehILucQuOe w60gShPmfcFN9aNF2xCEhNtagH8b200lrsT65ifoUdpM0OjhfbCpm5snhmam43n3gRPy jzSnDRwMfJLyYdRMDGzzURijkfga5HSWKwwAHJPYIHOBrIx4l4LqKkjCvl+xc9WxtLzB LrcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=LOl7umdX; dkim=pass header.i=@suse.com header.s=susede1 header.b=oXf6BzBU; spf=pass (google.com: domain of linux-kernel+bounces-17642-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w22-20020a63c116000000b005ce024bbdb7si976919pgf.345.2024.01.05.01.03.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 01:03:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17642-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=LOl7umdX; dkim=pass header.i=@suse.com header.s=susede1 header.b=oXf6BzBU; spf=pass (google.com: domain of linux-kernel+bounces-17642-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B4B4F281A27 for ; Fri, 5 Jan 2024 09:03:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A86F241F7; Fri, 5 Jan 2024 09:02:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="LOl7umdX"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="oXf6BzBU" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 ADBC022F04; Fri, 5 Jan 2024 09:02:26 +0000 (UTC) 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 Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id C4C9D21F4F; Fri, 5 Jan 2024 09:02:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1704445339; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/Hmj9D9VfyQx+ZfVXhsSYh7Uls173247uQLnYHxXG1M=; b=LOl7umdXMasBBJC+adYeUl4Qi2+31gpUnZx2Dszu/570f6w9mSpa5Zj2pQL35AmskmGqPM bRGrv8eW8BsoW3ia+yEWFtC0eKHgC6MUnRuXnnLFT3B0EOt4qzWhLqyTowMGBaNBPaCyEI ginbt+IEW3mLW7T0tgfzQTVplxmymGQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1704445338; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/Hmj9D9VfyQx+ZfVXhsSYh7Uls173247uQLnYHxXG1M=; b=oXf6BzBUGOHvQ67mDKNH8+c9QYm0uiGfDeK4Ufa8ynqSMGwJKittfVFmT+4clTun94BiM9 zEnRGSQskkF33k+CycmilhUBqsV+8Aw6RSsF4gcF7o1WH7RzsB2jc/9clyNEy65noVfvVK WrhQcDV6UJKqajwr2AxsXuroJXVKJpU= Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 93371137E8; Fri, 5 Jan 2024 09:02:18 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id zoe2I5rFl2VvRgAAD6G6ig (envelope-from ); Fri, 05 Jan 2024 09:02:18 +0000 Date: Fri, 5 Jan 2024 10:02:17 +0100 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Pasha Tatashin 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 Subject: Re: [PATCH v3 00/10] IOMMU memory observability Message-ID: References: <20231226200205.562565-1-pasha.tatashin@soleen.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="p5ofvbvnu5dmxsky" Content-Disposition: inline In-Reply-To: X-Spam-Level: X-Spam-Level: Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.com header.s=susede1 header.b=oXf6BzBU X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-5.22 / 50.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; TO_DN_SOME(0.00)[]; R_RATELIMIT(0.00)[to_ip_from(RLn3qdfh3r5akp7hsapswoh51s)]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[suse.com:+]; MX_GOOD(-0.01)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; BAYES_HAM(-0.11)[66.01%]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.com:s=susede1]; URIBL_BLOCKED(0.00)[suse.com:dkim,soleen.com:email]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[suse.com:dkim]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_DKIM_ARC_DNSWL_HI(-1.00)[]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; RCPT_COUNT_TWELVE(0.00)[44]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:dkim]; FUZZY_BLOCKED(0.00)[rspamd.com]; MID_RHS_NOT_FQDN(0.50)[]; FREEMAIL_CC(0.00)[linux-foundation.org,samsung.com,rosenzweig.io,lists.linux.dev,linux.intel.com,google.com,vger.kernel.org,lwn.net,redhat.com,infradead.org,cmpxchg.org,sntech.de,gmail.com,nvidia.com,8bytes.org,linaro.org,kvack.org,lists.infradead.org,bytedance.com,marcan.st,kernel.org,arm.com,sholland.org,amd.com,svenpeter.dev,csie.org,intel.com]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[]; RCVD_IN_DNSWL_HI(-0.50)[2a07:de40:b281:104:10:150:64:97:from] X-Spam-Score: -5.22 X-Rspamd-Queue-Id: C4C9D21F4F X-Spam-Flag: NO --p5ofvbvnu5dmxsky Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. Thanks, Michal --p5ofvbvnu5dmxsky Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQpEWyjXuwGT2dDBqAGvrMr/1gcjgUCZZfFiAAKCRAGvrMr/1gc jvXNAQC/s1r4INt0DOMzuMTQyF7r+E2pYEbj7Prf+TyU1lbn7QD/bVGBlsIv9kpI Hr5Fq+4l1uV/keTc7yErY9BpbizGVQ0= =aBiM -----END PGP SIGNATURE----- --p5ofvbvnu5dmxsky--