Skip to content

bdev: fix FTBFS on FreeBSD, keep the huge paged read buffers. - #44612

Merged
rzarzynski merged 1 commit into
ceph:masterfrom
rzarzynski:wip-bs-lazy4freebsd
Apr 2, 2022
Merged

rzarzynski merged 1 commit into
ceph:masterfrom
rzarzynski:wip-bs-lazy4freebsd

Conversation

@rzarzynski

Copy link
Copy Markdown
Contributor

Special thanks to Willem Jan Withagen!

Signed-off-by: Radoslaw Zarzynski [email protected]

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

@wjwithagen

Copy link
Copy Markdown
Member

Lets see if my master builder is happy as well.
Should be, but beter dafe.

@rzarzynski rzarzynski added the needs-quincy-backport backport required for quincy label Jan 17, 2022
@wjwithagen

Copy link
Copy Markdown
Member

It would deserve some better error handling for FreeBSD as well.
But this is fine enough for now.

@ifed01 ifed01 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.

Personally I'd leave the mmap call out of ifdef block and wrap an assignment to map_mode var with it only:
int map_mode;

#ifdef (free_bsd)
map_mode = ...
#else
map_mode = ...
#endif
::mmap(...,map_mode,...);

but not a big deal...

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Mar 24, 2022
@wjwithagen

Copy link
Copy Markdown
Member

Ping

@github-actions github-actions Bot removed the stale label Mar 25, 2022
@rzarzynski
rzarzynski force-pushed the wip-bs-lazy4freebsd branch from d28dbc2 to c8aa580 Compare March 25, 2022 15:50
@rzarzynski

Copy link
Copy Markdown
Contributor Author

@ifed01: Thanks for pointing this out! Minimized the patch by guarding the flags directly.

@rzarzynski

Copy link
Copy Markdown
Contributor Author

jenkins retest this please

4 tests failed out of 275

Total Test time (real) = 3600.44 sec

The following tests FAILED:
	 36 - smoke.sh (Timeout)
	175 - mgr-dashboard-smoke.sh (Failed)
	179 - unittest_rocksdb_option (Failed)
	190 - safe-to-destroy.sh (Timeout)

Special thanks to Willem Jan Withagen!

Signed-off-by: Radoslaw Zarzynski <[email protected]>
@rzarzynski
rzarzynski force-pushed the wip-bs-lazy4freebsd branch from c8aa580 to d04ea43 Compare March 31, 2022 11:29
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/file.h>
#include <sys/mman.h>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Made the include unconditional per Adam's note.

@rzarzynski

Copy link
Copy Markdown
Contributor Author

jenkins test api

@rzarzynski
rzarzynski merged commit bd85f2c into ceph:master Apr 2, 2022
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.

4 participants