Skip to content

cmake: FreeBSD specific excludes in CMakeLists.txt part 2 - #10973

Merged
tchaikov merged 4 commits into
ceph:masterfrom
wjwithagen:wip-wjw-freebsd-cmake-excludes-2
Sep 7, 2016
Merged

tchaikov merged 4 commits into
ceph:masterfrom
wjwithagen:wip-wjw-freebsd-cmake-excludes-2

Conversation

@wjwithagen

@wjwithagen wjwithagen commented Sep 3, 2016 •

Copy link
Copy Markdown
Member

Changes to the CMakeLists.txt files specific for FreeBSD building.
These are the items that can not (yet) be build on FreeBSD
Excluding build target based on

  • LINUX
  • RBD
  • AIO
  • LIBCEPHFS
  • KEYUTILS_FOUND

Comment thread src/CMakeLists.txt Outdated

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.

@wjwithagen could you please note why this is not secret.c is not buildable in FreeBSD? for example, keyutils is not available in FreeBSD?

and why krbd is not applicable to FreeBSD?

@tchaikov tchaikov Sep 5, 2016 •

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.

@wjwithagen this is not addressed.

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 guess maybe we can check for KEYUTILS_FOUND instead?

@tchaikov tchaikov removed their assignment Sep 5, 2016
@wjwithagen
wjwithagen force-pushed the wip-wjw-freebsd-cmake-excludes-2 branch from bfefa00 to 6eb9f7b Compare September 5, 2016 08:17
@wjwithagen

Copy link
Copy Markdown
Member Author

@tchaikov
You are correct.
compilation yesterday generated bit_alloc missing errors, which depends on Bluestore.
But I misread the multithreaded build logging
Should be fixed now.

@wjwithagen
wjwithagen force-pushed the wip-wjw-freebsd-cmake-excludes-2 branch from 6eb9f7b to 20e08ba Compare September 5, 2016 21:43
@wjwithagen

Copy link
Copy Markdown
Member Author

@tchaikov
I missed that first remark. Sorry about that.
Reworded the commit for src/CMakeLists.txt

@wjwithagen
wjwithagen force-pushed the wip-wjw-freebsd-cmake-excludes-2 branch from 8e81c1c to 4cc1fe2 Compare September 6, 2016 12:27
Comment thread src/CMakeLists.txt Outdated

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.

could you squash this commit into 05d72fb45eb8ebf9c5932dab88fa0815b49c4e2f ?

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.

@tchaikov
Done

 - FreeBSD does not have keyutils or any kernel type security store
   So using secret.c is not really relevant here
 - Have common/secret.c depend on KEYUTILS_FOUND
 - This also excludes building mount.cephfs,
   Next to the fact that this is 100% linux bases mount stuff
 - krbd is the Linux kernel version for RBD based disks, but again
   completely Linux based and porting to FreeBSD, if any, has to follow
   a different route

Signed-off-by: Willem Jan Withagen <[email protected]>
 - honor the WITH_RBD and WITH_LIBCEPHFS flags

Signed-off-by: Willem Jan Withagen <[email protected]>
 - Honor WITH_LIBCEPHFS

Signed-off-by: Willem Jan Withagen <[email protected]>
 - Honor WITH_AIO tests that depend on bluestore parts

Signed-off-by: Willem Jan Withagen <[email protected]>
@wjwithagen
wjwithagen force-pushed the wip-wjw-freebsd-cmake-excludes-2 branch from 4cc1fe2 to 2e9809a Compare September 7, 2016 10:44
@tchaikov tchaikov self-assigned this Sep 7, 2016
@tchaikov

tchaikov commented Sep 7, 2016

Copy link
Copy Markdown
Contributor

pushed to gb as wip-10973. once gb are happy, it's good to merge.

@wjwithagen

Copy link
Copy Markdown
Member Author

@tchaikov
Thanx

@wjwithagen

Copy link
Copy Markdown
Member Author

jenkins, retest this please

@tchaikov
tchaikov merged commit b307a64 into ceph:master Sep 7, 2016
cbodley pushed a commit to cbodley/ceph that referenced this pull request Sep 19, 2016
- to avoid the scrub wave when the osd_scrub_max_interval reaches in a
  high-load OSD, the scrub time is randomized.
- extract scrub_load_below_threshold() out of scrub_should_schedule()
- schedule an automatic scrub job at a time which is uniformly distributed
  over [now+osd_scrub_min_interval,
        now+osd_scrub_min_interval*(1+osd_scrub_time_limit]. before
  this change this sort of scrubs will be performed once the hard interval
  is end or system load is below the threshold, but with this change, the
  jobs will be performed as long as the load is low or the interval of
  the scheduled scrubs is longer than conf.osd_scrub_max_interval. all
  automatic jobs should be performed in the configured time period, otherwise
  they are postponed.
- the requested scrub job will be scheduled right away, before this change
  it is queued with the timestamp of `now` and postponed after
  osd_scrub_min_interval.

Fixes: ceph#10973
Signed-off-by: Kefu Chai <[email protected]>
(cherry picked from commit 5e44040)

Conflicts:
	src/osd/OSD.cc
cbodley pushed a commit to cbodley/ceph that referenced this pull request Sep 19, 2016
s/osd_scrub_interval_limit/osd_scrub_interval_randomize_ratio/

Fixes: ceph#10973
Signed-off-by: Kefu Chai <[email protected]>
@wjwithagen
wjwithagen deleted the wip-wjw-freebsd-cmake-excludes-2 branch January 23, 2019 12:46
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.

2 participants