From mboxrd@z Thu Jan 1 00:00:00 1970 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 6AF0FC433FE for ; Sat, 15 Oct 2022 16:14:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E7B2010E40A; Sat, 15 Oct 2022 16:14:10 +0000 (UTC) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3915310E40A for ; Sat, 15 Oct 2022 16:14:05 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C569AB80AC2 for ; Sat, 15 Oct 2022 16:14:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 7F160C433C1 for ; Sat, 15 Oct 2022 16:14:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665850442; bh=yOr6Hn5P9Hp033K/WRLOAgt9q480HBsY6sZnZCfB11k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pVEIF56pbj8kkpaeLvv55lSNAIV4E4jqJ77f8EsvJ2jf39DX+PQWdhdlkMV6BMbiP rYHpULhmAKdAc7Ri/8eqK577qC/zjHq4gEtTu1SaTaR9pssyygLoNgcuh4kboEQ+rR spusLVZY1GbmqJoPgxL9gV3K2g2eBTPBbz3AOgO7HBnZt7sVLsdlWlA9AKGa6hxrXB n9riF+0/BQkpvRzfEqjk7fiQTF/r1rTYMpwSHCDGdP0EDNvqZSXIG08qF9k/jL4x8m CPAwcdSfQHbsoPQU9OcX8KIShteRsh/IEm0wu3faRDcXai/vOUuZFv24fdtLbNiL8c vy6ZDr5OEuApQ== Received: by aws-us-west-2-korg-bugzilla-1.web.codeaurora.org (Postfix, from userid 48) id 67E95C433E6; Sat, 15 Oct 2022 16:14:02 +0000 (UTC) From: bugzilla-daemon@kernel.org To: dri-devel@lists.freedesktop.org Subject: [Bug 214425] [drm][amdgpu][TTM] Page pool memory never gets freed Date: Sat, 15 Oct 2022 16:14:02 +0000 X-Bugzilla-Reason: None X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: AssignedTo drivers_video-dri@kernel-bugs.osdl.org X-Bugzilla-Product: Drivers X-Bugzilla-Component: Video(DRI - non Intel) X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rafael.ristovski@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: drivers_video-dri@kernel-bugs.osdl.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 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" https://bugzilla.kernel.org/show_bug.cgi?id=3D214425 --- Comment #4 from Rafael Ristovski (rafael.ristovski@gmail.com) --- For what its worth, the following horrible incantation managed to release 2= +GB of TTM buffers on one of my machines, after I purposefully ran a VRAM inten= sive game: > for i in {1..1000}; do cat /sys/kernel/debug/ttm/page_pool_shrink; done This seems to be the only sysfs mechanism to cause the memory to get releas= ed, and as of now I am not aware of a... better and mainly "cleaner" alternativ= e. Newer kernel versions seem to feature https://www.kernel.org/doc/html/next/admin-guide/mm/shrinker_debugfs.html, which might be a better alternative, but I have not tested it yet, and its usage is not exactly clear to me. --=20 You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.=