| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
|
|
|
|
| |
Signed-off-by: Rongqi Sun <sunrongqi@huawei.com>
|
|
|
|
| |
Signed-off-by: Dai Zhiwei <daizhiwei3@huawei.com>
|
|
|
|
|
|
|
| |
prefer facilities provided by standard library over the ones in
3rd party libraries.
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
* add "std::" prefix in headers
* add "using" declarations in .cc files.
so we don't rely on "using namespace std" in one or more included
headers.
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Signed-off-by: WangPengfei <wpf_1253@qq.com>
modified: src/common/legacy_config_opts.h
modified: src/common/options.cc
modified: src/compressor/Compressor.h
modified: src/compressor/QatAccel.cc
modified: src/compressor/QatAccel.h
modified: src/compressor/brotli/BrotliCompressor.cc
modified: src/compressor/brotli/BrotliCompressor.h
modified: src/compressor/lz4/LZ4Compressor.h
modified: src/compressor/snappy/SnappyCompressor.h
modified: src/compressor/zlib/ZlibCompressor.cc
modified: src/compressor/zlib/ZlibCompressor.h
modified: src/compressor/zstd/ZstdCompressor.h
modified: src/os/bluestore/BlueStore.cc
modified: src/os/bluestore/bluestore_types.cc
modified: src/os/bluestore/bluestore_types.h
modified: src/rgw/rgw_compression.cc
modified: src/rgw/rgw_compression.h
modified: src/rgw/rgw_compression_types.h
modified: src/rgw/rgw_json_enc.cc
modified: src/rgw/rgw_op.cc
modified: src/rgw/rgw_rados.cc
modified: src/test/compressor/compressor_example.h
modified: src/test/compressor/test_compression.cc
modified: src/test/rgw/test_rgw_compression.cc
|
|
|
|
|
|
|
|
| |
Check if the compressors can compress/decompress a bufferlist which is not word
aligned, such as a freshly-encoded osdmap.
Related-to: https://tracker.ceph.com/issues/39525
Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
|
|
|
|
|
|
| |
for better readablity
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
| |
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
|
|
| |
the former is deprecated
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
| |
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
| |
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
| |
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
|
|
|
|
| |
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
by moving ConfigValues out of md_config_t, we are able to point
md_config_t to a new ConfigValues instance at runtime, without
destroying the old one.
also remove ConfigReader, because all md_config_obs_t will be updated
with ConfigProxy now. as md_config_t is not able to offer the *data*
anymore.
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
|
|
|
|
|
| |
before this change, we guard all read/write access to md_config_t with a
lock. after this change, this policy is optional. and is controled by a
enum named `LockPolicy`. we will use `md_config_impl<LockPolicy::SINGLE>`
to implement the lockless config used by crimson/osd.
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
| |
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds new QATzip plugin to support QAT for compression.
QATZip is a user space library which builds on top of the Intel
QAT (QuickAssist Technology) user space library, to provide extended
accelerated compression and decompression services by offloading the
actual compression and decompression request(s) to the hardware
QAT accelerators, which are more efficient in terms of cost and power
than general purpose CPUs for those specific compute-intensive
workloads.
Based on QAT accelerators, QATZip can support several compression
algorithm, including deflate, snappy, lz4, etc..
Signed-off-by: Qiaowei Ren <qiaowei.ren@intel.com>
|
|
|
|
| |
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
|
|
| |
Generic config code parses this now as part of global_init.
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
|
|
|
| |
Clean up remaining traces of automake's .libs. This makes unittest_*
tests easier to run by hand (mostly).
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
|
|
| |
Now that we have std::string_view.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
|
|
|
|
| |
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
|
|\
| |
| |
| |
| | |
compressor: Add Brotli Compressor
Reviewed-by: Kefu Chai <kchai@redhat.com>
|
| |
| |
| |
| | |
Signed-off-by: BI SHUN KE <aionshun@livemail.tw>
|
|/
|
|
| |
Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
|
|
|
|
| |
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
|
|
| |
~4m -> ~25s
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
| |
Signed-off-by: Haomai Wang <haomai@xsky.com>
|
|
|
|
|
|
|
|
| |
the isal-zlib compressor plugin is not supported on non-intel archs, and
if the user does not have a capable yasm compiler, neither will he/she
get this plugin.
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
| |
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
|
|
|
|
|
|
| |
Fixes: http://tracker.ceph.com/issues/18922
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
|
|
|
|
|
|
|
| |
Build/link of zstd itself is maybe not ideal, but it works fine.
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
| |
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
prior to this change, global_init() could create a new CephContext
and assign it to g_ceph_context. it's our responsibilty to release
the CephContext explicitly using cct->put() before the application
quits. but sometimes, we fail to do so.
in this change, global_init() will return an intrusive_ptr<CephContext>,
which calls `g_ceph_context->put()` in its dtor. this ensures that
the CephContext is always destroyed before main() returns. so the
log is flushed before _log_exp_length is destroyed.
there are two cases where global_pre_init() is called directly.
- ceph_conf.cc: g_ceph_context->put() will be called by an intrusive_ptr<>
deleter.
- rgw_main.cc: global_init() is called later on on the success code
path, so it will be taken care of.
Fixes: http://tracker.ceph.com/issues/17762
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
|
|
| |
Added tests.
Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
|
|
|
|
| |
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
|
|
|
|
| |
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
| |
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
| |
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
|
|
| |
This includes zlib and isal interop.
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
|
|
| |
Just so it runs a bit faster!
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
|
|
| |
This fails the unit tests. Do not reenable until it is fixed!
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
|
|
|
| |
We dynamically enable this if the necessary processor features are present.
Allow this probing to be disabled explicitly.
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
This obsoletes the per-plugin plugin tests, which are tedious anyway.
Signed-off-by: Sage Weil <sage@redhat.com>
|