Received: by 2002:ab2:7853:0:b0:1fa:5c73:8e2d with SMTP id m19csp41514lqp; Thu, 30 May 2024 11:20:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWsqW1F7ghl/bXbb1tapLRGQWfOath4ZT5xlrQ6QIDzlKYMLOrtUKOni7cM7MN0nIV+psNhxg8u35YpoNsKsyzYUUXWClUTPoTGQ4eSpw== X-Google-Smtp-Source: AGHT+IFsz9votbwzBPmq/aZCtqJU0IXIfJ5zULDvWlZKs5yH/omQbcJHKEg3qbPZUWK1bm0nzXRC X-Received: by 2002:a81:a948:0:b0:61b:16d9:47cd with SMTP id 00721157ae682-62c6bc1ab81mr31890477b3.11.1717093202654; Thu, 30 May 2024 11:20:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717093202; cv=pass; d=google.com; s=arc-20160816; b=hmOwGYQ60tyY3mjCNgdndyK6kLXVOX+7ABRwqJ7HHOe8pYSU/Md/Nyx7Fq9/EphbDa Y/fc7zexTnsRT8IeCo3fAZ2jBj0ASf9H7YM3xvLlY4t4LrqoLtDQMxmrkbjEJ/dXi0ge BRVO2kpgAPEZPqFtEHr9eBgzJhn0zY2T8AY1MSW9w97agHEaWpHeCPIcfh16NtFFFmsy v4WmnnqXCUHG7wr0BSG9ITeXIEBgexd5jTfHGXQdVhNLL1xdhQI2BtIxR0bTcKfSWAS1 g8TDSIZPU0WYb1Gf8o8GdwIfU37tHBc+/nAKPPupvxZBKYyYDAQSquULGArGWTr8x4gI aqyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=MfC7O4dJlF0Ytll/qwBSKCMq6j2E0CpT755Poq8DbWo=; fh=kJ0sT+JUZpt3pE6mQAOu6YUzaiSgMndTv2yUyVh3vy4=; b=cpXdqYoHq56T8iBd6QuH2fa71mOLFX6gyW6uGiyC3wK3xIJOPJuJMbLl+zCO2ZU9mY QgsrdHPfMb6EIHOYy8olAtnrTzvcLpVCPTNUcAbBp/35Cqmwz4yD22zA7764g4hG1NWa /iGFKQ772B7QZnyRmupCp9SzyUSKC+4SMiuw1EJCCRkScW7TnFyhIf0AF+Gt9A0xCVzT tg3NsyYitGRkMXStGXh0V6sWnLSnhsY09N1FAG03b/+jt2tDOoTCgs+UujSHr3NrHHPj bQfpoL+a1dIoIg5BdAGKlkqxiXiAIOFVJaYHXaqbglcO6B0yo3+qCyCnbgJE3N0Mtj4c aDQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-3494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3494-linux.lists.archive=gmail.com@vger.kernel.org" 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-6ae4a733f4asi1998686d6.2.2024.05.30.11.20.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 11:20:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3494-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; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-3494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3494-linux.lists.archive=gmail.com@vger.kernel.org" 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 C325C1C22943 for ; Thu, 30 May 2024 18:20:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4658847A58; Thu, 30 May 2024 18:20:00 +0000 (UTC) X-Original-To: linux-nfs@vger.kernel.org Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF09021A04 for ; Thu, 30 May 2024 18:19:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717093200; cv=none; b=ILrkQBsvSEx5iwZ63mnZE/FoPafKWtj/OagXIzSQM9tENpehAqdcHtiu+6H7228IUFq6WAJT5MEmeVezA9anG/bZti+Kq9lrFM3/C7Sx8QrzO7c7RYyFIZqTubP3lmDns4591+yRmGWv1nhw8ignP6oYFz7cB4A0RCZujKCIWpE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717093200; c=relaxed/simple; bh=9HohyzfoXPvm+NEyb2oY5+qnkdQW/HON9GyeYP1ZiYk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Yu1cb9ULaH8R8c/lonF402WVTmGIMMfCXpjEY8VgIRCCj3fsEAOXY3VqicymXr7FnXsZ2gwjKqZ5dkuh8vN9TMTLfWKtT5kzUF+aQepEXeZMLMuGhyYpkye5wNg85OSk7uk2UmU+ocKQJ4HzUGXes0ndExlJ2bmjWewDGwzR97U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=grimberg.me; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=grimberg.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-42110872bf9so1756545e9.3 for ; Thu, 30 May 2024 11:19:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717093197; x=1717697997; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MfC7O4dJlF0Ytll/qwBSKCMq6j2E0CpT755Poq8DbWo=; b=uhIPXPkm3cAnGTBhk3kW+RO4gLPlNSt6zFiclBVFKd3+cnYRFS+alCAWmP+4YWq1NG vdcCdTao54zXtGFWStHwsrewYMSQlGOi5VfiS1wpX4WKwqSBwd9SU1rxja9MgTvB2NCN bxEW8wPMVGVYsMwBemsUzo7yMDjhETaOTN2mmH/zNioADtbgxTJeOew4ib71gDAje4AT Q5AqmLXLSjaEuicd4jW/O1AhBrSFnPcIkGfoQ4DcHNKtv3L15fdCbtxVzOOcu9En3Z9m Sf7CquLk/jSkQyHShxCBzaLTjQEmuppT59rGQlzZT6XHNwpJxlI1vUSQF7ADc7krbCvu OTyA== X-Forwarded-Encrypted: i=1; AJvYcCUC1rmY+XTTVvAiOl50yf5Kai5kx713UTIik3nB5YWmW7ENwHRFRlz86cZr/liInwkOrnJ3t5dzlwUFGqWbGbFR5YwQC0Ec230V X-Gm-Message-State: AOJu0YzJYihrFbLonlhC9NXWtoXKzIIJghBtXDOmUNUwsvDn8XmU2G43 1SR72eS2+AFoO3rJpuOERY8PNXFKSqsMJy558HMwIrk07HABxm7u X-Received: by 2002:a05:600c:1c8f:b0:41b:fdf9:98b5 with SMTP id 5b1f17b1804b1-42128355f85mr20004605e9.4.1717093197002; Thu, 30 May 2024 11:19:57 -0700 (PDT) Received: from [10.100.102.74] (85.65.193.189.dynamic.barak-online.net. [85.65.193.189]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4212b85b3b7sm2170805e9.26.2024.05.30.11.19.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 May 2024 11:19:56 -0700 (PDT) Message-ID: Date: Thu, 30 May 2024 21:19:55 +0300 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: NFS write congestion size To: NeilBrown Cc: Jan Kara , Trond Myklebust , "linux-nfs@vger.kernel.org" , "anna@kernel.org" References: <> <171706807360.14261.8929224868643154972@noble.neil.brown.name> Content-Language: en-US From: Sagi Grimberg In-Reply-To: <171706807360.14261.8929224868643154972@noble.neil.brown.name> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit >> btw, I think you meant that *slower* devices may need a larger queue to >> saturate, >> because if the device is fast, 256MB inflight is probably enough... So >> you are solving >> for the "consumer grade contemporary disks". > No, faster devices. The context here is random writes. The more of > those that are in the queue on the server, the more chance it has to > re-order or coalesce requests. Umm, what would reorder help with if writes are random? > We don't want the device to go idle so we want lots of data buffered. > It will take the client some moments to respond to the client-side queue > dropping below a threshold by finding some pages to write and to submit > them. We don't want those moments to be long enough for the server-side > queue to empty. Yes I agree. I was just arguing that the faster the device is, the lower the completion latency is. Meaning, if a device has a write-latency of 1us, you need a shorter queue than a device that has a write-latency of 100ms. Anyways, we're getting side-tracked...