[Bugs] [Bug 1317790] New: Cache swift xattrs

bugzilla at redhat.com bugzilla at redhat.com
Tue Mar 15 08:40:28 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1317790

            Bug ID: 1317790
           Summary: Cache swift xattrs
           Product: Red Hat Gluster Storage
           Version: 3.1
         Component: glusterfs-fuse
          Keywords: ZStream
          Severity: low
          Priority: urgent
          Assignee: rhs-bugs at redhat.com
          Reporter: ppai at redhat.com
        QA Contact: storage-qa-internal at redhat.com
                CC: bugs at gluster.org, chrisw at redhat.com, csaba at redhat.com,
                    nlevinki at redhat.com, sasundar at redhat.com
        Depends On: 1317785, 1317788
            Blocks: 1309567 (glusterfs-3.7.9)
          Keywords: ZStream



+++ This bug was initially created as a clone of Bug #1317788 +++

+++ This bug was initially created as a clone of Bug #1317785 +++

Description of problem:

gluster-swift extensively uses "user.swift.metadata" xattr in it's
functionality. This is not cached and hence the performance is usually
terrible.

Every operation (GET,PUT,POST,DELETE,HEAD) in gluster-swift issues getxattr()
as follows:

getxattr("/mnt/gluster-object/test/c1/o8", "user.swift.metadata", 0x0, 0) = 190
getxattr("/mnt/gluster-object/test/c1/o8", "user.swift.metadata",
"{"Content-Length":"11","ETag":"5eb63bbbe01eeed093cb22bb8f5acdc3","X-Timestamp":"1458021187.45380","X-Object-Type":"file","X-Type":"Object","Content-Type":"application/x-www-form-urlencoded"}",
190) = 190

The first getxattr() is to get the size of xattr value and the second
getxattr() is to fetch the actual value itself.

The entire xattr information is sent thrice by brick to FUSE mount. Once on
lookup, again on the first getxattr() to get size and then again on second
gexattr() call. These three network calls can be reduced to just one if the
xattr information is cached when it's fetched for the first time.

--- Additional comment from Prashanth Pai on 2016-03-15 04:34 EDT ---

Attached tcpdump trace of DELETE object operation from gluster-swift


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1309567
[Bug 1309567] Tracker for glusterfs-3.7.9
https://bugzilla.redhat.com/show_bug.cgi?id=1317785
[Bug 1317785] Cache swift xattrs
https://bugzilla.redhat.com/show_bug.cgi?id=1317788
[Bug 1317788] Cache swift xattrs
-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=DM5MIb6tOj&a=cc_unsubscribe


More information about the Bugs mailing list