Ceph is a distributed object, block, and file storage platform
Go to file
Loic Dachary 0e9598635d tests: fail make check if nproc is too low
When running tests in parallel with make -jX, the ulimit -u (number of
processor / thread per user) needs to be at least X * 1024. If not it
will fail in mysterious ways. Since there is no convenient way to figure
out the value of X ( see
http://blog.jgc.org/2015/03/gnu-make-insanity-finding-value-of-j.html
for a non trivial an entertaining solution) add a very conservative
check that assumes the user will run make -jX where X is nproc / 2.

It will be annoying for users who want to run make check, not use -j,
and have a low ulimit -u. But the error suggest a way to override this
with

   make CHECK_ULIMIT=false check

This is a minor irritation compared to the puzzling behavior of make
check when ulimit is exceeded.

http://tracker.ceph.com/issues/11532 Fixes: #11532

Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-05-08 00:55:55 +02:00
admin doc: Switch doxygen integration back to breathe 2015-03-20 17:17:16 +08:00
ceph-erasure-code-corpus@f1f95a1de9
ceph-object-corpus@da43eb1195
cmake/modules CMake: add FindNSPR.cmake 2015-05-07 13:19:50 +02:00
debian Merge pull request #4532 from dachary/wip-init-system-detection 2015-05-07 22:21:26 +02:00
doc Merge pull request #4599 from dachary/wip-releases 2015-05-07 14:19:38 -07:00
etc/sysconfig/SuSEfirewall2.d/services packaging: move SuSEfirewall2 templates out of src 2015-04-30 12:04:14 +10:00
examples
fusetrace
keys
m4 crc32c: add aarch64 optimized crc32c implementation 2015-03-17 13:56:52 -05:00
man Merge pull request #4532 from dachary/wip-init-system-detection 2015-05-07 22:21:26 +02:00
qa Merge pull request #3743 from trociny/wip-osd_create 2015-05-08 00:13:37 +08:00
rpm
share
src Merge pull request #4532 from dachary/wip-init-system-detection 2015-05-07 22:21:26 +02:00
systemd Increase max files open limit for OSD daemon. 2015-04-21 11:31:24 +02:00
udev Rework ceph-disk to allow LUKS for encrypted partitions 2015-01-30 14:34:42 +13:00
.gitignore tests: replace existing gtest 1.5.0 with gmock/gtest 1.7.0 2015-01-25 23:09:03 -05:00
.gitmodule_mirrors .gitmodule_mirrors: add gmock.git mirror 2015-03-05 08:29:11 -08:00
.gitmodules ceph needs gmock/gtest to be statically linked 2015-03-06 00:23:44 +01:00
.mailmap mailmap: Zhi (David) Zhang affiliation 2015-04-02 21:54:53 +02:00
.organizationmap Update Haomai's organization 2015-04-20 00:48:42 +08:00
.peoplemap Some sanitization work on .mailmap, .organizationmap, .peoplemap : Sorting , Duplicate removal 2015-03-16 21:02:34 +00:00
AUTHORS
autogen.sh autogen.sh: do not submodule --force if git does not support it 2015-03-07 17:11:58 +01:00
ceph.spec.in Merge pull request #4532 from dachary/wip-init-system-detection 2015-05-07 22:21:26 +02:00
ChangeLog
CMakeLists.txt CMakeLists.txt: fix detection of nss 2015-05-07 13:26:18 +02:00
CodingStyle
configure.ac configure.ac: no use to add "+" before ac_ext=c 2015-05-06 10:17:48 +08:00
CONTRIBUTING.rst
COPYING Add GPLv2 text file 2015-02-27 10:43:26 -07:00
COPYING-GPL2 Add GPLv2 text file 2015-02-27 10:43:26 -07:00
COPYING-LGPL2.1
do_autogen.sh do_autogen.sh: unambiguously use nss unless user asks for cryptopp 2015-04-21 17:00:27 -07:00
doc_deps.deb.txt
Doxyfile doc: do not doxygen src/tracing 2015-02-23 16:26:27 +01:00
INSTALL
install-deps.sh install-deps.sh: pip wheel for python dependencies 2015-05-05 19:16:50 +02:00
make-debs.sh build: make-debs.sh NPROC overrides make -j 2015-05-05 19:16:56 +02:00
Makefile.am tests: fail make check if nproc is too low 2015-05-08 00:55:55 +02:00
NEWS
PendingReleaseNotes Update PendingReleaseNotes for firefly change, rgw socket path related 2015-04-06 10:38:57 -07:00
pom.xml
README
README.cmake
README.md README: rm references to old Ubuntu distros 2015-04-07 17:38:44 -06:00
README.xio xio: Update README.xio with dependencies 2015-03-17 05:13:57 -07:00
run-make-check.sh run-make-check.sh: stricter check for yum/apt-get/zypper 2015-04-30 17:51:20 +10:00
SubmittingPatches SubmittingPatches: clarify backport procedure 2015-05-05 11:27:46 -06:00

============================================ Ceph - a scalable distributed storage system

Please see http://ceph.com/ for current info.

Contributing Code

Most of Ceph is licensed under the LGPL version 2.1. Some miscellaneous code is under BSD-style license or is public domain. The documentation is licensed under Creative Commons Attribution-ShareAlike (CC BY-SA). There are a handful of headers included here that are licensed under the GPL. Please see the file COPYING for a full inventory of licenses by file.

Code contributions must include a valid "Signed-off-by" acknowledging the license for the modified or contributed file. Please see the file SubmittingPatches for details on what that means and on how to generate and submit patches.

We do not require assignment of copyright to contribute code; code is contributed under the terms of the applicable license.

Build Prerequisites

debian-based

The list of debian packages dependencies can be installed with:

./install-deps.sh

Note: libsnappy-dev and libleveldb-dev are not available upstream for Debian Squeeze. Backports for Ceph can be found at ceph.com/debian-leveldb.

rpm-based

The list of RPM packages dependencies can be installed with:

./install-deps.sh

Building Ceph

Developers, please refer to the Developer Guide for more information, otherwise, you can build the server daemons, and FUSE client, by executing the following:

./autogen.sh
./configure
make

(Note that the FUSE client will only be built if libfuse is present.)

Dependencies

The configure script will complain about any missing dependencies as it goes. You can also refer to debian/control or ceph.spec.in for the package build dependencies on those platforms. In many cases, dependencies can be avoided with --with-foo or --without-bar switches. For example,

./configure --with-nss         # use libnss instead of libcrypto++
./configure --without-radosgw  # do not build radosgw
./configure --without-tcmalloc # avoid google-perftools dependency

Building packages

You can build packages for Debian or Debian-derived (e.g., Ubuntu) systems with

sudo apt-get install dpkg-dev
dpkg-checkbuilddeps        # make sure we have all dependencies
dpkg-buildpackage

For RPM-based systems (Red Hat, SUSE, etc.),

rpmbuild

Building the Documentation

Prerequisites

The list of package dependencies for building the documentation can be found in doc_deps.deb.txt:

sudo apt-get install `cat doc_deps.deb.txt`

Building the Documentation

To build the documentation, ensure that you are in the top-level `/ceph directory, and execute the build script. For example:

admin/build-doc