[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 03/14] rbd: increase io_opt again


  • To: Christoph Hellwig <hch@xxxxxx>
  • From: "Martin K. Petersen" <martin.petersen@xxxxxxxxxx>
  • Date: Thu, 13 Jun 2024 21:36:52 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KtZawd8ipt/bHT0UO+nYK5l0nI6MDeL71Dfxb1yrrKk=; b=KR6REY5gWtfM1kCiO3HEclVQdZI2gjPsfzInhZbgOtf86E/VElSNQjj03gHuI6TngMuxFpWF9nImpfTkLMag8hFNh2K76vNtrAcLqYr5MLmd9rc6Y8nkpf5ukTuZlZSkrQWGoAatLybF422+R5p7I94oaSvzTo6QwIZuIF3wo8n6ykcXxsDY3zYP8tnWG7KQXQF3BlxtlV2dXyL4w8EoD3h9i7yNrdjB+BPLV35KRcCu26WEBMzftzRHEGjdhRG7iYcBmLPpyHkop7Pl8jF9biIBY2Lhclmr2e7d7T9yELzjrApwOF8mYpHBZzw/KjHvHFExsCT6EGlv/BCenQcNHQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KWJIWIJ0UzEvaLLst+ONo9xd6VG6X8XwQYvcnIASnv34Xw4NzJa4kwoxO388+WJBTPlXR9fsHoWAIVLW+6TyrGfZxpiqSvijQiYCG5hAEgtxEmC8Eq9f6aowhFyd6KMCmK3Lqbo0uNrm3vPZxvq1QVsPyJMZBQd7v8JQVsgDORj1iLWAwisw5UMDTjnLyksy1Is03zNomsGh1PaKclK4N5law5+o0Un/q9gSAIBb4+n9cw/sJb9pq0yHSBvm7tUrAeJgu70id/KRLGOAhaFXgzGs9P7KYVtjX3TTHPkqpNJoo5TFvlBrD1oefqFWOrApYx3PjQ8uT7QSlesWaqKv7w==
  • Cc: Jens Axboe <axboe@xxxxxxxxx>, "Martin K. Petersen" <martin.petersen@xxxxxxxxxx>, Richard Weinberger <richard@xxxxxx>, Anton Ivanov <anton.ivanov@xxxxxxxxxxxxxxxxxx>, Johannes Berg <johannes@xxxxxxxxxxxxxxxx>, Josef Bacik <josef@xxxxxxxxxxxxxx>, Ilya Dryomov <idryomov@xxxxxxxxx>, Dongsheng Yang <dongsheng.yang@xxxxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, linux-um@xxxxxxxxxxxxxxxxxxx, linux-block@xxxxxxxxxxxxxxx, nbd@xxxxxxxxxxxxxxxx, ceph-devel@xxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, linux-scsi@xxxxxxxxxxxxxxx
  • Delivery-date: Fri, 14 Jun 2024 01:37:17 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Christoph,

> Commit 16d80c54ad42 ("rbd: set io_min, io_opt and discard_granularity
> to alloc_size") lowered the io_opt size for rbd from objset_bytes
> which is 4MB for typical setup to alloc_size which is typically 64KB.
>
> The commit mostly talks about discard behavior and does mention io_min
> in passing. Reducing io_opt means reducing the readahead size, which
> seems counter-intuitive given that rbd currently abuses the user
> max_sectors setting to actually increase the I/O size. Switch back to
> the old setting to allow larger reads (the readahead size despite it's
> name actually limits the size of any buffered read) and to prepare for
> using io_opt in the max_sectors calculation and getting drivers out of
> the business of overriding the max_user_sectors value.

Reviewed-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>

-- 
Martin K. Petersen      Oracle Linux Engineering



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.