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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DF0BC004D4 for ; Thu, 19 Jan 2023 09:05:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B6C2B6B0072; Thu, 19 Jan 2023 04:05:30 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B1C536B0073; Thu, 19 Jan 2023 04:05:30 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9E4066B0074; Thu, 19 Jan 2023 04:05:30 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 8CFAD6B0072 for ; Thu, 19 Jan 2023 04:05:30 -0500 (EST) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 6664F80D0A for ; Thu, 19 Jan 2023 09:05:30 +0000 (UTC) X-FDA: 80370965220.10.9F7230C Received: from lgeamrelo11.lge.com (lgeamrelo13.lge.com [156.147.23.53]) by imf09.hostedemail.com (Postfix) with ESMTP id 1E19F140019 for ; Thu, 19 Jan 2023 09:05:26 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf09.hostedemail.com: domain of byungchul.park@lge.com designates 156.147.23.53 as permitted sender) smtp.mailfrom=byungchul.park@lge.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1674119128; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=j/PuneKuRWRSM01Cd2esSGW0W5NB1uOVNZDrKf57Des=; b=DaR/wn1GvgyVwBuwfMwWuIqlMo6+EFRzje9kUFiw1d+6CE/+rg8f8xVmgGv7FBbZVqyKAA ewnio6HjtE+NHbYLqEF4zr625Moj6EFseGY+hsANpWJ4fO6xMCFfpMfwbZ3CxLD84ot26w byLMDcLHy6agMJLT1imM7Tf4QOxbsqE= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf09.hostedemail.com: domain of byungchul.park@lge.com designates 156.147.23.53 as permitted sender) smtp.mailfrom=byungchul.park@lge.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1674119128; a=rsa-sha256; cv=none; b=1sgICBmoRPB1y0DYOGRkbdwbhwgJMWVcGfsnU7cvXBCTqIu37+17Fr8a1B7mQ9/lG4/gUX 3f/L2MtH3QHULMC8mEZq5WhyrGE2ZedGuZ5QXFYrozhXUXgZ2Be2gUIWBcKlIljFU01Zgr VPVNmkwdjc7Q4cmJOcLMyZzkyV2ZhtU= Received: from unknown (HELO lgemrelse6q.lge.com) (156.147.1.121) by 156.147.23.53 with ESMTP; 19 Jan 2023 18:05:24 +0900 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: byungchul.park@lge.com Received: from unknown (HELO localhost.localdomain) (10.177.244.38) by 156.147.1.121 with ESMTP; 19 Jan 2023 18:05:24 +0900 X-Original-SENDERIP: 10.177.244.38 X-Original-MAILFROM: byungchul.park@lge.com From: Byungchul Park To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, damien.lemoal@opensource.wdc.com, linux-ide@vger.kernel.org, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, will@kernel.org, rostedt@goodmis.org, joel@joelfernandes.org, sashal@kernel.org, daniel.vetter@ffwll.ch, duyuyang@gmail.com, johannes.berg@intel.com, tj@kernel.org, tytso@mit.edu, willy@infradead.org, david@fromorbit.com, amir73il@gmail.com, gregkh@linuxfoundation.org, kernel-team@lge.com, linux-mm@kvack.org, akpm@linux-foundation.org, mhocko@kernel.org, minchan@kernel.org, hannes@cmpxchg.org, vdavydov.dev@gmail.com, sj@kernel.org, jglisse@redhat.com, dennis@kernel.org, cl@linux.com, penberg@kernel.org, rientjes@google.com, vbabka@suse.cz, ngupta@vflare.org, linux-block@vger.kernel.org, paolo.valente@linaro.org, josef@toxicpanda.com, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, jack@suse.cz, jlayton@kernel.org, dan.j.williams@intel.com, hch@infradead.org, djwong@kernel.org, dri-devel@lists.freedesktop.org, rodrigosiqueiramelo@gmail.com, melissa.srw@gmail.com, hamohammed.sa@gmail.com, 42.hyeyoo@gmail.com, chris.p.wilson@intel.com, gwan-gyeong.mun@intel.com, max.byungchul.park@gmail.com, boqun.feng@gmail.com, longman@redhat.com Subject: Re: [PATCH RFC v7 00/23] DEPT(Dependency Tracker) Date: Thu, 19 Jan 2023 18:05:11 +0900 Message-Id: <1674119111-12759-1-git-send-email-byungchul.park@lge.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <873588j92x.ffs@tglx> References: <873588j92x.ffs@tglx> X-Rspamd-Queue-Id: 1E19F140019 X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: 18ugb8inr896tzq7owxyiq7krpwamdtu X-HE-Tag: 1674119126-737189 X-HE-Meta: U2FsdGVkX18wz1mCT15c2pEXLBnZfSNkdmFyqN0uF2z6MOEShuzbPjqNuQ1VWxJyQptmudcHxBgEFutvySveyweiJXZHZMaMb3HKRqzvDy4NuvO9r+ctQhwvsLG6kBvdazyGcu8ZaXS+wn3SwnkrZf/h2RNdGk8ALgmHmynHrkyR2Oe+WdYFWiyzBed36cfWLW03TfbYauWpS2Rq1fHga2wF7M43NMHHoZqPGkCE1q5EKqnDp0Xi9qOC59FvdhK28/5zWCVgXNbU0wnaYaUp8vKWMBi0x5Ob4QUevoWDY/GQReGYium6wQreR69HLAT2XMzUMG10/+4AmFN3EYeq7ZCAeN6dplasTi79XgfwKV2kOr3inrrumfleHgVy09RcX4lW6TSSGPi7MlFhpdn3KQj3ILvu9G75+UHDcHt4NQGw5+a1DfwntNnd/4rDXrs+5tClqriny0Qiwi0trKMWRWQeDPMLw/0XrWFvXc1Q7b9OXgNS+7hUbGypzNTJFSMBQeHu7mhx1jQwBXWlJCwjazfd1b1enPivrBCoWmuYLYCEve/TN7l4olZbuIcKV7zT8Qho/Cpgk4fqXa3qQcYPjXTwqNfx6UkxHgPUDrVuj8zoQWaqAYbtlA9GPphSACZ68bi6nmrQI6wFxz6Rqjj3YpQ5sOKzFI4/TJwQkqi5xx94o+UTCl15u0YyhODCmBBnptu/zpXpgQMOeWJP5Cg86YWkJkVpr9XHLwGGNZzOcCFmfo5Tp8RHNKDmsjGXp6sUlgBtOx5sW9JMjVRAUJUR1Lse03C3AbHJFFkx+7gcJa6RV4Apkl/ch1WA/4BonEVzstbQ2Ca6o6I5rxQKUuwxaA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Thomas wrote: > On Tue, Jan 17 2023 at 10:18, Boqun Feng wrote: > > On Mon, Jan 16, 2023 at 10:00:52AM -0800, Linus Torvalds wrote: > > > I also recall this giving a fair amount of false positives, are they all fixed? > > > > From the following part in the cover letter, I guess the answer is no? > > ... > > 6. Multiple reports are allowed. > > 7. Deduplication control on multiple reports. > > 8. Withstand false positives thanks to 6. > > ... > > > > seems to me that the logic is since DEPT allows multiple reports so that > > false positives are fitlerable by users? > > I really do not know what's so valuable about multiple reports. They > produce a flood of information which needs to be filtered, while a > single report ensures that the first detected issue is dumped, which > increases the probability that it can be recorded and acted upon. Assuming the following 2 assumptions, you are right. Assumption 1. There will be too many reports with the multi-report support, like all the combination of dependencies between e.g. in-irq and irq-enabled-context. Assumption 2. The detection is matured enough so that it barely happens to fix false onces to see true one which is not a big deal. However, DEPT doesn't generate all the combination of irq things as Lockdep does so we only see a few multi-reports even with the support, and I admit DEPT hasn't matured enough yet because fine classification is required anyway to suppress false alarms. That's why I introduced multi-report support at least for now. IMHO, it'd be still useful even if it's gonna report a few true ones at once w/o false ones some day. > Filtering out false positives is just the wrong approach. Decoding > dependency issues from any tracker is complex enough given the nature of > the problem, so adding the burden of filtering out issues from a stream > of dumps is not helpful at all. It's just a marketing gag. > > > * Instead of introducing a brand new detector/dependency tracker, > > could we first improve the lockdep's dependency tracker? I think > > Byungchul also agrees that DEPT and lockdep should share the > > same dependency tracker and the benefit of improving the > > existing one is that we can always use the self test to catch > > any regression. Thoughts? > > Ack. If the internal implementation of lockdep has shortcomings, then we > can expand and/or replace it instead of having yet another > infrastructure which is not even remotely as mature. Ultimately, yes. We should expand or replace it instead of having another ultimately. Byungchul > > Thanks, > > tglx