Skip to content

common/options/crimson: increase crimson_osd_obc_lru_size to 512 - #55188

Merged
athanatos merged 2 commits into
ceph:mainfrom
cyx1231st:wip-crimson-increase-obc-lru
Jan 18, 2024
Merged

athanatos merged 2 commits into
ceph:mainfrom
cyx1231st:wip-crimson-increase-obc-lru

Conversation

@cyx1231st

@cyx1231st cyx1231st commented Jan 16, 2024 •

Copy link
Copy Markdown
Member

When recover-missing phase becomes an issue, the blocking request is mostly calling with_obc(), and the lru hit ratio can below 10%.

By increasing the lru size, crimson/alienstore 4KB random read (1 replica) got ~49% inprovements at 32 cores, roughly ~55% better than classic in my local test.

Interestingly, random write performance cannot be improved with this tunable. I think it is because OSD is mostly writing to new objects.

That is to say, the direction forward might be to refactor loading obcs into concurrent ordered phase(s).

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
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 cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@Matan-B

Matan-B commented Jan 16, 2024

Copy link
Copy Markdown
Contributor

I think that having a "limited" lru_size is useful for debugging and testing, maybe we should have a performance config that will tune the lru_size and other options we find useful in the future for debugging+testing or performance?

@cyx1231st

cyx1231st commented Jan 16, 2024 •

Copy link
Copy Markdown
Member Author

Ceph config doesn't seem to support multiple defaults yet, but I'm good with not merging it for stabilization purposes -- they can be manually changed during performance tests.

Added DNM lable.

@cyx1231st cyx1231st added the DNM label Jan 16, 2024
@cyx1231st
cyx1231st marked this pull request as draft January 16, 2024 08:09
@athanatos

Copy link
Copy Markdown
Contributor

Configs should fit how we expect users to use the system, not how we test it. Let's go ahead and update the config value to 512 as @cyx1231st 's testing recommends. However, let's also add an override to teuthology to force a smaller more test friendly value for our testing.

@Matan-B Matan-B removed the DNM label Jan 17, 2024
@Matan-B
Matan-B marked this pull request as ready for review January 17, 2024 11:53
@Matan-B

Matan-B commented Jan 17, 2024

Copy link
Copy Markdown
Contributor

Configs should fit how we expect users to use the system, not how we test it. Let's go ahead and update the config value to 512 as @cyx1231st 's testing recommends. However, let's also add an override to teuthology to force a smaller more test friendly value for our testing.

@cyx1231st, I added a commit

@cyx1231st

Copy link
Copy Markdown
Member Author

Does this PR need QA?

@Matan-B Matan-B left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm ok with merging as is, @athanatos

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.

3 participants