From 561766e45a323be3d5c521fdb47f68d71cea776e Mon Sep 17 00:00:00 2001 From: Poornima G Date: Wed, 12 Apr 2017 15:24:14 +0530 Subject: Implement negative lookup cache Before creating any file negative lookups(1 in Fuse, 4 in SMB etc.) are sent to verify if the file already exists. By serving these lookups from the cache when possible, increases the create performance by multiple folds in SMB access and some percentage in Fuse/NFS access. Feature page: https://review.gluster.org/#/c/16436 Updates #82 Change-Id: Ib1c0e7ac7a386f943d84f6398c27f9a03665b2a4 BUG: 1442569 Signed-off-by: Poornima G Reviewed-on: https://review.gluster.org/16952 Reviewed-by: Pranith Kumar Karampuri Tested-by: Pranith Kumar Karampuri Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System --- libglusterfs/src/glfs-message-id.h | 5 +++++ libglusterfs/src/globals.h | 2 ++ 2 files changed, 7 insertions(+) (limited to 'libglusterfs/src') diff --git a/libglusterfs/src/glfs-message-id.h b/libglusterfs/src/glfs-message-id.h index fa6958d7cb4..f4adbfbff2c 100644 --- a/libglusterfs/src/glfs-message-id.h +++ b/libglusterfs/src/glfs-message-id.h @@ -186,6 +186,11 @@ GLFS_MSGID_COMP_SYMLINK_CACHE_END #define GLFS_MSGID_COMP_POSIX_ACL GLFS_MSGID_COMP_INDEX_END #define GLFS_MSGID_COMP_POSIX_ACL_END (GLFS_MSGID_COMP_POSIX_ACL +\ GLFS_MSGID_SEGMENT) + +#define GLFS_MSGID_COMP_NLC GLFS_MSGID_COMP_POSIX_ACL_END +#define GLFS_MSGID_COMP_NLC_END (GLFS_MSGID_COMP_NLC +\ + GLFS_MSGID_SEGMENT) + /* --- new segments for messages goes above this line --- */ #endif /* !_GLFS_MESSAGE_ID_H_ */ diff --git a/libglusterfs/src/globals.h b/libglusterfs/src/globals.h index d0eb37716e1..5f4a938a08f 100644 --- a/libglusterfs/src/globals.h +++ b/libglusterfs/src/globals.h @@ -82,6 +82,8 @@ #define GD_OP_VERSION_3_10_2 31002 /* Op-version for GlusterFS 3.10.2 */ +#define GD_OP_VERSION_3_11_0 31100 /* Op-version for GlusterFS 3.11.0 */ + #define GD_OP_VERSION_4_0_0 40000 /* Op-version for GlusterFS 4.0.0 */ #define GD_OP_VER_PERSISTENT_AFR_XATTRS GD_OP_VERSION_3_6_0 -- cgit