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 X-Spam-Level: X-Spam-Status: No, score=-7.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2BB2BC433E0 for ; Sun, 17 Jan 2021 05:09:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EB66B22DBF for ; Sun, 17 Jan 2021 05:09:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727087AbhAQFJa (ORCPT ); Sun, 17 Jan 2021 00:09:30 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:15776 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725815AbhAQFJZ (ORCPT ); Sun, 17 Jan 2021 00:09:25 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sat, 16 Jan 2021 21:08:44 -0800 Received: from mtl-vdi-166.wap.labs.mlnx (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 17 Jan 2021 05:08:40 +0000 Date: Sun, 17 Jan 2021 07:08:37 +0200 From: Eli Cohen To: Thomas Zimmermann CC: , , , , , dri-devel Subject: Re: Change eats memory on my server Message-ID: <20210117050837.GA225992@mtl-vdi-166.wap.labs.mlnx> References: <20210114151529.GA79120@mtl-vdi-166.wap.labs.mlnx> <23cf7712-1daf-23b8-b596-792c9586d6b4@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <23cf7712-1daf-23b8-b596-792c9586d6b4@suse.de> User-Agent: Mutt/1.9.5 (bf161cf53efb) (2018-04-13) X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1610860124; bh=JrsBm7aNqqxyNiyrOmOkq8jRIaxsMN/hYLiE7Px1Mk8=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To:User-Agent: X-Originating-IP:X-ClientProxiedBy; b=QC/QsC6/XXaPbIZYmOi9rRiqpdU5JXbtyZ4O/AB/4hf6bJOQ9ZBkJlZBuBOBxUA3D NcnRD0DfD0sFO/q4U5TYsOdFr+rJJrQW9LmiDAZqZmaArW6YzF+MXZIX7+VUO8dTab 1o4YsWrN9EDhg+Apl2u9r2xSvkWZ9dXukGzqVGdk7RQFjZ0fxUP3/ts1INl56mUtOi YRu/2eKqJDpJl2RbFBH5r2vlFNkI+XNK4zDHtNnBRcNmmr7KfMOpMYEBYEL9YbJDjp 0h6mOuyjKXmPtspAdBhbmpQBy8MBnh6uFmdCcVQpwd7+8bGncZ7K4q/BVeCtQkyhJR ymkMLfTHeqyeg== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 15, 2021 at 10:03:50AM +0100, Thomas Zimmermann wrote: > > Could you please double-check that 3fb91f56aea4 ("drm/udl: Retrieve USB > device from struct drm_device.dev") works correctly Checked again, it does not seem to leak. > and that 823efa922102 > ("drm/cma-helper: Remove empty drm_gem_cma_prime_vunmap()") is broken? > Yes, this one leaks, as does the one preceding it: 1086db71a1db ("drm/vram-helper: Remove invariant parameters from internal kmap function") > For one of the broken commits, could you please send us the output of > > dmesg | grep -i drm > > after most of the memory got leaked? > I ran the following script in the shell: while true; do cat /proc/meminfo | grep MemFree:; sleep 5; done and this is what I saw before I got disconnected from the shell: MemFree: 148208 kB MemFree: 148304 kB MemFree: 146660 kB Connection to nps-server-24 closed by remote host. Connection to nps-server-24 closed. I also mointored the output of dmesg | grep -i drm The last output I was able to save on disk is this: [ 46.140720] ast 0000:03:00.0: [drm] Using P2A bridge for configuration [ 46.140737] ast 0000:03:00.0: [drm] AST 2500 detected [ 46.140754] ast 0000:03:00.0: [drm] Analog VGA only [ 46.140772] ast 0000:03:00.0: [drm] dram MCLK=800 Mhz type=7 bus_width=16 [ 46.153553] [drm] Initialized ast 0.1.0 20120228 for 0000:03:00.0 on minor 0 [ 46.165097] fbcon: astdrmfb (fb0) is primary device [ 46.391381] ast 0000:03:00.0: [drm] fb0: astdrmfb frame buffer device [ 56.097697] systemd[1]: Starting Load Kernel Module drm... [ 56.343556] systemd[1]: modprobe@drm.service: Succeeded. [ 56.350382] systemd[1]: Finished Load Kernel Module drm. [13319.469462] [ 2683] 70889 2683 55586 0 73728 138 0 tdrm [13320.658386] [ 2683] 70889 2683 55586 0 73728 138 0 tdrm [13321.800970] [ 2683] 70889 2683 55586 0 73728 138 0 tdrm