Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 14F43C5AE59 for ; Thu, 5 Jun 2025 06:12:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1576010E93A; Thu, 5 Jun 2025 06:12:11 +0000 (UTC) Received: from us-smtp-delivery-44.mimecast.com (us-smtp-delivery-44.mimecast.com [207.211.30.44]) by gabe.freedesktop.org (Postfix) with ESMTPS id A474310E93A for ; Thu, 5 Jun 2025 06:12:10 +0000 (UTC) Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-475-1Dm5o0UrMLSP-nRXZd6KAw-1; Thu, 05 Jun 2025 02:12:05 -0400 X-MC-Unique: 1Dm5o0UrMLSP-nRXZd6KAw-1 X-Mimecast-MFC-AGG-ID: 1Dm5o0UrMLSP-nRXZd6KAw_1749103925 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id BEA09180045B; Thu, 5 Jun 2025 06:12:04 +0000 (UTC) Received: from dreadlord.redhat.com (unknown [10.64.136.101]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B257D18002B3; Thu, 5 Jun 2025 06:12:02 +0000 (UTC) From: Dave Airlie To: dri-devel@lists.freedesktop.org Cc: Christian Koenig , Matthew Brost Subject: drm/ttm: port ttm pools to NUMA aware lru_list Date: Thu, 5 Jun 2025 16:08:33 +1000 Message-ID: <20250605061156.1234511-1-airlied@gmail.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 7t3ZqIDGhB-8E_fchU3KaGbR69VGaSKW4_sxFMa2YSY_1749103925 X-Mimecast-Originator: gmail.com Content-Transfer-Encoding: quoted-printable content-type: text/plain; charset=WINDOWS-1252; x-default=true X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This is a bit of a tangent before continuing the tangent that is memcg awar= e pools. The pools code is already NUMA aware, but it rolls it's own numa awareness,= and in order to move towards memcg awareness, I think a first step is porting t= he pool code to lru_list and making the current shrinker NUMA aware. Once this is d= one then the next step should be to make the pools/shrinker memcg aware. I've done light testing of this on a single node rx7900xt and a 4 node MI30= 0A, and it seems to operate the way I'd expect, but just wanted to get some fee= dback on the idea and if anyone can spot any big problems with the strategy. Thanks, Dave.