Whamcloud - gitweb
LU-7340 mdd: changelogs garbage collection 03/27103/26
authorBruno Faccini <bruno.faccini@intel.com>
Fri, 12 May 2017 21:34:49 +0000 (23:34 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 17 Dec 2017 06:17:26 +0000 (06:17 +0000)
commit3442db6faf685fbdbd092bdfdc8d273e4990a141
tree8bc92009847148b24d54057f99586e5241417194
parent11aae875be5fb30a88281ab47e491b75447b299b
LU-7340 mdd: changelogs garbage collection

When changelogs are almost full (few number of
free entries in catalog), try to recover some space
by unregistering users that are idle since too long,
based on new Changelog User record field (in fact,
using previous cur_padding unused field) to keep
track of last user's changelog cancel request time,
or based on gap between user index and current
ChangeLog record, for older registered user.
sanity/test_160[f,g] have been added to verify feature.

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: I2100b101772e6d027675e5efa5606d4be24342a0
Reviewed-on: https://review.whamcloud.com/27103
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Ben Evans <bevans@cray.com>
Reviewed-by: Stephan Thiell <sthiell@stanford.edu>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
15 files changed:
lustre/include/lustre_compat.h
lustre/include/lustre_log.h
lustre/include/obd_support.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/mdd/mdd_device.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_lproc.c
lustre/obdclass/llog.c
lustre/obdclass/llog_cat.c
lustre/obdclass/llog_swab.c
lustre/ptlrpc/wiretest.c
lustre/tests/sanity.sh
lustre/utils/wirecheck.c
lustre/utils/wiretest.c