Skip to content

Commit

Permalink
Merge branch 'wip-rgw-bench'
Browse files Browse the repository at this point in the history
Conflicts:
	debian/rules
  • Loading branch information
liewegas committed May 7, 2012
2 parents efc0701 + 6c2c883 commit ac90321
Show file tree
Hide file tree
Showing 12 changed files with 1,416 additions and 581 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "src/leveldb"]
path = src/leveldb
url = git://github.com/ceph/leveldb.git
[submodule "src/libs3"]
path = src/libs3
url = git://github.com/ceph/libs3.git
18 changes: 18 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,24 @@ AS_IF([test "x$with_system_leveldb" = xcheck],
[AC_CHECK_LIB([leveldb], [leveldb_open], [with_system_leveldb=yes], [], [-lsnappy -lpthread])])
AM_CONDITIONAL(WITH_SYSTEM_LEVELDB, [ test "$with_system_leveldb" = "yes" ])

# use system libs3?
AC_ARG_WITH([system-libs3],
[AS_HELP_STRING([--with-system-libs3], [use system libs3])],
,
[with_system_libs3=no])
AS_IF([test "x$with_system_libs3" = xyes],
[AC_CHECK_LIB([s3], [S3_initialize], [true], [AC_MSG_FAILURE([libs3 not found])], [-lpthread])])
AS_IF([test "x$with_system_libs3" = xcheck],
[AC_SEARCH_LIBS([S3_initialize], [s3], [with_system_libs3=yes], [true], [-lpthread])])
AM_CONDITIONAL(WITH_SYSTEM_LIBS3, [ test "$with_system_libs3" = "yes" ])

# rest-bench?
AC_ARG_WITH([rest-bench],
[AS_HELP_STRING([--with-rest-bench], [enables rest-bench])],
[],
[with_rest_bench=no])
AM_CONDITIONAL(WITH_REST_BENCH, [ test "$with_rest_bench" = "yes" ])

# use libaio?
AC_ARG_WITH([libaio],
[AS_HELP_STRING([--without-libaio], [disable libaio use by journal])],
Expand Down
16 changes: 15 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Vcs-Git: git://github.com/ceph/ceph.git
Vcs-Browser: https://github.com/ceph/ceph
Maintainer: Laszlo Boszormenyi (GCS) <[email protected]>
Uploaders: Sage Weil <[email protected]>
Build-Depends: debhelper (>= 6.0.7~), autotools-dev, autoconf, automake, libfuse-dev, libboost-dev (>= 1.34), libedit-dev, libcrypto++-dev, libtool, libexpat1-dev, libfcgi-dev, libatomic-ops-dev, libgoogle-perftools-dev [i386 amd64], pkg-config, libgtkmm-2.4-dev, python, libcurl4-gnutls-dev, libkeyutils-dev, uuid-dev, libaio-dev, python (>= 2.6.6-3~)
Build-Depends: debhelper (>= 6.0.7~), autotools-dev, autoconf, automake, libfuse-dev, libboost-dev (>= 1.34), libedit-dev, libcrypto++-dev, libtool, libexpat1-dev, libfcgi-dev, libatomic-ops-dev, libgoogle-perftools-dev [i386 amd64], pkg-config, libgtkmm-2.4-dev, python, libcurl4-gnutls-dev, libkeyutils-dev, uuid-dev, libaio-dev, python (>= 2.6.6-3~), libxml2-dev
Standards-Version: 3.9.3

Package: ceph
Expand Down Expand Up @@ -271,6 +271,20 @@ Description: debugging symbols for radosgw
.
This package contains debugging symbols for radosgw.

Package: rest-bench
Architecture: linux-any
Depends: ${shlibs:Depends}, ${misc:Depends}, ceph-common, xml2, curl
Description: RESTful bencher that can be used to benchmark
radosgw performance.

Package: rest-bench-dbg
Architecture: linux-any
Section: debug
Priority: extra
Depends: ${shlibs:Depends}, ${misc:Depends}, ceph-common, xml2, curl
Description: RESTful bencher that can be used to benchmark
radosgw performance.

Package: obsync
Architecture: linux-any
Depends: ${misc:Depends}, python, python-boto, python-ceph, python-pyxattr, python-lxml
Expand Down
1 change: 1 addition & 0 deletions debian/rest-bench.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/bin/rest-bench
3 changes: 2 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ endif

export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)

extraopts += --with-ocf
extraopts += --with-ocf --with-rest-bench

ifeq ($(DEB_HOST_ARCH), armel)
# armel supports ARMv4t or above instructions sets.
Expand Down Expand Up @@ -116,6 +116,7 @@ binary-arch: build install
dh_strip -plibcephfs1 --dbg-package=libcephfs1-dbg
dh_strip -pradosgw --dbg-package=radosgw-dbg
dh_strip -pgceph --dbg-package=gceph-dbg
dh_strip -prest-bench --dbg-package=rest-bench-dbg

dh_compress
dh_fixperms
Expand Down
49 changes: 43 additions & 6 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
AUTOMAKE_OPTIONS = gnu
SUBDIRS = ocf
DIST_SUBDIRS = gtest ocf leveldb
SUBDIRS = ocf libs3
DIST_SUBDIRS = gtest ocf leveldb libs3

EXTRA_DIST = \
libs3/COPYING \
libs3/ChangeLog \
libs3/GNUmakefile \
libs3/GNUmakefile.mingw \
libs3/GNUmakefile.osx \
libs3/INSTALL \
libs3/LICENSE \
libs3/README \
libs3/TODO \
libs3/archlinux \
libs3/debian \
libs3/doxyfile \
libs3/inc \
libs3/libs3.spec \
libs3/mswin \
libs3/src \
libs3/test

CLEANFILES =
bin_PROGRAMS =
# like bin_PROGRAMS, but these targets are only built for debug builds
Expand Down Expand Up @@ -367,10 +387,27 @@ librbd_la_LDFLAGS = ${AM_LDFLAGS} -version-info 1:0:0 \
-export-symbols-regex '^rbd_.*' $(PTHREAD_LIBS) $(EXTRALIBS)
lib_LTLIBRARIES += librbd.la

rados_SOURCES = rados.cc rados_import.cc rados_export.cc rados_sync.cc
rados_SOURCES = rados.cc rados_import.cc rados_export.cc rados_sync.cc common/obj_bencher.cc
rados_LDADD = libglobal.la librados.la $(PTHREAD_LIBS) -lm $(CRYPTO_LIBS) $(EXTRALIBS)
bin_PROGRAMS += rados

if WITH_REST_BENCH

rest_bench_SOURCES = tools/rest_bench.cc common/obj_bencher.cc
rest_bench_LDADD = libglobal.la $(PTHREAD_LIBS) -lm $(CRYPTO_LIBS) $(EXTRALIBS)
rest_bench_CXXFLAGS = ${AM_CXXFLAGS}
bin_PROGRAMS += rest-bench

if WITH_SYSTEM_LIBS3
rest_bench_LDADD += -ls3
else
rest_bench_LDADD += libs3/build/lib/libs3.a -lcurl -lxml2
rest_bench_CXXFLAGS += -I$(top_srcdir)/src/libs3/inc
SUBDIRS += libs3
endif

endif

scratchtool_SOURCES = scratchtool.c
scratchtool_LDADD = librados.la $(PTHREAD_LIBS) -lm $(CRYPTO_LIBS) $(EXTRALIBS)
scratchtoolpp_SOURCES = scratchtoolpp.cc
Expand Down Expand Up @@ -867,7 +904,8 @@ EXTRALIBS += -lgcov
endif

# extra bits
EXTRA_DIST = $(srcdir)/verify-mds-journal.sh $(srcdir)/vstart.sh $(srcdir)/stop.sh \
EXTRA_DIST += \
$(srcdir)/verify-mds-journal.sh $(srcdir)/vstart.sh $(srcdir)/stop.sh \
ceph-run $(srcdir)/ceph_common.sh \
$(srcdir)/init-radosgw \
$(srcdir)/ceph-clsinfo $(srcdir)/make_version $(srcdir)/check_version \
Expand Down Expand Up @@ -1221,6 +1259,7 @@ noinst_HEADERS = \
common/environment.h\
common/likely.h\
common/lockdep.h\
common/obj_bencher.h\
common/snap_types.h\
common/Clock.h\
common/Cond.h\
Expand Down Expand Up @@ -1557,7 +1596,6 @@ noinst_HEADERS = \
osd/ReplicatedPG.h\
osd/Watch.h\
osd/osd_types.h\
osdc/rados_bencher.h\
osdc/Blinker.h\
osdc/Filer.h\
osdc/Journaler.h\
Expand Down Expand Up @@ -1653,7 +1691,6 @@ if WITH_DEBUG
bin_PROGRAMS += $(bin_DEBUGPROGRAMS)
endif


project.tgz: clean
cov-configure -co /usr/bin/gcc
cov-configure -co /usr/bin/g++
Expand Down
Loading

0 comments on commit ac90321

Please sign in to comment.