Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1812748pxb; Mon, 18 Jan 2021 00:01:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWOqoW4/GtIk9DjtyAnsJoVXOeg9S5g7y9NKt6kxMnKyT9rIVRTLA89MWMhZJz2wvMQjlt X-Received: by 2002:a17:906:a453:: with SMTP id cb19mr7843208ejb.459.1610956898511; Mon, 18 Jan 2021 00:01:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1610956898; cv=pass; d=google.com; s=arc-20160816; b=ttrVZ41kyrIXwme2dzBD9fP0HlNxc8zPqd0aqlBUDBQLzkUpV0mZmjTLsFUwl1m+9k 4TWq9h0/ZcAiRiUHCxE9eIX+L+WeJFVbaEooKlJf0HEoNALBlhy46LC9da5m0thXWktd W0S94TlOOWmSjBHGIwFychvk+ia9olSdp2ty8iyZOalHEk7IKifyQhjOCApcOWuutsLL L2TBJXqJs3/cNm/ijp5XkWY0SdSGdJRsQpsWQRyX3SVyaVNFD+fQc6p9czBULRGbjT8p 5oqLbjkWd6ZfKTp+xSsOi7vnX6MpngoiCERyIHQTc1q5WVxkcLnpJYandALRZO5lkoLC rJzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-language :content-transfer-encoding:in-reply-to:user-agent:date:message-id :from:references:cc:to:subject:dkim-signature; bh=rb0dO5gjrpnNkbzu5H191bydD6eg8YnDqRBFe7RZ33M=; b=ZO3xeTAPmAH3Ar+JAERW6hhXYA+I9EKdEPAJAcSEDkuTsgY5VBBRcRQuqU6XvKf+D/ KljfBJPzqHlC4xmuzSjwmhQqyGSCjWrUGetPEIkz05hyOyGTrD4FHZo5z91+ITlzhldm HD9u1gb92Yu+gWZ4sMOZEd+FZ9TlvRf+myuuHlngNMReZ79+iNqHpba/YIFq/1fqO2KL nvTxuOmjAAwhuunNU4f+OxkvQuHGqx+cj67ioxN4uPBMTK6WykxD/76MS0a4OK5qvYik MHo7p1B9jgI6lFrHXbT9szEZjXrGNs/GETKpgxV4/TfI9uJXV2qFHGXO3GhFfw7THQBg 82Ug== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=x4nM4WQq; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=amd.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u21si3344795ejf.556.2021.01.18.00.01.14; Mon, 18 Jan 2021 00:01:38 -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=@amd.com header.s=selector1 header.b=x4nM4WQq; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733166AbhARH6c (ORCPT + 99 others); Mon, 18 Jan 2021 02:58:32 -0500 Received: from mail-bn8nam12on2056.outbound.protection.outlook.com ([40.107.237.56]:25825 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1733122AbhARH63 (ORCPT ); Mon, 18 Jan 2021 02:58:29 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T5WTIzS2XhM+w6qio2FxCgd3wI82KdazuryRirSYvy2veaX0SSmzQIn1BooBGmRklGvoIw0fJZuY1xH6aD+r0RE73x7gficvcz2ehQjQSPoOYD2+rn0NQxu+JrHOX+ICkBTz1VsQuONOFrVO9ZudTAy7Kczps/EPcBbgvD7V+H+QVpITTdWQVPHBhasWLmJ2nD4VJbfVzK6F06gqryxud2SL3CdcofybXqp0ATyZvRyq9sDN6d+Q6+7IxCtS3NfwJ2vAVN7tUdIJsqp9l5yipa9R/mNokXsMt6SjeDc1vj1pGR/09CKoM80pZ3SCUunWonVFkj44zpBjNdBYBXxvew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rb0dO5gjrpnNkbzu5H191bydD6eg8YnDqRBFe7RZ33M=; b=ILKmNbaNdrEis5/bVt4bK+ZqpCyU6f5CFgxn3IJKif+Vs2BudM+Az+SGjW57hb21KHR6t4NSv2Qi/2qADLRSb0edNyv16h/pxFvkoZDp4EBH0xcl+/kBHbu4qapHaB1UyV5rMCWZLHQdcGDMv9jvrsWhBhengUok5iJS6oFvF7g9sfsxaXCDi7il5oxp+BIydGErVqGbumDllfdkGC6rQPGKVbvTC/9sKGDNLXWhVEfe4iE7o8i8Y8jvOT9IqOqSOHwbg5bMrA4vbCNiLiuXdEjMPp2HBR/fQRd6oUsYAAeFM+rgjM5xnQ4hca1BCsneznbfMxd0XH2H0RhkvAO1yw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rb0dO5gjrpnNkbzu5H191bydD6eg8YnDqRBFe7RZ33M=; b=x4nM4WQq/ZQLjhIpBVMMQZSprVf+yuWEnyMuxAjNecVTVguKxIKt4iBS5pALsTa6vwERdrj25BrcQs/CEv/bPhzZxfFRcjpB4wdS0NZrRv+xK26PztaeJBMFki/YD/klON6ZO7eBuEubwlxq2R1WXUryH0XGLnAd7OEfpDBwl74= Authentication-Results: lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=none action=none header.from=amd.com; Received: from MN2PR12MB3775.namprd12.prod.outlook.com (2603:10b6:208:159::19) by MN2PR12MB3966.namprd12.prod.outlook.com (2603:10b6:208:165::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.10; Mon, 18 Jan 2021 07:57:35 +0000 Received: from MN2PR12MB3775.namprd12.prod.outlook.com ([fe80::44f:9f01:ece7:f0e5]) by MN2PR12MB3775.namprd12.prod.outlook.com ([fe80::44f:9f01:ece7:f0e5%3]) with mapi id 15.20.3763.014; Mon, 18 Jan 2021 07:57:35 +0000 Subject: Re: Change eats memory on my server To: Eli Cohen Cc: Thomas Zimmermann , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, daniel.vetter@ffwll.ch, sam@ravnborg.org, dri-devel References: <20210114151529.GA79120@mtl-vdi-166.wap.labs.mlnx> <23cf7712-1daf-23b8-b596-792c9586d6b4@suse.de> <20210117050837.GA225992@mtl-vdi-166.wap.labs.mlnx> <83f74a11-b3c0-db2e-8301-4292d60d803b@amd.com> <20210118074913.GA39161@mtl-vdi-166.wap.labs.mlnx> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: Date: Mon, 18 Jan 2021 08:57:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 In-Reply-To: <20210118074913.GA39161@mtl-vdi-166.wap.labs.mlnx> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [2a02:908:1252:fb60:be8a:bd56:1f94:86e7] X-ClientProxiedBy: AM0PR01CA0145.eurprd01.prod.exchangelabs.com (2603:10a6:208:aa::14) To MN2PR12MB3775.namprd12.prod.outlook.com (2603:10b6:208:159::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2a02:908:1252:fb60:be8a:bd56:1f94:86e7] (2a02:908:1252:fb60:be8a:bd56:1f94:86e7) by AM0PR01CA0145.eurprd01.prod.exchangelabs.com (2603:10a6:208:aa::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9 via Frontend Transport; Mon, 18 Jan 2021 07:57:33 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 8e9bc7e3-8b1f-49b2-d2b7-08d8bb86b796 X-MS-TrafficTypeDiagnostic: MN2PR12MB3966: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ea7gO+vM45PYPMNgzkMyTTqIExkkSbL7owi5M0j6Q0XqhMYqqI+M/NbfaygsWxhn4c0M03BnfVdEQwTH/ivmVBaGJmvy0Fi5SMYErq9w1YbJnPp2Ck7/tVJVj/HlqwbNrV/hPRXEwpsLeQysHY7fmbnNobQsnlOCgaV16FnKAU9Q8efEERYtGBTBF2aKT+b7p3AS+DwIAC3TdurkH3xWXKmvX6Bl9l1JAF2leJI8COBwfk6nDC4SLcURxiU3ike/kfeA1vXkQmAjIjHL40uH46oXNKC5lbEpOV8b7TSeo6XPeJsxJYgj2ewDfw6opWJrQ/GRM01uVMONsdgJx4IzlcdDTCNuK52kK1Z7iihNBdEm4qrwS1lIqVLBw7oexnZ4jnpJXkOwPjmd3vyN1zTmglWSUNTXSALOwQbE1qKCUA7QzayXAQ7B8phAd8oQEbfq X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3775.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(346002)(366004)(376002)(396003)(136003)(16526019)(31686004)(4744005)(5660300002)(4326008)(6916009)(316002)(8936002)(478600001)(6666004)(66946007)(66476007)(66556008)(54906003)(86362001)(8676002)(6486002)(186003)(52116002)(36756003)(2906002)(31696002)(2616005)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?RnRCVytjNVlqWnVUUnVPZHpwSnVqOGJiNVZvT2ErajZrZzdTZk9aWHpxUFlt?= =?utf-8?B?ZWZaNHdyUUVDOWxUaDZNSkhaSXZMTHp0dlNQU210c1J4Tm1IU0JPNEdUam1R?= =?utf-8?B?alhGUmdycTkxRzdLMDdORElySnlaS0U3Umo2T0dnR0hheU9GRVN4SVpTUU9m?= =?utf-8?B?VHdDN1kzQTBRb3FJSUNaeUJPZnNNNE1nN0VzYWNSVkYwWlNJeGxxUlhrZ3ZM?= =?utf-8?B?RDdYUXZKWUwyc01FVy9xY1RtZlFvRWZCYmNLaEtzbTQ4SWNYd1djVyswQnpO?= =?utf-8?B?dU1QSVE0MDFhR1JVRlVkb1h3WkdCQWQ5RCt5U2pPTGt6UUVXL2dZUkxyZjNT?= =?utf-8?B?cFRuSk4rWWp6TWxjRVNEaXpORUVxT3EzZ1l1M1V1QWZvMmx4NkR2c1pIdEdD?= =?utf-8?B?YW41WmtzeDJhTFBCVDlva3lxQjRhRmd2M3Z3MU5lQUtlWi9RMjM0ZzQ4Vm03?= =?utf-8?B?V05yWVRuV0RQdWVxMnZJWDlXQTBWeTJSMG1SeWVUSmVxRHplZVJ6ZG1aQTRi?= =?utf-8?B?RDZWSktxdjFZRit0cVdxTWgxWFQxbStiWFcreXI4eFdHaStmclprYUJ4MERN?= =?utf-8?B?ZFBBdTltbG9FTWEzQWZVV2trVjIvMXY5anp0elh3UmNOMF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-CrossTenant-AuthSource: MN2PR12MB3775.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2021 07:57:35.5360 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vDHuRiizjNywB49d14ivOrOQ1/Bre3fBhCIIq/mXHexQ+b9AxNWj9KSEfjDSXAEU X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3966 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 18.01.21 um 08:49 schrieb Eli Cohen: > On Mon, Jan 18, 2021 at 08:43:12AM +0100, Christian König wrote: >> Hi Eli, >> >> have you already tried using kmemleak? >> >> This sounds like a leak of memory allocated using kmalloc(), so kmemleak >> should be able to catch it. >> > Hi Christian, > > I have the following configured but I did not see any visible complaint > in dmesg. > > CONFIG_HAVE_DEBUG_KMEMLEAK=y > CONFIG_DEBUG_KMEMLEAK=y > CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE=16000 > > Any other configuration that I need to set? As long as you don't have any kernel parameters to enable it I think you need to do "echo scan > /sys/kernel/debug/kmemleak" to start a scan. The result can then be queried using "cat /sys/kernel/debug/kmemleak". Regards, Christian.