Skip to content

luminous: os/bluestore/BlueFS: compact log even when sync_metadata sees no work - #34876

Merged
yuriw merged 1 commit into
ceph:luminousfrom
ifed01:wip-ifed-fix-no_compact_bluefs
Jul 13, 2020
Merged

yuriw merged 1 commit into
ceph:luminousfrom
ifed01:wip-ifed-fix-no_compact_bluefs

Conversation

@ifed01

@ifed01 ifed01 commented May 1, 2020 •

Copy link
Copy Markdown
Contributor

backport of #17354 to luminous


It's possible that when sync_metadata() is called there won't be any new
log data to flush because it was already flushed for other reasons (e.g.,
because fsync was called). However, the log may still be large and in
need of compaction.

Signed-off-by: Sage Weil [email protected]
(cherry picked from commit dfe5f05)

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 dashboard backend
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@ifed01 ifed01 added this to the luminous milestone May 1, 2020
@ifed01
ifed01 requested a review from smithfarm May 1, 2020 11:34
@ifed01 ifed01 changed the title os/bluestore/BlueFS: compact log even when sync_metadata sees no work luminous: os/bluestore/BlueFS: compact log even when sync_metadata sees no work May 1, 2020
@smithfarm
smithfarm requested a review from xiexingguo May 4, 2020 10:16
@smithfarm

Copy link
Copy Markdown
Contributor

@ifed01 I tried to cherry-pick this and there was a conflict in BlueFS::sync_metadata. Did you see the same? If so, could you add a Conflicts section to the commit message?

@smithfarm
smithfarm requested review from jdurgin and neha-ojha May 4, 2020 10:31
It's possible that when sync_metadata() is called there won't be any new
log data to flush because it was already flushed for other reasons (e.g.,
because fsync was called).  However, the log may still be large and in
need of compaction.

Signed-off-by: Sage Weil <[email protected]>
(cherry picked from commit dfe5f05)

 Conflicts:
	src/os/bluestore/BlueFS.cc
 Some pending release stuff that is now absent at both Luminous and
master.
@ifed01
ifed01 force-pushed the wip-ifed-fix-no_compact_bluefs branch from 0975efb to 5eeb70b Compare May 5, 2020 12:35
@ifed01

ifed01 commented May 5, 2020

Copy link
Copy Markdown
Contributor Author

@ifed01 I tried to cherry-pick this and there was a conflict in BlueFS::sync_metadata. Did you see the same? If so, could you add a Conflicts section to the commit message?

@smithfarm - my bad, there was a conflict. Fixed.

@yuriw

yuriw commented Jul 8, 2020

Copy link
Copy Markdown
Contributor

@yuriw
yuriw merged commit 3b0fd4b into ceph:luminous Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants