Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (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 D10D14594B for ; Mon, 5 Feb 2024 17:51:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707155503; cv=none; b=FRJlxTFkH1YfoOjYAzp8Uj1O7WrCVafZ8T9UhODH6/rJ+iUX6a+uB0r1FqRDbncDG8WeAPkjmc3LI555N9b5vaTP9cM22cTI0RXzzUbWrrYblDWSaj4Si8dDTWFLDNnukMwQt9Uf+qU3exQgF1IL5zrAjjMOiOqZINBnOlIDNOY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707155503; c=relaxed/simple; bh=xcpvtR0q2vdSHSYVN51+9eNcjtc7KwYT6wnijM0Smd0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=aoRJMKKbnzCAzQgsbF8jbzgGqQBfJJ9d0V0YaCfuPBL9qE26DluBjMJ3suL37IVw4OHgBnLMlzEYNV+HTABxxL3pB74wybdP131Fo4PZbgSQ5dSAAb9sl0qW5IRv+NOqLZDKIrRyXT2+WTjY8aSYzG3oakt5BTjFflQX1RH8txU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=acm.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.216.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-2965b7bcc89so1591760a91.3 for ; Mon, 05 Feb 2024 09:51:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707155501; x=1707760301; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xcpvtR0q2vdSHSYVN51+9eNcjtc7KwYT6wnijM0Smd0=; b=qUUvkQD+AiLOFCLMR+ilT08zbq150BToENMvAqEkpqz1ZZGNPNxx/QyLZ1m4fW+7M0 214nrTVr8DF9Q3i+pIAdC3mTxmye2cR3aNvmOXNKusPVgXac8uLprHvYzAmEtIAHDX/v rHt1SfOm0R+vHuX7cRZvKTA0rJGPod3g8TkG9RlGShGfnBHu+IATD+DW9fcxAlurjBHy DBxQ8TfIvFClM0NRqR8Epps4J2IJ/NPIrIkcI3TzeZDKJcyd4UI/uap6dsbGdWrUWKyg h56JV5VLqKYLQvbQd2N+yK/ItZaqkdUyWcFUkypgXVsK+jVP8mz3BvwJM3b4jysfekfr qyNA== X-Gm-Message-State: AOJu0Yy234SsGMwI0WOPw04IDprH6tle2QZTo1kSNg9GUbD+bIgUTocW 3IxD0H3oItuZSbZqEgktMCJAwiWndpKkLNb2j8AoSQjmtbEc1A9h X-Google-Smtp-Source: AGHT+IGgaDGSUDW7iXO5w2TtVdve09NoinL3KvH6qY6x5y5YP48Ixt0AA4xKLtAiPwa6sqp87FUj+A== X-Received: by 2002:a17:90a:ad07:b0:295:d223:ad11 with SMTP id r7-20020a17090aad0700b00295d223ad11mr125788pjq.36.1707155500976; Mon, 05 Feb 2024 09:51:40 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCUkP32y4JnIpsczIpz3FMMvVwbB4I40DNXBEaUAxzfpBniU49vMwCr61wgurV1kysp59QRPIDm0AjDsXOlk76qmeAb/HBJ/we8iItGMEWLJfW4nXmeoNmxr+MVftwqo6o5zG/A+R5Jfp0W3WoWMqjbfXfgUB8fAXHLnSPKVTU70Rvd4wuTcFAsX1KOz9QRfgzl4LIFlVPfm8GGFSAqw8TnQH6PYOavW8+LuBjuXeG1YMSOA5GidBe2gEuTUxHxQjouHFuRuWgsByCZbwJIAiBYvsgKNIjYD Received: from ?IPV6:2620:0:1000:8411:be2a:6ac0:4203:7316? ([2620:0:1000:8411:be2a:6ac0:4203:7316]) by smtp.gmail.com with ESMTPSA id gb15-20020a17090b060f00b00296a4c3a7aasm1937027pjb.52.2024.02.05.09.51.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Feb 2024 09:51:40 -0800 (PST) Message-ID: Date: Mon, 5 Feb 2024 09:51:39 -0800 Precedence: bulk X-Mailing-List: dm-devel@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 25/26] block: Reduce zone write plugging memory usage Content-Language: en-US To: Hannes Reinecke , Damien Le Moal , linux-block@vger.kernel.org, Jens Axboe , linux-scsi@vger.kernel.org, "Martin K . Petersen" , dm-devel@lists.linux.dev, Mike Snitzer Cc: Christoph Hellwig References: <20240202073104.2418230-1-dlemoal@kernel.org> <20240202073104.2418230-26-dlemoal@kernel.org> <09d99780-8311-4ea9-8f48-cf84043d23f6@suse.de> From: Bart Van Assche In-Reply-To: <09d99780-8311-4ea9-8f48-cf84043d23f6@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/4/24 04:42, Hannes Reinecke wrote: > On 2/2/24 15:31, Damien Le Moal wrote: >> With this mechanism, the amount of memory used per block device for zone >> write plugs is roughly reduced by a factor of 4. E.g. for a 28 TB SMR >> hard disk, memory usage is reduce to about 1.6 MB. >> > Hmm. Wouldn't it sufficient to tie the number of available plugs to the > number of open zones? Of course that doesn't help for drives not reporting that, but otherwise? I have the same question. I think the number of zoned opened by filesystems like BTRFS and F2FS is much smaller than the total number of zoned supported by zoned drives. Thanks, Bart.