From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 9E48F218E91; Wed, 25 Mar 2026 05:52:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774417926; cv=none; b=k8t8pEj2a2pHalb0Baw38Nragiw1U7s8fC/s7J0aQ6XrTB/8SFY6cLvfi9iLJcMD2aJ9ldEaqW033kCv2IckuLRQBoZWo4jg13529pubjarhINoODEA96hwMSz6fKmdTc1gnCcgWYgH7nwZyDmATBipbyC6H8wKHo+Z983KXPAk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774417926; c=relaxed/simple; bh=fShTfN2nvjdpgvMXwtlYRic++8SmiJeNde7p859dwWo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CmdaUKbmaGO98tTbTLzm02VS9U1jTwj3K3Nid1bQyKPvAH+/xf7i7pmOxN8sgmvg8c7lppp4AMyj7vJRdZFCOi7+eA+aq1+32IoUTDaZkO8yJizdGl0knFPHMwTuGOD6d9F0Nc8HXiQp5NkwBULYdkGEqKudYo+ywopSi7JVnC4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=oquUPVnc; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="oquUPVnc" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=svgP6BHiTNao/RmGuWcoVCP5nY+eMKIV4ahBKXb8a58=; b=oquUPVncP9vM/El9/dUmQn+Z5N AB03fYj6jFx3td1KrtdZDHqjOXCJPpsNgfC1lO/ET4kUUvBUH9T8vxk8my1XtLhT3rkLjX5j0o382 4VHj7LspmpJ98g6n5VvGvtgXwvwa+peOiy0gavYZb5qbYtj4HYgqZwFW1IzfRD/VRShKrNvo4QhML KRpRrpxVluGMHQZJYiA2n9galV4xNNvFNfSu7aRqJYzY9u3XzhYqHVQdhvUGQKki4oZSQXXlRdi7S o8eecHSYjcOF98EmazWN0J9B5xCs63rpnK9E4boUoZlBFS9A9/VOK3dntgY0fkped853ZjxkwjiO2 9HDXWwTQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1w5H9x-00000002kkB-0enI; Wed, 25 Mar 2026 05:52:05 +0000 Date: Tue, 24 Mar 2026 22:52:05 -0700 From: Christoph Hellwig To: Yongcheng Yang Cc: fstests@vger.kernel.org, smayhew@redhat.com, zlang@redhat.com, linux-nfs@vger.kernel.org Subject: Re: [PATCH] generic/551: prevent OOM on NFS on systems with no swap memory Message-ID: References: <20260325035854.2262636-1-yoyang@redhat.com> Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260325035854.2262636-1-yoyang@redhat.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Wed, Mar 25, 2026 at 11:58:22AM +0800, Yongcheng Yang wrote: > From: Scott Mayhew > > We have frequently observed the oom-killer killing aio-dio-write-verify > when generic/551 is run on NFS filesystems on virtual machines in AWS. > > Virtual machines in AWS typically don't have a swap partition, so check > for that condition when testing NFS and only use 90% of available memory > when generating the list of write operations passed to > aio-dio-write-verify. I don't think this is a good idea. The proper fix is reduce whatever crazy large memory allocations this workloads causes in NFS. I suspect it might be page lists or similar, and just breaking them into somewhat smaller chunks and/or using potentially failing allocations to dynamically adjust would help.