Bug 1367891 - rbd cache does not switch to writeback mode after first flush
Summary: rbd cache does not switch to writeback mode after first flush
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RBD
Version: 2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 2.0
Assignee: Jason Dillaman
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks: 1363819
TreeView+ depends on / blocked
 
Reported: 2016-08-17 17:45 UTC by Jason Dillaman
Modified: 2022-02-21 18:17 UTC (History)
5 users (show)

Fixed In Version: RHEL: ceph-10.2.2-39.el7cp Ubuntu: ceph_10.2.2-31redhat1xenial
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-15 11:18:01 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 16654 0 None None None 2016-08-17 17:45:47 UTC
Red Hat Knowledge Base (Solution) 2900991 0 None None None 2017-02-02 18:12:44 UTC
Red Hat Product Errata RHBA-2016:1898 0 normal SHIPPED_LIVE Red Hat Ceph Storage 2 bug fix and enhancement update 2017-03-22 02:06:31 UTC

Description Jason Dillaman 2016-08-17 17:45:19 UTC
Description of problem:
With the default config option of 'rbd_cache_writethrough_until_flush' set to true, librbd waits for a flush request before enabling the writeback cache. However, librbd is not enabling the writeback cache even after a flush is received.

This results in a several performance penalty for librbd-backed VMs.

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. Compare IOPS between a VM configured with 'rbd_cache_writethrough_until_flush=false' and one with 'rbd_cache_writethrough_until_flush=true'

Actual results:
VM tests using 'rbd_cache_writethrough_until_flush=false' will have substantially higher random write IOPS compared to without due to the fact that the cache is stuck in writethrough mode.

Expected results:
Writeback cache should be enabled after first flush is received.

Additional info:

Comment 3 Jason Dillaman 2016-08-17 17:46:17 UTC
Upstream pull request: https://github.com/ceph/ceph/pull/10762

Comment 7 Vasu Kulkarni 2016-08-24 20:46:08 UTC
I can also add one system level test in fio with and without that option.

Comment 13 Vasu Kulkarni 2016-09-09 19:14:59 UTC
Verified(sanity only)

Comment 16 errata-xmlrpc 2016-09-15 11:18:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-1898.html


Note You need to log in before you can comment on or make changes to this bug.