Whamcloud - gitweb
LU-7340 mdd: changelogs garbage collection 73/30573/2
authorBruno Faccini <bruno.faccini@intel.com>
Fri, 12 May 2017 21:34:49 +0000 (23:34 +0200)
committerJohn L. Hammond <john.hammond@intel.com>
Wed, 20 Dec 2017 17:44:39 +0000 (17:44 +0000)
commitb87511a0578a03447c51a8495966d60c90fcee61
tree8cc0d923af52ba195b989b557b0e59a93b796f40
parent72130abaad05a9014c7824fc6c7b9371df1a22ce
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.

Lustre-change: https://review.whamcloud.com/27103
Lustre-commit: 3442db6faf685fbdbd092bdfdc8d273e4990a141

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: I2100b101772e6d027675e5efa5606d4be24342a0
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>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/30573
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
15 files changed:
lustre/include/lustre/lustre_idl.h
lustre/include/lustre_compat.h
lustre/include/lustre_log.h
lustre/include/obd_support.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