Skip to content

osd: limit pg log length under all circumstances#23098

Merged
jdurgin merged 7 commits intoceph:masterfrom
neha-ojha:wip-limit-pglog
Jul 18, 2018
Merged

osd: limit pg log length under all circumstances#23098
jdurgin merged 7 commits intoceph:masterfrom
neha-ojha:wip-limit-pglog

Conversation

@neha-ojha
Copy link
Copy Markdown
Member

Before this, osd_max_pg_log_entries was not a hard limit for the pg log length. This PR puts a hard cap on the number of log entries (and thus memory consumed) in the pg log, even during recovery and backfill.

Fixes: https://tracker.ceph.com/issues/23979
Signed-off-by: Neha Ojha nojha@redhat.com

Signed-off-by: Neha Ojha <nojha@redhat.com>
Signed-off-by: Neha Ojha <nojha@redhat.com>
Signed-off-by: Neha Ojha <nojha@redhat.com>
Signed-off-by: Neha Ojha <nojha@redhat.com>
Signed-off-by: Neha Ojha <nojha@redhat.com>
Signed-off-by: Neha Ojha <nojha@redhat.com>
@neha-ojha neha-ojha added the core label Jul 17, 2018
@neha-ojha
Copy link
Copy Markdown
Member Author

@neha-ojha neha-ojha requested a review from jdurgin July 17, 2018 18:08
@neha-ojha
Copy link
Copy Markdown
Member Author

retest this please

src/osd/PGLog.cc Outdated
}

assert(s <= can_rollback_to);
generic_dout(0) << " complete_to " << complete_to->version << dendl;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can use ldout(cct) instead of generic_dout - and should be higher level

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

the entire function uses generic_dout(), so left it the same for uniformity. Increased the level to 20.

Signed-off-by: Neha Ojha <nojha@redhat.com>
@tchaikov
Copy link
Copy Markdown
Contributor

retest this please.

@neha-ojha
Copy link
Copy Markdown
Member Author

this is passing make check now, should be ready to merge.

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.

4 participants