Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp924711rdb; Tue, 19 Sep 2023 14:43:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGxXEbWGDMeCZx8uxUjpFG1cZYeuE/AXjncGQ+51IB6fxBwdaHtKZ+vv9skW2aq0oJ9Li8g X-Received: by 2002:a05:6a21:a590:b0:134:2b31:e2a9 with SMTP id gd16-20020a056a21a59000b001342b31e2a9mr1176162pzc.0.1695159791214; Tue, 19 Sep 2023 14:43:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695159791; cv=none; d=google.com; s=arc-20160816; b=CnQs/kFH1VObxY2NZgYTz1a0LaHPSG7sJQiy/qqZNv/dZ3/eEKqKs9CRnMMmazVk+c br1ymqyrTVT1ssJ/rqRAKMoKAXvq4ky2C3h/vZg2kVEmWspBntHOkVTFO3JLrCy10DBr ve+WcEcZZyCM9VC5cbGsK6pOaXukRblu/dh2Hw3G1iSmlNsRY51/nOtz3IPSq1XG3ZnC c1J3WKpx+1KXC+lBg/RnOSCtH45XvAwvaaoH7WaxLyOd9ayOBvmAFoPi6W8+JCFZ+4B1 37A52tUQocgH63GejwtgznZgbWcLRROYyBLU5zo0bU9Vc3GtUEUnda2gFiNL2BkCuG3o /ZSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=7kny2NAkyZcSHmecq8iXutP5/vcR/e3ga9/aerU/vXg=; fh=i5/l9PytG9bqGvSF6NRgOUoYetO3EDFz1LBfwpwYSvE=; b=mspyhora9tqspR8VVmay/+7RQIEDgrOweuTgd6vPDFzKkDTNguW91aiTk3KanSp27D 5Ag+KLF85l/uCelPGmBZhjtHzS3Eqq/B4buY1ydRkTSpoZAbNz0klVThGkSKGtnuph2K 3Y+LOKBh6WyeBDEcgcNDGd6/63Yd8tKa7F/Lpqoz4QBXs4uFwaU9YSfdl30aExbDynYL 9SgNHvuGIc9U6uhJ1hG1jc7q7AZO9Au2eI8hN7Gxdxn2hSZbqwZyLz0XwVdnJUsPxwcV GnYFqiAjLolh2c54C7rsL2BQiA183sSUNUvs3CNbeLyvUXzCbt5jS++sNQeoENkvWLxo eyEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Sl7o99Kx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id d15-20020aa7868f000000b0068fa7f9b04bsi744020pfo.49.2023.09.19.14.43.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 14:43:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Sl7o99Kx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id A60A4802A5B1; Tue, 19 Sep 2023 10:44:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232031AbjISRoP (ORCPT + 99 others); Tue, 19 Sep 2023 13:44:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232486AbjISRnt (ORCPT ); Tue, 19 Sep 2023 13:43:49 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B6F4E7F; Tue, 19 Sep 2023 10:42:57 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-530ea522f5eso3363810a12.3; Tue, 19 Sep 2023 10:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695145376; x=1695750176; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7kny2NAkyZcSHmecq8iXutP5/vcR/e3ga9/aerU/vXg=; b=Sl7o99KxtRlUuyb6TtD0H3XQJ/fct5TjvkET8USkM+U3qSdo3Womqj/+RjeZdUzRR7 H3OGwOh7Hoie4KhUlmJyRQ8KZeZW5RHUoQszu81kYOTTBN55ydG4dAdv/vEGBUjQfoyV GDHGPSwxu0v9tEYsRn5zCtlOwzhZIZExSvQEkCr3oteM6Q1yxBhT16mCFY6A7Bjnw2uG ub6dWrjELqg0GgEmII0bn13W6oUC7YKH5/lSu7768Tcs4blAFkorg5jI1QDA7FmbdzMi Xe1qaD2D2EOIfCpqIwX2a+Ndv1woNU11PBRAy7OudfoD3gda6CPzaGHYxMMcQb6s/VIg N+Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695145376; x=1695750176; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7kny2NAkyZcSHmecq8iXutP5/vcR/e3ga9/aerU/vXg=; b=V2bn/v0uhs7+WTdCezg0SCmvnEJOHpLN8gF9HU9Ec9rPhlsOr532Q9V4cu0CDt1fAO tnq2n/GxqG2Er4zhHoke34jLkwm9J9A2/OtVoJAGjthbb95QrkfiC3xMDl7RYy05l4OP mLT3Pgf2BItbMjCZPkT1gaqc3LyvDM/MkKvbxnGWF9zIoaIHBJiseaYAONDAEf4woyZw VYrWfLLksQo+87Z2iqxWmAUGtnoMXZn9wW0dOv3eAiWmouiM57eGZEf03JT1QNffMuwy CZzexUq+pgDbR4N6Hv/80oEwnwirzm3CnikXQ1Rxd4fYSno44Z+HFfMjQjl7IGQDCJCp l1AA== X-Gm-Message-State: AOJu0YyjRdLX804vVqN6nmR9RNrhCWPr7ZVPkdholL2LwVf3d7UvPnzv dlJLbZb72RcdRv6AVZV5gS+ckyLfmr1PvPFZ1GA= X-Received: by 2002:a17:906:18:b0:9ae:38c5:1d94 with SMTP id 24-20020a170906001800b009ae38c51d94mr71777eja.70.1695145375580; Tue, 19 Sep 2023 10:42:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Brian Pardy Date: Tue, 19 Sep 2023 13:42:44 -0400 Message-ID: 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) To: Steve French Cc: Bagas Sanjaya , Linux CIFS , Linux Kernel Mailing List , Linux Regressions , Paulo Alcantara , ronnie sahlberg , Shyam Prasad N , Bharath S M Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 pete.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 (pete.vger.email [0.0.0.0]); Tue, 19 Sep 2023 10:44:19 -0700 (PDT) On Tue, Sep 19, 2023 at 12:39=E2=80=AFPM Steve French = wrote: > > Minor updates (pointed out by Paulo) to patch. See attached. I can't comment on the updates between the two versions of the patch, but I can confirm that the second patch also works as expected to resolve this issue on my system. -Brian > On Tue, Sep 19, 2023 at 8:21=E2=80=AFAM Brian Pardy wrote: > > > > On Tue, Sep 19, 2023 at 1:36=E2=80=AFAM Steve French wrote: > > > > > > Does the attached patch help in your case? It avoids starting the > > > laundromat thread for IPC shares (which cuts the number of the thread= s > > > in half for many cases) and also avoids starting them if the server > > > does not support directory leases (e.g. if Samba server instead of > > > Windows server). > > > > Hello, > > > > I applied the 0001-smb3-do-not-start-laundromat-thread-when-dir-leases-= .patch > > you provided against the 6.5.3 kernel. > > > > I can confirm that it resolves this issue - no laundromat threads are > > created, and the reported load average is as expected, not falsely > > high. > > > > This appears to fully fix the issue in my case. Thank you very much! > > > > > On Mon, Sep 18, 2023 at 10:00=E2=80=AFPM Steve French wrote: > > > > > > > > Paulo and I were discussing the laundromat thread at the SMB3.1.1 t= est > > > > event (at SDC this week) which is now going on - will let you know > > > > what we find. > > > > > > > > One obvious thing is that it probably isn't necessary for cases whe= n > > > > the server does not support directory leases, but we noticed anothe= r > > > > problem as well. > > > > -- > Thanks, > > Steve