Skip to content

mds: trim cache regularly for standby-replay#40486

Merged
batrick merged 2 commits intoceph:masterfrom
batrick:i50048
Apr 8, 2021
Merged

mds: trim cache regularly for standby-replay#40486
batrick merged 2 commits intoceph:masterfrom
batrick:i50048

Conversation

@batrick
Copy link
Member

@batrick batrick commented Mar 30, 2021

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@batrick batrick added the cephfs Ceph File System label Mar 30, 2021
@batrick batrick force-pushed the i50048 branch 2 times, most recently from 6396e96 to a945154 Compare March 30, 2021 04:13
@batrick
Copy link
Member Author

batrick commented Mar 30, 2021

jenkins test api

@batrick batrick marked this pull request as ready for review March 30, 2021 14:03
@batrick batrick requested a review from a team March 30, 2021 14:03
batrick added 2 commits April 6, 2021 07:10
We now regularly do this unconditionally in the MDS, see the upkeep
thread.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This change is slightly awkward because standby-replay MDS do not do all
the kinds of upkeep a normal active MDS does. In particular, it is not
going to recall client state from clients.

This diff also merges the extra recall_client_state in
MDCache::check_memory_usage into its only caller (the upkeep thread)
where it was also doing a recall. That's just a matter of merging the
recall flags. This has the added benefit of making
MDCache::check_memory_usage callable for all MDS daemons regardless of
state.

Fixes: https://tracker.ceph.com/issues/50048
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
@batrick
Copy link
Member Author

batrick commented Apr 6, 2021

rebased

Copy link
Contributor

@sidharthanup sidharthanup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@batrick
Copy link
Member Author

batrick commented Apr 8, 2021

https://pulpito.ceph.com/pdonnell-2021-04-07_02:12:41-fs-wip-pdonnell-testing-20210406.213012-distro-basic-smithi/

a bug in standby-replay is cluttering the results -- I'll rerun with the fix.

batrick added a commit to batrick/ceph that referenced this pull request Apr 8, 2021
* refs/pull/40486/head:
	mds: trim cache regularly for standby-replay
	mds: remove extra heap release
@batrick
Copy link
Member Author

batrick commented Apr 8, 2021

https://pulpito.ceph.com/pdonnell-2021-04-08_04:31:36-fs-wip-pdonnell-testing-20210408.024225-distro-basic-smithi/
https://pulpito.ceph.com/?branch=wip-pdonnell-testing-20210408.142238 (with logic inversion / QA fix)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants