[sheepdog] [PATCH 0/8] object cache reclaim
levin li
levin108 at gmail.com
Mon Jul 9 08:29:14 CEST 2012
From: levin li <xingke.lwp at taobao.com>
Currently, object cache doesn't do reclaim, it continues to allocate disk
for cached object until the disk is full.
This patchset do reclaim work for the object cache when the cache size
reaches the max size specified by user.
levin li (8):
configure: add micro _LGPL_SOURCE to make sheep use liburcu
sheep: add cmd argument -W to specify a max cache size
object cache: rename object_cache_entry to dirty_cache_entry
object cache: add object cache tree for every VDI
object cache: schedule the object cache in a lru list
object cache: reclaim cached objects when cache reaches the max size
object cache: remove from cache object tree when removing a cached
object
object cache: use rwlock to replace the mutex lock in object_cache
configure.ac | 2 +-
include/sheepdog_proto.h | 2 +
sheep/gateway.c | 20 +-
sheep/object_cache.c | 683 +++++++++++++++++++++++++++++++++++++++++-----
sheep/sdnet.c | 2 +-
sheep/sheep.c | 19 ++-
sheep/sheep_priv.h | 5 +-
sheep/store.c | 12 +-
8 files changed, 664 insertions(+), 81 deletions(-)
More information about the sheepdog
mailing list