Thread (15 messages) 15 messages, 3 authors, 2025-08-18

Re: [PATCH v2 5/5] block: use largest_zero_folio in __blkdev_issue_zero_pages()

From: Hannes Reinecke <hare@suse.de>
Date: 2025-08-18 12:05:57
Also in: linux-fsdevel, linux-mm, lkml

On 8/8/25 14:11, Pankaj Raghav (Samsung) wrote:
From: Pankaj Raghav <redacted>

Use largest_zero_folio() in __blkdev_issue_zero_pages().
On systems with CONFIG_PERSISTENT_HUGE_ZERO_FOLIO enabled, we will end up
sending larger bvecs instead of multiple small ones.

Noticed a 4% increase in performance on a commercial NVMe SSD which does
not support OP_WRITE_ZEROES. The device's MDTS was 128K. The performance
gains might be bigger if the device supports bigger MDTS.

Acked-by: Lorenzo Stoakes <redacted>
Signed-off-by: Pankaj Raghav <redacted>
---
  block/blk-lib.c | 15 ++++++++-------
  1 file changed, 8 insertions(+), 7 deletions(-)
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
hare@suse.de                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help