Bug 1319698

Summary: Creation of files on hot tier volume taking very long time
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Joseph Elwin Fernandes <josferna>
Component: tierAssignee: sankarshan <sankarshan>
Status: CLOSED ERRATA QA Contact: krishnaram Karthick <kramdoss>
Severity: urgent Docs Contact:
Priority: urgent    
Version: rhgs-3.1CC: amukherj, byarlaga, dlambrig, mpillai, nbalacha, nchilaka, rcyriac, rhinduja, rhs-bugs, rmekala, sankarshan, storage-qa-internal
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.1.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.7.9-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1282729 Environment:
Last Closed: 2016-06-23 05:05:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1293034, 1293659, 1311817    

Comment 4 Atin Mukherjee 2016-03-21 13:21:18 UTC
Downstream patch : https://code.engineering.redhat.com/gerrit/#/c/70346/

Comment 6 krishnaram Karthick 2016-04-12 05:56:29 UTC
With the 3.1.3 build 'glusterfs-3.7.9-1.el7rhgs.x86_64', these are the default values set

[root@dhcp47-90 ~]# gluster v get testvol all | grep 'features.ctr-sql-db-wal-autocheckpoint'
features.ctr-sql-db-wal-autocheckpoint  25000                                   
[root@dhcp47-90 ~]# gluster v get testvol all | grep 'features.ctr-sql-db-cachesize'
features.ctr-sql-db-cachesize           12500                                   

This are the expected values. 

Additionally, 

On a tiered volume [cold tier-2 x(8+4) and hot tier 4x2] creation of 50k files takes 10m50s

tiered vol:

time for i in {1..50000}; do echo $i >> file-$i; done
real    10m50.131s
user    0m4.090s
sys     0m15.571s

On a dist-rep volume(4x2), creation of 50k files takes 6m35s

time for i in {1..50000}; do echo $i >> file-$i; done
real    6m35.411s
user    0m3.838s
sys     0m16.239s

However, Marking this bug as verified as the issue being addressed here is changing the default value of ctr-sql.

Comment 11 errata-xmlrpc 2016-06-23 05:05:05 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://access.redhat.com/errata/RHBA-2016:1240

Comment 12 Nithya Balachandran 2016-07-20 09:58:36 UTC
*** Bug 1319696 has been marked as a duplicate of this bug. ***