Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1636507ybk; Sat, 16 May 2020 18:17:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+hp6wIZ2hnM1xCePjLcygQdLVDSXKNvwpNFDWM/IJEMrz6k5jgyUbtvHDKZkScNMdE2Dm X-Received: by 2002:a17:907:438e:: with SMTP id oj22mr9633588ejb.195.1589678265274; Sat, 16 May 2020 18:17:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589678265; cv=none; d=google.com; s=arc-20160816; b=sJS91DouxgQKOuA9ZDs2YJztYb/YZY5onI4LggxCuYNCWzJVeCVAnTT1K+cKQfKpBa 2TG8FnslJooWMJuEC3dvFIgkohnzoRwbUrY1U2tHRw/aL+hbznsH3wiRmmYyYJJznzqJ VHwjnfdUsolYCH4KDVRRql4BT6iiaCrCAaXrVuEZCrSxgvhnaB8eghUUaSdMqMe/+Q00 2EvfvY690h+uBOkMaBNgTUwLzWrkdw6sAlbaGLRY90F8BBbsrlqvTqzC7Y5svvP5ZEPX fdpyO5NZq+MOhXTNFz1MWeEKV8z9QmV2gsGb6O8+bxqfwQ9BLM4pIV9V+SvDt/4RJ1K7 wmCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature; bh=DkMpg+DAZVobJN3z7nH0TAxZiR3oF4oJ3zndpFda8ag=; b=OEFQKCcAW38X2ge0X0h9cZQOvoG16W70ZlPUt4Mq1S2ENXqsAOwytfDxC1Nrf2p+fK rA3cFhgysW1lB8Rec11YuAY37tPEiMJerT/+YDQncgv2O5hlVUbLkMobggvi+5WELb1N cX8li/wQpP9tvqDimbMJdwXSW62mOo3BL3l4vY8Cx7rHtVnq/ngcJJWRn9AUjaKoyPS4 DwmckQojCjwShgT1TfBZyzgsMCOH+7Z8LAGZ1oCm6EuCH2+OoLNOSueFBJS/56cur+44 /jDOWrv4I/owSmRQKfuFQlKQGEutFCGygXfsp7wgOM4hCCx+shBqMJPmTDAMLwesqg29 TBGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iaSiRWtO; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cc27si4983194edb.544.2020.05.16.18.17.22; Sat, 16 May 2020 18:17:45 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=iaSiRWtO; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726880AbgEQBQG (ORCPT + 99 others); Sat, 16 May 2020 21:16:06 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:48369 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726833AbgEQBQG (ORCPT ); Sat, 16 May 2020 21:16:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589678165; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DkMpg+DAZVobJN3z7nH0TAxZiR3oF4oJ3zndpFda8ag=; b=iaSiRWtOYjwQRzRNseQg1TFLt0j1Z+mny0K/v7LWz9/rIKE/Ncl0bs/yxBO5gz1VRcF9// 464/Mc1zfeoNJ5LcpwrAKtOsc4sNDvamRZQq3MqYDtHforV8wvrzMKgFJ+bJFBo647+Qmv kmF5OfFNfxPPYWLjNhlC7vnXgX1If3U= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-291-sw_h2SfLOCSt6ovumpljBA-1; Sat, 16 May 2020 21:15:58 -0400 X-MC-Unique: sw_h2SfLOCSt6ovumpljBA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 771F01009440; Sun, 17 May 2020 01:15:57 +0000 (UTC) Received: from llong.remote.csb (ovpn-112-26.rdu2.redhat.com [10.10.112.26]) by smtp.corp.redhat.com (Postfix) with ESMTP id E7D805C1D6; Sun, 17 May 2020 01:15:55 +0000 (UTC) Subject: Re: "BUG: MAX_LOCKDEP_ENTRIES too low" with 6979 "&type->s_umount_key" To: Qian Cai , Peter Zijlstra , Will Deacon , Ingo Molnar Cc: David Howells , Alexander Viro , linux-fsdevel@vger.kernel.org, Linux Kernel Mailing List References: From: Waiman Long Organization: Red Hat Message-ID: Date: Sat, 16 May 2020 21:15:55 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/15/20 1:21 AM, Qian Cai wrote: > Lockdep is screwed here in next-20200514 due to "BUG: MAX_LOCKDEP_ENTRIES too low". One of the traces below pointed to this linux-next commit, > > 8c8e824d4ef0 watch_queue: Introduce a non-repeating system-unique superblock ID > > which was accidentally just showed up in next-20200514 along with, > > 46896d79c514 watch_queue: Add superblock notifications > > I did have here, > > CONFIG_SB_NOTIFICATIONS=y > CONFIG_MOUNT_NOTIFICATIONS=y > CONFIG_FSINFO=y > > While MAX_LOCKDEP_ENTRIES is 32768, I noticed there is one type of lock had a lot along, > > # grep 'type->s_umount_key’ /proc/lockdep_chains | wc -l > 6979 The lock_list table entries are for tracking a lock's forward and backward dependencies. The lockdep_chains isn't the right lockdep file to look at. Instead, check the lockdep files for entries with the maximum BD (backward dependency) + FD (forward dependency). That will give you a better view of which locks are consuming most of the lock_list entries. Also take a look at lockdep_stats for an overall view of how much various table entries are being consumed. Cheers, Longman