Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp296815lqo; Thu, 16 May 2024 06:45:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVu32+qMiwjtaHfoJC0W55d5mKVUp1SQ+d2boEU7gihBF6cQmYHyu/3bSKt+xmaK3ODxz6JN0b+rnJfgI1yQRED6O/pPQwE63E8vMAnbg== X-Google-Smtp-Source: AGHT+IHqUKV/85aNWb8JZJztzgfFpJNdDZ6/SETkN/2KcU50SVnusgyCanvXRQYcILqaLzu8gsus X-Received: by 2002:a05:6214:5c48:b0:6a0:cc6b:18b2 with SMTP id 6a1803df08f44-6a16819ec81mr178913136d6.10.1715867110219; Thu, 16 May 2024 06:45:10 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f3053f0si26569016d6.565.2024.05.16.06.45.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 06:45:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181135-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mVCREOuX; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-181135-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181135-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id DE49F1C220A4 for ; Thu, 16 May 2024 13:45:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6180D1482EE; Thu, 16 May 2024 13:45:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mVCREOuX" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74162143749; Thu, 16 May 2024 13:44:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.19 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715867100; cv=fail; b=Xol2KiqKMKaT1QjHM9wL4OeiUrstLpuIyn4HxEsKGwKHhzO9ibPDbTbO4qxlCQ+BITCN4meeISVly+C+uVHQpAR+OStK8mGO2lTEcRiUWdk4yV0Z3OcYHIMgEdcVRO5GF43c7kzwa57oqqLNMl9BDXcZIu60WPd+nghzEPEk4+Q= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715867100; c=relaxed/simple; bh=OWBtXbymqFy188DZSb5SMgGsmVUdLXkFS5swa93/daE=; h=Date:From:To:CC:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=aggPmtH4lrS+25CMOFJVb4qLkDPQUalKx2q81Y1tI64/bjgJKEf3iqSTCj5YWM3TBtefjWdL6AOTqx0VrS8q3HgSua4c+ptF4XZ9jTtbu8SYnZPUEhFl63e1MnZzTiYcG1Avm0HcgA0TXbyNsUjOg+sJ3e8gR7BkHmWck5kPUaE= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=mVCREOuX; arc=fail smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715867098; x=1747403098; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=OWBtXbymqFy188DZSb5SMgGsmVUdLXkFS5swa93/daE=; b=mVCREOuXtPe3DL1fOgghT26nzRp0S6xOogZCFmLeX4x4xvqYdXFHZpe9 RePO4pYt6FQyi6lEhIuOVFLuecYMNuNkFIIYwFtptemcwzNnZsmgXrW/w Rze4ayq0pps2bPibdKAum3cjgUmEMZtN4PSX8FD3+lh2KcbYIAIrn3kJi +jmNiidL8L5bthon3MkvsmNoVfKyi4WIcCZLJjtO50KJAQ3fG3ybAM1Y1 Ha4GT8Ny1K+mxoXIpkShoKT7DZ/8spBRNH5ha+1xvtVJcePy0UME49J32 oCAxHzeUUZhFfeO+IEGml1LKcZl2zNumSB1pdpE820DeF9IFwQhnyWNKD A==; X-CSE-ConnectionGUID: qe3mPtvMQaSN6V2y3vBWiQ== X-CSE-MsgGUID: hfrimIg2Q+m66GjQLxLVUQ== X-IronPort-AV: E=McAfee;i="6600,9927,11074"; a="11829835" X-IronPort-AV: E=Sophos;i="6.08,164,1712646000"; d="scan'208";a="11829835" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2024 06:44:58 -0700 X-CSE-ConnectionGUID: RTETJVVMQKKJucObXW+ZOw== X-CSE-MsgGUID: 7aPxabPgQPWmcVMeVfeuRA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,164,1712646000"; d="scan'208";a="36212184" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orviesa005.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 16 May 2024 06:44:58 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 16 May 2024 06:44:57 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 16 May 2024 06:44:56 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 16 May 2024 06:44:56 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.169) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 16 May 2024 06:44:56 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kZB5qdW6+zT3DxkzYXfSEu3s+NR/nNdwJTbnTk+CYxLY6mSDQwH7UVIiwDe0m0IHdkRCIRy/vn/+h4ASV2e2Dh0qlFl1C006eAy54G6LQhZnF88pZQwghQbe0OgAlEKZ/iQGa8XiUL2bf8DMNht3wZouwoCFZ8hVOGbidYgBWNq3BWVR6ln/grELvjlRWiUh8G20iex4QGqOgAs5muCd8xvYN5AkDB6G72v/lg/kpY1x0hcQYCTR9QJeiEnzM05LpV7p/WSv9fnndYQ8gRJ2VmaaEMn/Dwwq42Y6dg/J0MVSAdvvOlAWzIrk4rAYXQxERA+Yx/kZtBwz7A0CSu6JLg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=llIyIjR4zc7+Ybfw40xPgyU/r9o/86Z4qMS3TgcfOr8=; b=oeAzNi0KpXFCt+HzuJi9FWz5nsPn2uj1FXp9RQ0mDl1GN85vauL3xWXmTr70oPyigjd/zw0if1T8vI3bURZ+CSBXg0C770yS1HRS6rHfX51xW/hltJ9oqkoVy+Sk/xvdJx8eI6OM0xjk6zv7J/GAbBYgNU6naSLa1oxQMU1VQKTk4IlHw6wOGNs3SEcrNCFPgTBznQCnGB+yyqqGCRHU67rXJSb5+gIoz2oHiw2MklM12/7k9jRv1K0myy2O/DCBVHS+PZb8Jng+Chdk02IPZwBgPQit2T5Y/hG1V0tfAgFDsw0nWlKBowbHEeYdeq6glvagQbmySMaqhS5gl1xoIQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from LV3PR11MB8603.namprd11.prod.outlook.com (2603:10b6:408:1b6::9) by SJ0PR11MB4912.namprd11.prod.outlook.com (2603:10b6:a03:2ae::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.30; Thu, 16 May 2024 13:44:53 +0000 Received: from LV3PR11MB8603.namprd11.prod.outlook.com ([fe80::4622:29cf:32b:7e5c]) by LV3PR11MB8603.namprd11.prod.outlook.com ([fe80::4622:29cf:32b:7e5c%2]) with mapi id 15.20.7544.052; Thu, 16 May 2024 13:44:53 +0000 Date: Thu, 16 May 2024 21:44:43 +0800 From: Oliver Sang To: Linus Torvalds CC: Yafang Shao , , , , , , , , , , Matthew Wilcox , Subject: Re: [PATCH] vfs: Delete the associated dentry when deleting a file Message-ID: References: <20240515091727.22034-1-laoar.shao@gmail.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: SI2PR06CA0014.apcprd06.prod.outlook.com (2603:1096:4:186::11) To LV3PR11MB8603.namprd11.prod.outlook.com (2603:10b6:408:1b6::9) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LV3PR11MB8603:EE_|SJ0PR11MB4912:EE_ X-MS-Office365-Filtering-Correlation-Id: cbe890fa-e902-458e-8891-08dc75ae5d7f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|1800799015|376005|366007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?UNAdrxII5ofQIWYty1qpH16Unf7l9WXeUtc1PEj1xnz5mOauWXYoCPMfMFRq?= =?us-ascii?Q?9BdaXc2wmNIneAJ3gcC1o8+Ol1FI33HIqh3zotC8V9045ii6Zx/93ePuKC+o?= =?us-ascii?Q?NjONUPKH5xOxXoNPenjxMurPFg6PTXjIpeE5WTdv5+N4gb+W9zv8nrcu51nO?= =?us-ascii?Q?vYFG46Zgc5wJut0kppVZfEvfORUexGNJMw9/deGEV9INiywwOS+73hiYEQ+g?= =?us-ascii?Q?Vtl1VTHyXGSqMMgZQQjYBhGLVBFDkVx6FezR1d7cKc2ilTtppbvIpDCFdCJh?= =?us-ascii?Q?FEoOE4qmwMKYOGo2n7qyqvesCSeNrOdudniiEEotbOJa5NcLMOKitezqUWVP?= =?us-ascii?Q?GgRPzHtdBTa4UrjUp5OUKZfv2adHvojTenVgEtvWYoBJ6/o0gx/TGhSL2Smd?= =?us-ascii?Q?sczJBUWbLJ9VXa5FVfh+oLAzCo51DI3Yai2VCySReQOZDASTCvRTroL20+n6?= =?us-ascii?Q?7KlK5w5A94aga608kxMbjCAMbLDk2iYTIuRmGVc1kbI1fcy25iR95FUEbN45?= =?us-ascii?Q?MfZEo5ovm301hklxDvQebfQ/60PEbs72wDhdwA8OFgJgEn7lhxpznoVwgMKN?= =?us-ascii?Q?lMBhPtdK7SGBZKWyBVsi6A/uObAfXtxeWyhZFRltvY2pKgj+ssnv8eh777W4?= =?us-ascii?Q?u94whRLQVANZx7lUFef4rEBzqZwRyag10IZdT7JSIwv9O98gVmp5sA/ibOtm?= =?us-ascii?Q?iPXaw0e6VTdEwZBZq8oTTnKgqvZp49sfeKEt8jD8GpjLZS9avFFjlxLenxMT?= =?us-ascii?Q?39GNNEx7Cnvk9SEruXX52BIYrC7IAwGf7ny8OLdZvLgrfwmlhV1fZegGJwwJ?= =?us-ascii?Q?FdtWicbdXxQr6vKEj6KR2wDXxq25wII/hSfQNEBByTLXwUitKji9/vkorb1b?= =?us-ascii?Q?7afTPisbYVHmYjUYFlIagw7/N0SuEq3EyJMAypbTZeRta21nvPbbk261dk4R?= =?us-ascii?Q?UrXOOcrNNz+O+NpXr9s2fhcXW+c94bnapuocwbKp7XLbT8wvidmovKzHXcFg?= =?us-ascii?Q?T5fGvw7LpgS3ayrdS4kvzXHJZOUPrgEmOzaQT0eRnsOjj8Lqow1lPNoNdo91?= =?us-ascii?Q?N0j5U+w+l/8PQLE7YXoP94mtozhyhSSAUF5DZbLEQiD9FjM8F3J1EuUseouX?= =?us-ascii?Q?K3y7mIT83ELwTBFcwQkqv92x+fzwG14W061QRIgeJcJdLEVW6wY31TLO6LVy?= =?us-ascii?Q?sBCh+46d7CSjOrBD70GwWOf6j+R6QHzqW9/BUWIkeYQWbuDT6o/4YSNcK8I?= =?us-ascii?Q?=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LV3PR11MB8603.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(1800799015)(376005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?YjICljJ2bckC92hdM1eLsqNOsgPN+iiMrGwE0cthX9y1HGzOHLfb/GkZc1vO?= =?us-ascii?Q?4cDDFn6RtTjK9M49tHT3KwG1q7fvDtpynAMZHREvG6kSdhatKGXfHF+znF66?= =?us-ascii?Q?/3sP5VMJ6PS0sGxILalCL5huLjckyZOShmb/9suwD7QCk6uonTboBzsixxDL?= =?us-ascii?Q?iBoUVe56At4HyzlE8TocBBKS1raAqR3REnUrzWgP+eQbG2vRk2EsAqtxLAu5?= =?us-ascii?Q?RIHUa6MEfk8X6NXtZ6AHhloqAvtV8BN38AXaLah4mQAHHMUKccJlWOl4OrJS?= =?us-ascii?Q?z5jtWvOAtTgOifJ4LzX5lEOZwz894aEitZEOn7fShxJjSWIQlFm+ZiYrY10L?= =?us-ascii?Q?ZNyjyKyaFb1NcKGawZqv0rriD1PnFa4ZCMz2qtponr/j3vBd+nYybuog7HKb?= =?us-ascii?Q?YuvMh4LYv13PI+EMOKBDLQq+Yg7QP+oUuNOmiZ+oWUcuy8VOdC5UAZTJS6i+?= =?us-ascii?Q?HLOGH985Nvnyoi8FgVi4l5PEZwI4nAe8ymiRHC1EV7f4p1kxX79azwbQO9lB?= =?us-ascii?Q?PokR55tKL4wiXZTVAIrRv0iLgiv4jmPHD5vDdacxRg2ws4PvttZ183M03mI2?= =?us-ascii?Q?VIe/zhFrtQdTUNwnXlB1yOy1EY59xqVAngt3vu04pNB0DfSKvcFy6uTEpQr+?= =?us-ascii?Q?nT720qU7X7H8RbGdf+UmEgNgX8ZPyhTUkPQ//6xaPziMkewleU1MfN4/pioe?= =?us-ascii?Q?peygIISYMESMA5uK8LnKDfLYe8auhmkw4cKyxf8GxDsTaB4Q9ov6gZ94FTmm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Exchange-CrossTenant-Network-Message-Id: cbe890fa-e902-458e-8891-08dc75ae5d7f X-MS-Exchange-CrossTenant-AuthSource: LV3PR11MB8603.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2024 13:44:53.6573 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: w69Yohv5ORcMALez8+zs/uX+L8ctIB1EFrDZXbIk3egwL/+8jGtiLBwVdmuIbs+Yf7Bn4yo7KLpakeFwz+lALg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB4912 X-OriginatorOrg: intel.com hi, Linus, On Wed, May 15, 2024 at 09:05:24AM -0700, Linus Torvalds wrote: > Oliver, > is there any chance you could run this through the test robot > performance suite? The original full patch at > > https://lore.kernel.org/all/20240515091727.22034-1-laoar.shao@gmail.com/ > > and it would be interesting if the test robot could see if the patch > makes any difference on any other loads? sure. it's our great pleasure. thanks a lot to involve us. the tests are started, but due to resource contraint, it may cost 2-3 days to run enough tests. will keep you guys updated, Thanks! > > Thanks, > Linus > > On Wed, 15 May 2024 at 02:17, Yafang Shao wrote: > > > > Our applications, built on Elasticsearch[0], frequently create and delete > > files. These applications operate within containers, some with a memory > > limit exceeding 100GB. Over prolonged periods, the accumulation of negative > > dentries within these containers can amount to tens of gigabytes. > > > > Upon container exit, directories are deleted. However, due to the numerous > > associated dentries, this process can be time-consuming. Our users have > > expressed frustration with this prolonged exit duration, which constitutes > > our first issue.