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=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham 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 7BA3DC2D0F6 for ; Wed, 13 May 2020 01:53:05 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 47E0C20714 for ; Wed, 13 May 2020 01:53:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 47E0C20714 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=fromorbit.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D188C9000FE; Tue, 12 May 2020 21:53:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CC9099000F3; Tue, 12 May 2020 21:53:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BDE479000FE; Tue, 12 May 2020 21:53:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0083.hostedemail.com [216.40.44.83]) by kanga.kvack.org (Postfix) with ESMTP id A3EBD9000F3 for ; Tue, 12 May 2020 21:53:04 -0400 (EDT) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 69F69248F for ; Wed, 13 May 2020 01:53:04 +0000 (UTC) X-FDA: 76810022688.08.snow55_721562d653961 X-HE-Tag: snow55_721562d653961 X-Filterd-Recvd-Size: 2546 Received: from mail109.syd.optusnet.com.au (mail109.syd.optusnet.com.au [211.29.132.80]) by imf19.hostedemail.com (Postfix) with ESMTP for ; Wed, 13 May 2020 01:53:03 +0000 (UTC) Received: from dread.disaster.area (pa49-195-157-175.pa.nsw.optusnet.com.au [49.195.157.175]) by mail109.syd.optusnet.com.au (Postfix) with ESMTPS id 79961D79337; Wed, 13 May 2020 11:52:59 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1jYgZs-0001dG-SQ; Wed, 13 May 2020 11:52:56 +1000 Date: Wed, 13 May 2020 11:52:56 +1000 From: Dave Chinner To: Konstantin Khlebnikov Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Alexander Viro , Waiman Long Subject: Re: [PATCH RFC 2/8] selftests: add stress testing tool for dcache Message-ID: <20200513015256.GN2005@dread.disaster.area> References: <158893941613.200862.4094521350329937435.stgit@buzz> <158894059714.200862.11121403612367981747.stgit@buzz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <158894059714.200862.11121403612367981747.stgit@buzz> User-Agent: Mutt/1.10.1 (2018-07-13) X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.3 cv=X6os11be c=1 sm=1 tr=0 a=ONQRW0k9raierNYdzxQi9Q==:117 a=ONQRW0k9raierNYdzxQi9Q==:17 a=kj9zAlcOel0A:10 a=sTwFKg_x9MkA:10 a=6R7veym_AAAA:8 a=7-415B0cAAAA:8 a=nNFfUkKyeu1yzWEg-EsA:9 a=CjuIK1q_8ugA:10 a=ILCOIF4F_8SzUMnO7jNM:22 a=biEYGPWJfzWAr4FL6Ov7:22 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, May 08, 2020 at 03:23:17PM +0300, Konstantin Khlebnikov wrote: > This tool fills dcache with negative dentries. Between iterations it prints > statistics and measures time of inotify operation which might degrade. > > Signed-off-by: Konstantin Khlebnikov > --- > tools/testing/selftests/filesystems/Makefile | 1 > .../testing/selftests/filesystems/dcache_stress.c | 210 ++++++++++++++++++++ This sort of thing should go into fstests along with test scripts that use it to exercise the dentry cache. We already have tools like this in fstests (dirstress, metaperf, etc) for exercising name-based operations like this, so it would fit right in. That way it would get run by just about every filesystem developer and distro QE department automatically and extremely frequently... Cheers, Dave. -- Dave Chinner david@fromorbit.com