[Bugs] [Bug 1317788] New: Cache swift xattrs
bugzilla at redhat.com
bugzilla at redhat.com
Tue Mar 15 08:35:57 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1317788
Bug ID: 1317788
Summary: Cache swift xattrs
Product: GlusterFS
Version: 3.7.8
Component: md-cache
Severity: low
Priority: urgent
Assignee: bugs at gluster.org
Reporter: ppai at redhat.com
CC: bugs at gluster.org
Depends On: 1317785
+++ 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=1317785
[Bug 1317785] Cache swift xattrs
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list