Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from Sep 7, 2016

Conversation

wjwithagen
Copy link
Contributor

@wjwithagen wjwithagen commented Sep 3, 2016

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

set(parse_secret_files
common/secret.c)
add_library(parse_secret_objs OBJECT ${parse_secret_files})
if(LINUX)
Copy link
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?

Copy link
Contributor

@tchaikov tchaikov Sep 5, 2016

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
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
Contributor 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
Contributor 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
@@ -696,7 +696,7 @@ install(PROGRAMS

add_subdirectory(bash_completion)

if(LINUX)
if(KEYUTILS_FOUND)
Copy link
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 05d72fb ?

Copy link
Contributor 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 <wjw@digiware.nl>
 - honor the WITH_RBD and WITH_LIBCEPHFS flags

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
 - Honor WITH_LIBCEPHFS

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
 - Honor WITH_AIO tests that depend on bluestore parts

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
@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
Copy link
Contributor

tchaikov commented Sep 7, 2016

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

@wjwithagen
Copy link
Contributor Author

@tchaikov
Thanx

@wjwithagen
Copy link
Contributor 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 <kchai@redhat.com>
(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 <kchai@redhat.com>
@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
2 participants