Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1870591iob; Thu, 5 May 2022 09:46:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDaWRzWI5d9pkCegOLyCIM2bYgHFYJoKz4pchut7eWQDkxZ9QRpgpkcn+mU+eQoUany/rI X-Received: by 2002:aa7:c418:0:b0:428:44a0:9967 with SMTP id j24-20020aa7c418000000b0042844a09967mr2737312edq.342.1651769184850; Thu, 05 May 2022 09:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651769184; cv=none; d=google.com; s=arc-20160816; b=XDVPGAFhzyi831arOoYqicOL8GHjPD5Qx4og4ZIGa3PRViLVVg0w5rzfDFSA18aXkk eMMJsox77g5XL2ACJkiZYSV7PcosFkyWZiZc+DCOhGXIOu6vfY1DYJY7wlkKMAA+UbyL Da2UrIai+2g/yq6lPpniRSG59xkuFRI1tPkixLrizZF//IxiY/DbtIudPhWIx0SwIq1F uhVSmpCLEl0cZ/T1sqqwuacXH46VYVnovg8isTK40TLMQOzIywQbuduqOcB8MtAx81hB qLooP9jpxNmijni/yE8N65g8k4j4zQm1KH/leMfz25GzNkKMdJvDM39jgU7vdr7T3Er9 mSug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:to:from :references:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature; bh=/xlduM6HHQyWd0VjQuoKGRwervVvEBYFiPWw4NjK7IM=; b=ixscESdUI03CecWW9nPWHeHUsqUZ5jcNxy2I7+z6xUddJw50gZ/aJw5r7nqzH5lpEX PO1Cd6dWxO3Zwv5bk2VqXXAbGtS/KZECcvXC/IPEek8bnfZQoNgcsBgot7SgGUkt+VM9 tbusH+HNjaD2zLGn6iP0Ujok5VLPy0iGZl4mijQILnBS+Q9Ul4TWoO9+9ORLtyOvZWMV Y++yEyGvyFD65W1zFfHzJSSC0cfXik2zlv6V7mO2GkAYCIaYhx4S/c52MK04hgvvMOBl 3mtgPm3G+R6hOaXzOqz0valZXDoecMUI2XWNaeAfhIsLioGY8HhXZdY17scZnjTs2urT /G5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@suse.de header.s=susede2_rsa header.b=UK3d9zCn; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=ICjEWUND; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (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 gz12-20020a170906f2cc00b006e875262481si2416506ejb.936.2022.05.05.09.45.57; Thu, 05 May 2022 09:46:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=fail header.i=@suse.de header.s=susede2_rsa header.b=UK3d9zCn; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=ICjEWUND; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346840AbiEDR4l (ORCPT + 99 others); Wed, 4 May 2022 13:56:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376266AbiEDRuO (ORCPT ); Wed, 4 May 2022 13:50:14 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E9CD9FD0; Wed, 4 May 2022 10:10:34 -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 DB62A1F37F; Wed, 4 May 2022 17:10:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1651684232; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/xlduM6HHQyWd0VjQuoKGRwervVvEBYFiPWw4NjK7IM=; b=UK3d9zCni8MqUJwbcNWzOtTcqCFzhAtGMQ/iIy3F2wrSzHizKcMkEh6cFi92hkglPmniD+ gj5d3rqBXSSuAZNavt40aWZvzxLmuJSR7vDZed4X7XerRLTFO7yC1rq5y9De+KVBsKByBV hgNeqS4uau6qgnW4dmQve2fY+mgdvAQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1651684232; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/xlduM6HHQyWd0VjQuoKGRwervVvEBYFiPWw4NjK7IM=; b=ICjEWUND/M9ZzzmUCOmK88h/D+Lsz7MpX291LvtD88CJJcs0olYNzsiFSMvhbNXj522AFK oFMoC+4fXOVv4CDw== 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 62EC4131BD; Wed, 4 May 2022 17:10:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id nMqgDYOzcmLVWgAAMHmgww (envelope-from ); Wed, 04 May 2022 17:10:27 +0000 Message-ID: <681ca5e1-d318-765a-af91-6d5d377ae958@suse.de> Date: Wed, 4 May 2022 10:10:25 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH 13/16] null_blk: allow non power of 2 zoned devices Content-Language: en-US References: <20220427160255.300418-1-p.raghav@samsung.com> <20220427160255.300418-14-p.raghav@samsung.com> From: Hannes Reinecke To: undisclosed-recipients:; In-Reply-To: <20220427160255.300418-14-p.raghav@samsung.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org On 4/27/22 09:02, Pankaj Raghav wrote: > Convert the power of 2 based calculation with zone size to be generic in > null_zone_no with optimization for power of 2 based zone sizes. > > The nr_zones calculation in null_init_zoned_dev has been replaced with a > division without special handling for power of 2 based zone sizes as > this function is called only during the initialization and will not > invoked in the hot path. > > Performance Measurement: > > Device: > zone size = 128M, blocksize=4k > > FIO cmd: > > fio --name=zbc --filename=/dev/nullb0 --direct=1 --zonemode=zbd --size=23G > --io_size= --ioengine=io_uring --iodepth= --rw= --bs=4k > --loops=4 > > The following results are an average of 4 runs on AMD Ryzen 5 5600X with > 32GB of RAM: > > Sequential Write: > > x-----------------x---------------------------------x---------------------------------x > | IOdepth | 8 | 16 | > x-----------------x---------------------------------x---------------------------------x > | | KIOPS |BW(MiB/s) | Lat(usec) | KIOPS |BW(MiB/s) | Lat(usec) | > x-----------------x---------------------------------x---------------------------------x > | Without patch | 578 | 2257 | 12.80 | 576 | 2248 | 25.78 | > x-----------------x---------------------------------x---------------------------------x > | With patch | 581 | 2268 | 12.74 | 576 | 2248 | 25.85 | > x-----------------x---------------------------------x---------------------------------x > > Sequential read: > > x-----------------x---------------------------------x---------------------------------x > | IOdepth | 8 | 16 | > x-----------------x---------------------------------x---------------------------------x > | | KIOPS |BW(MiB/s) | Lat(usec) | KIOPS |BW(MiB/s) | Lat(usec) | > x-----------------x---------------------------------x---------------------------------x > | Without patch | 667 | 2605 | 11.79 | 675 | 2637 | 23.49 | > x-----------------x---------------------------------x---------------------------------x > | With patch | 667 | 2605 | 11.79 | 675 | 2638 | 23.48 | > x-----------------x---------------------------------x---------------------------------x > > Random read: > > x-----------------x---------------------------------x---------------------------------x > | IOdepth | 8 | 16 | > x-----------------x---------------------------------x---------------------------------x > | | KIOPS |BW(MiB/s) | Lat(usec) | KIOPS |BW(MiB/s) | Lat(usec) | > x-----------------x---------------------------------x---------------------------------x > | Without patch | 522 | 2038 | 15.05 | 514 | 2006 | 30.87 | > x-----------------x---------------------------------x---------------------------------x > | With patch | 522 | 2039 | 15.04 | 523 | 2042 | 30.33 | > x-----------------x---------------------------------x---------------------------------x > > Minor variations are noticed in Sequential write with io depth 8 and > in random read with io depth 16. But overall no noticeable differences > were noticed > > Reviewed-by: Luis Chamberlain > Signed-off-by: Pankaj Raghav > --- > drivers/block/null_blk/main.c | 4 ++-- > drivers/block/null_blk/zoned.c | 14 +++++++------- > 2 files changed, 9 insertions(+), 9 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer