[Bugs] [Bug 1211863] RFE: Support in md-cache to use upcall notifications to invalidate its cache
bugzilla at redhat.com
bugzilla at redhat.com
Wed Jul 20 12:12:09 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1211863
--- Comment #56 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/12951 committed in master by Raghavendra G
(rgowdapp at redhat.com)
------
commit 1f97d7101b3313ce647638310e1028da8dac6785
Author: Poornima G <pgurusid at redhat.com>
Date: Fri Dec 11 05:12:07 2015 -0500
md-cache: Add cache invalidation support to invalidate the meta data cache
Problem:
md-cache currently updates its stat in cbks of selected fops.
The default cache time is 1 second, if this is increasd to reap the
benefits of caching, we may end up with stale cache for long time,
as there is no logic yet to notify md-cache of backend changes by
another client.
Solution:
Use the existing upcall mechanism to invalidate the cache.
For this feature to work, "features.cache-invalidation" volume
option should be enabled.
This patch as is doesn't improve any performance, the benifit of the
patch is that it provides coherency for stat cache, hence the cache
timeout can be quite longer which in turn can improve the performance.
Change-Id: I2dbb0afa7b5e4a5a248f910188e0918e02f18692
BUG: 1211863
Signed-off-by: Poornima G <pgurusid at redhat.com>
Reviewed-on: http://review.gluster.org/12951
Smoke: Gluster Build System <jenkins at build.gluster.org>
CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
Reviewed-by: Raghavendra G <rgowdapp at redhat.com>
--
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=ttGApFJytE&a=cc_unsubscribe
More information about the Bugs
mailing list