Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1411327pxb; Wed, 6 Apr 2022 18:08:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhg/VFdJX/9vaRY/H2URVKGJvWHSNmIgwBvjXGOhwzmbaJ/y4vi9bzfEvkZmgj3E/1tw0i X-Received: by 2002:a17:90b:352:b0:1c6:77e:a4f7 with SMTP id fh18-20020a17090b035200b001c6077ea4f7mr12830942pjb.77.1649293684895; Wed, 06 Apr 2022 18:08:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649293684; cv=none; d=google.com; s=arc-20160816; b=Mb2eYiEdYWt9GFAXJ/IYXhTIBJ/4DhbVYNgh1zYSu5recJWbVqpwGG4zUY0jaLTxXD G8llSVhYNur3veUxkRzBNl2v0hHB+H+eKsmcMqyIyUp4YMvcZeGoLMDHcIhlHWiAqSvL ckazHbIYV60W6004CL3rs9TAqDbT2xpkiu1538agmZxTCB7Qa58bE87+IEU99c/6RcOY UyH+qiUdxcdSNFYAhx3yA9ChwFrk1VW/zFkJgOyh1cGpvUV1zqgJ18wHsYMxHuvIqgFB aYB+J0xi8wiGQI+Qe7r8yV2iq2TW5XJzi3BeJlGIdjBM0gZSbDVeGltdDzPgHkWQl4md 6eFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=v3pW6Wkg4mFZYigeP74v+8mIq5ePJzzu1u51lT1zjcQ=; b=1DBHaIYEa9TxZ7xdC6WLlR2+NQpXxYKka7xs6IPG9lzQJIFqD1/KgSu9vZAkSBH0ev cS2Kb18FUbIRUuzFBVA7Q/gMopKD0Nqvg/58zXV1abnZdLac1LMCgrh9KTGLuhk7eLmM z+i9BQXtw1uy5gf2t3cEhJfvtNQn16YLjfYZYdDf94XtnZbBk559PyFzKLGpBBdwSghW 1AjzFfqt+ihuhW0NW97lnirTW2qkEFRLXNT8TcDkvdYt9PWgz77Qb4o+a6lWVt6tsVDX eNh0/8Dok6jirKM4mUquyM22jHJvyu8+f7ofZXml9ReNpZOOMXvRGn3c3O1jcDWUVgDu VofA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=VcMcFLYu; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a056a00194400b004fa3b635a94si18141832pfk.111.2022.04.06.18.07.18; Wed, 06 Apr 2022 18:08:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=VcMcFLYu; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231819AbiDGA3q (ORCPT + 99 others); Wed, 6 Apr 2022 20:29:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231575AbiDGA3q (ORCPT ); Wed, 6 Apr 2022 20:29:46 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99BDF4E398; Wed, 6 Apr 2022 17:27:48 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 20D3E1F859; Thu, 7 Apr 2022 00:27:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1649291267; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v3pW6Wkg4mFZYigeP74v+8mIq5ePJzzu1u51lT1zjcQ=; b=VcMcFLYuO6Zbk96saqYasfXMTJw2nTwyy3FRhy/SdxZ6rv7AaG3ZwM9FD9IKYyQA4BW6R1 or1TFcb8PfVgLjbmmjHEM91HJW17cLDav/LfsG20ttzeqRDWQHzdB/CJSow1SuLX1zP5FT OKzE0cnLsVdn12NWUp1ol5ovF7NOG9Y= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1649291267; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v3pW6Wkg4mFZYigeP74v+8mIq5ePJzzu1u51lT1zjcQ=; b=Y/nzWcidoiH4397dxiunxniX3T/ko8ndFmzYp6hgZrJ+7GqyU06Lz804wmSFWVGvC9fB/C vIsa3/MSbt7i2EDg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 02A1C13A9C; Thu, 7 Apr 2022 00:27:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 8xmTKwAwTmK0bwAAMHmgww (envelope-from ); Thu, 07 Apr 2022 00:27:44 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Dave Chinner" , Trond Myklebust Cc: "J. Bruce Fields" , "Chuck Lever" , linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: sporadic hangs on generic/186 In-reply-to: <20220407001453.GE1609613@dread.disaster.area> References: <20220406195424.GA1242@fieldses.org>, <20220407001453.GE1609613@dread.disaster.area> Date: Thu, 07 Apr 2022 10:27:41 +1000 Message-id: <164929126156.10985.11316778982526844125@noble.neil.brown.name> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, 07 Apr 2022, Dave Chinner wrote: > On Wed, Apr 06, 2022 at 03:54:24PM -0400, J. Bruce Fields wrote: > > In the last couple days I've started getting hangs on xfstests > > generic/186 on upstream. I also notice the test completes after 10+ > > hours (usually it takes about 5 minutes). Sometimes this is accompanied > > by "nfs: RPC call returned error 12" on the client. > > #define ENOMEM 12 /* Out of memory */ > > So either the client or the server is running out of memory > somewhere? Probably the client. There are a bunch of changes recently which add __GFP_NORETRY to memory allocations from PF_WQ_WORKERs because that can result in deadlocks when swapping over NFS. This means that kmalloc request that previously never failed (because GFP_KERNEL never fails for kernel threads I think) can now fail. This has tickled one bug that I know of. There are likely to be more. The RPC code should simply retry these allocations after a short delay. HZ/4 is the number that is used in a couple of places. Possibly there are more places that need to handle -ENOMEM with rpc_delay(). NeilBrown