Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2266922rdh; Tue, 26 Sep 2023 19:06:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHdLpLNBetT/ertPlaF65p5t3KcNV87bREcwdHpSfMshUZhtCKjCf5cZOkbjRQ0cU4M7POn X-Received: by 2002:a1f:4987:0:b0:496:2e22:29e3 with SMTP id w129-20020a1f4987000000b004962e2229e3mr697030vka.1.1695780364772; Tue, 26 Sep 2023 19:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695780364; cv=none; d=google.com; s=arc-20160816; b=nvLOd7WENMFbJw0Vzow22t8GFzfrXfb5WY8T9lxH53tHzeUBygXcLL0J3FBDzYtMbq pejg8QSmH3MdGLO5AzqWUp2Rg7e+E6Zoemf5WeVqpg3UUOFjO0N4DPZnVL2VNaoMVvUv RWsFVGPwf2jhtmwLGMVG3yiTSEKu7F0gAwEF+uc1uiHrAoPiPzR9YesQwdAZJFDojsa7 E4T5FA4xhmEIGJUMl9ooH33XYOcP0ri5sFz0n4lxD3Nonk0UrjjuI23B+6xz4xY1DHnP oSlNGpTtfPlqQjwqqq3okBFinCexxUfMJEIP2KMsQlZJoirGYnc5lb/ui5OfAlCOqC0b h//g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature:dkim-signature; bh=bVtmHHpgJCvGOFI6j4m1G3ZAqun1acSnHjfkUYd7U/I=; fh=tgqP6l86OTa9nOMUE5rNFAvzZlTxofvPPUYnsBo6uKo=; b=oXgkzDQlnuPeVU6uzIJrsotPI4z9Mh2a7PVdyih522xGZ4fnJMdlMtmdGATH2+75jz 4QyYGa5UcY0HFL9s2cu07oNYZfRuzHH2LlP1lyS6Gb/0Fceo6yHlMmyqtgH/SWbFs32p 62ukWBLJnJmOPIngELCfRz4V1JmthpHbuq9MwfUfEgX3NIDZt0mPY8YQgrhH/2XayApc /71MhofBYIEMHChT22LQygkingejK5zS6BmJ8Et8LmJoKrtkZMaEN2j+LeqhlbczVKGT uQ/5Cn20mCctXxdS3It1nsNYUsZSp7Jml0mxN8ygLBwYv0sSS+2FSfU2sc2m9n7gR6yY 7Zxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (no key) header.i=@darkrain42.org header.b=9CNMYB3T; dkim=pass header.i=@darkrain42.org header.s=rsa-2022-03 header.b=W9a9iBrX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=darkrain42.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id a10-20020a056a001d0a00b00690ccc67aa4si13908931pfx.198.2023.09.26.19.06.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 19:06:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=neutral (no key) header.i=@darkrain42.org header.b=9CNMYB3T; dkim=pass header.i=@darkrain42.org header.s=rsa-2022-03 header.b=W9a9iBrX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=darkrain42.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 5A77F801D807; Tue, 26 Sep 2023 18:56:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235091AbjI0B4H (ORCPT + 99 others); Tue, 26 Sep 2023 21:56:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235362AbjI0ByD (ORCPT ); Tue, 26 Sep 2023 21:54:03 -0400 X-Greylist: delayed 392 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 26 Sep 2023 18:00:44 PDT Received: from o-chul.darkrain42.org (o-chul.darkrain42.org [74.207.241.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E83E616E81; Tue, 26 Sep 2023 18:00:44 -0700 (PDT) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=darkrain42.org; i=@darkrain42.org; q=dns/txt; s=ed25519-2022-03; t=1695776052; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : content-transfer-encoding : in-reply-to : from; bh=bVtmHHpgJCvGOFI6j4m1G3ZAqun1acSnHjfkUYd7U/I=; b=9CNMYB3TlWXem1lRqknxmOBYkF+aJVQ/zUy4wfeS5FtjpV50zJv4hKs6uPjnk+l7o7TFY vRQhlrEG+oguS1pBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkrain42.org; i=@darkrain42.org; q=dns/txt; s=rsa-2022-03; t=1695776052; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : content-transfer-encoding : in-reply-to : from; bh=bVtmHHpgJCvGOFI6j4m1G3ZAqun1acSnHjfkUYd7U/I=; b=W9a9iBrXr2byHDgqBLXaHtOItJyJQ/wrXhNEfrls49oh93nGVDFbCnwo18KdU1lhyYgeR wE4syUf8u6MD7hQmm2Qtix/rsrqGJ2/TPqohtkz2HSH6si6f50Ml96bvcjdtum8NuvYcCgY sFKj1GQUW+CcEyGqwo7ZOx/xghZzrz62LyghWF7vZeQc8W4v4kumfB9qwU6mkaIciIU4Sij dAhherZwqLUtl3DuxF+yWF4YZ0bcGHLV6KBwI6G0oRYItqMrXROxfVC3l7k8Vd4t1x2bRgI RnvW6EpERdjYfnSMPXTzxKfqTbtSceFm1jGa9SMx/1LevQ2WwjBpQytF9g0Q== Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature ED25519) (Client CN "otters", Issuer "otters" (not verified)) by o-chul.darkrain42.org (Postfix) with ESMTPS id 049828162; Tue, 26 Sep 2023 17:54:12 -0700 (PDT) Received: by vaarsuvius.localdomain (Postfix, from userid 1000) id 96EC58C247B; Tue, 26 Sep 2023 17:54:10 -0700 (PDT) Date: Tue, 26 Sep 2023 17:54:10 -0700 From: Paul Aurich To: Steve French , Tom Talpey Cc: Brian Pardy , Bagas Sanjaya , Linux CIFS , Linux Kernel Mailing List , Linux Regressions , Paulo Alcantara , ronnie sahlberg , Shyam Prasad N , Bharath S M Subject: Re: Possible bug report: kernel 6.5.0/6.5.1 high load when CIFS share is mounted (cifsd-cfid-laundromat in"D" state) Message-ID: Mail-Followup-To: Steve French , Tom Talpey , Brian Pardy , Bagas Sanjaya , Linux CIFS , Linux Kernel Mailing List , Linux Regressions , Paulo Alcantara , ronnie sahlberg , Shyam Prasad N , Bharath S M References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 26 Sep 2023 18:56:13 -0700 (PDT) On 2023-09-19 13:23:44 -0500, Steve French wrote: >On Tue, Sep 19, 2023 at 1:07 PM Tom Talpey wrote: >> These changes are good, but I'm skeptical they will reduce the load >> when the laundromat thread is actually running. All these do is avoid >> creating it when not necessary, right? > >It does create half as many laundromat threads (we don't need >laundromat on connection to IPC$) even for the Windows server target >example, but helps more for cases where server doesn't support >directory leases. Perhaps the laundromat thread should be using msleep_interruptible()? Using an interruptible sleep appears to prevent the thread from contributing to the load average, and has the happy side-effect of removing the up-to-1s delay when tearing down the tcon (since a7c01fa93ae, kthread_stop() will return early triggered by kthread_stop). ~Paul