Bug 1258905 - Sharding - read/write performance improvements for VM workload
Summary: Sharding - read/write performance improvements for VM workload
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: sharding
Version: mainline
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Krutika Dhananjay
QA Contact: bugs@gluster.org
URL:
Whiteboard:
Depends On:
Blocks: 1261716
TreeView+ depends on / blocked
 
Reported: 2015-09-01 13:53 UTC by Krutika Dhananjay
Modified: 2016-06-16 13:34 UTC (History)
3 users (show)

Fixed In Version: glusterfs-3.8rc2
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1261716 (view as bug list)
Environment:
Last Closed: 2016-06-16 13:34:51 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Krutika Dhananjay 2015-09-01 13:53:27 UTC
Description of problem:

Paul Cuzner in his testing of sharding in hyperconvergence environment noted a 3x write latency and 2x read latency.
One network operation that can be eliminated among the many things that shard translator does in every WRITEV and READV fop is the LOOKUP that is done on the zeroth shard to fetch the size and block_count xattr. Since VM workload is a single-writer use-case, and the client that wrote to a file is always the one that is going to read it, the size and block count xattr could be cached (and kept up-to-date) in the inode ctx of the main file, thereby saving the need for the (extra) LOOKUP every time.

The other place where network fops can be avoided is XATTROP, if/when there is a WRITEV that does not change the file size && block count,

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Krutika Dhananjay 2015-09-02 01:57:23 UTC
(In reply to Krutika Dhananjay from comment #0)
> Description of problem:
> 
> Paul Cuzner in his testing of sharding in hyperconvergence environment noted
> a 3x write latency and 2x read latency.
> One network operation that can be eliminated among the many things that
> shard translator does in every WRITEV and READV fop is the LOOKUP that is
> done on the zeroth shard to fetch the size and block_count xattr. Since VM
> workload is a single-writer use-case, and the client that wrote to a file is
> always the one that is going to read it, the size and block count xattr
> could be cached (and kept up-to-date) in the inode ctx of the main file,
> thereby saving the need for the (extra) LOOKUP every time.
> 

Forgot to add that the credit for this idea above goes to Pranith Kumar K.

-Krutika

> The other place where network fops can be avoided is XATTROP, if/when there
> is a WRITEV that does not change the file size && block count,
> 
> Version-Release number of selected component (if applicable):
> 
> 
> How reproducible:
> 
> 
> Steps to Reproduce:
> 1.
> 2.
> 3.
> 
> Actual results:
> 
> 
> Expected results:
> 
> 
> Additional info:

Comment 2 Paul Cuzner 2015-09-02 02:54:59 UTC
(In reply to Krutika Dhananjay from comment #0)
> Description of problem:
> 
> Paul Cuzner in his testing of sharding in hyperconvergence environment noted
> a 3x write latency and 2x read latency.
> One network operation that can be eliminated among the many things that
> shard translator does in every WRITEV and READV fop is the LOOKUP that is
> done on the zeroth shard to fetch the size and block_count xattr. Since VM
> workload is a single-writer use-case, and the client that wrote to a file is
> always the one that is going to read it, the size and block count xattr
> could be cached (and kept up-to-date) in the inode ctx of the main file,
> thereby saving the need for the (extra) LOOKUP every time.
> 
> The other place where network fops can be avoided is XATTROP, if/when there
> is a WRITEV that does not change the file size && block count,
> 
> Version-Release number of selected component (if applicable):
> 
> 
> How reproducible:
> 
> 
> Steps to Reproduce:
> 1.
> 2.
> 3.
> 
> Actual results:
> 
> 
> Expected results:
> 
> 
> Additional info:

This sounds great but I have to ask about shared vdisks - for example, RHEV supports vdisk sharing across vm's. Typically this would mean that the disk is only ever online to one vm at a time - but I wanted to make sure that this use case is considered.

Comment 3 Vijay Bellur 2015-09-08 11:59:02 UTC
REVIEW: http://review.gluster.org/12126 (features/shard: Performance improvements in IO path) posted (#1) for review on master by Krutika Dhananjay (kdhananj)

Comment 4 Vijay Bellur 2015-09-09 10:46:07 UTC
REVIEW: http://review.gluster.org/12126 (features/shard: Performance improvements in IO path) posted (#2) for review on master by Krutika Dhananjay (kdhananj)

Comment 5 Vijay Bellur 2015-09-09 10:46:09 UTC
REVIEW: http://review.gluster.org/12138 (features/shard: Performance improvements in IO path - Part 2) posted (#1) for review on master by Krutika Dhananjay (kdhananj)

Comment 6 Vijay Bellur 2015-09-15 08:49:41 UTC
REVIEW: http://review.gluster.org/12138 (features/shard: Performance improvements in IO path - Part 2) posted (#2) for review on master by Krutika Dhananjay (kdhananj)

Comment 7 Vijay Bellur 2015-09-15 08:49:43 UTC
REVIEW: http://review.gluster.org/12126 (features/shard: Performance improvements in IO path) posted (#3) for review on master by Krutika Dhananjay (kdhananj)

Comment 8 Vijay Bellur 2015-09-15 12:10:39 UTC
REVIEW: http://review.gluster.org/12138 (features/shard: Performance improvements in IO path - Part 2) posted (#3) for review on master by Krutika Dhananjay (kdhananj)

Comment 9 Vijay Bellur 2015-09-15 12:10:46 UTC
REVIEW: http://review.gluster.org/12126 (features/shard: Performance improvements in IO path) posted (#4) for review on master by Krutika Dhananjay (kdhananj)

Comment 10 Vijay Bellur 2015-09-16 04:24:34 UTC
REVIEW: http://review.gluster.org/12138 (features/shard: Performance improvements in IO path - Part 2) posted (#4) for review on master by Krutika Dhananjay (kdhananj)

Comment 11 Vijay Bellur 2015-09-16 04:24:36 UTC
REVIEW: http://review.gluster.org/12126 (features/shard: Performance improvements in IO path) posted (#5) for review on master by Krutika Dhananjay (kdhananj)

Comment 12 Krutika Dhananjay 2015-09-23 06:28:10 UTC
Patches merged.

Comment 13 Niels de Vos 2016-06-16 13:34:51 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.8.0, please open a new bug report.

glusterfs-3.8.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://blog.gluster.org/2016/06/glusterfs-3-8-released/
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user


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