Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1138987pxb; Sat, 16 Jan 2021 21:11:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJycrw7pVTT3ZtDcQS23r5Xwg76fomgbtDSjZXFq3ToogQa+7aZxHp81nsXDufTmyCOpCGdM X-Received: by 2002:a05:6402:206c:: with SMTP id bd12mr11116780edb.10.1610860299610; Sat, 16 Jan 2021 21:11:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610860299; cv=none; d=google.com; s=arc-20160816; b=nwJkOGltlj/R5kKv1gh3hgYeSJZvPpHn+aKdCg6lJxpNF9VAIB3tROZHoNU+Dp231b 29xFkIFRFv+HCacT0Ss3Toq7O+Hk7QsHplGUPkB2YFzfkBoRngjoapovws0AyshxdChO SJMlBwobr3L6im3ArJiqqnGan7/bhqy0ewoPmWnXmAguAFs8vPX2ETZMRG9xqd/xnec/ 8txczhNbm5pmt+PMiaTQoAilGhKIDPStD4WxzH80R6ahF3bPB71u0AYKHvWxbOr43zkC W5wWHyQZLTJZEu9XpzuewK351yDRzKBBIva8KTN2UIKwT7GqPlwxl084AfYclBuFyJgB b0Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JrsBm7aNqqxyNiyrOmOkq8jRIaxsMN/hYLiE7Px1Mk8=; b=ieBZUTJvXGq6OVqBzBwjtHFe7MAt4CVIgzVFY21OzliwUcHgR65RXXkJs08rfG63Iz TX3vKD39rfapVshys4r6Cr2qXnS6p7fhSf17nW/PwXkfmKqTXcmzGWfViTigYAvNmGYY t2bIEadhRNq7mszdAdeiMKmoieYc7vA/Pzjkhe2JDlO08n+HjWbRbuGo/V+N/HnDc4kk gO2KLyNDD7FDXaEJn6AGifJAzLgYGApAeC77oU7owCOw/BU824N13uEj4zs6E/bYxO4P 87ga9cyT4DPluKEtpC9o7/5RdD3n9ps4gJdFmqFd0CbXbHoLWUrtO1WniwTmxoGIVt37 Z8Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="QC/QsC6/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f27si6203580ejf.555.2021.01.16.21.11.17; Sat, 16 Jan 2021 21:11:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="QC/QsC6/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726537AbhAQFJ2 (ORCPT + 99 others); Sun, 17 Jan 2021 00:09:28 -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