summaryrefslogtreecommitdiffstats
path: root/src/test/compressor/test_compression.cc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* test: add missing include for std::coutMax Kellermann2024-11-041-0/+3
| | | | Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
* uadk: add unit testsRongqi Sun2024-08-121-0/+85
| | | | Signed-off-by: Rongqi Sun <sunrongqi@huawei.com>
* compressor/zlib: isa-l optimization for zlib algorithm on aarch64Dai Zhiwei2022-06-251-3/+3
| | | | Signed-off-by: Dai Zhiwei <daizhiwei3@huawei.com>
* compressor: s/boost::optional/std::optional/Kefu Chai2022-03-221-13/+13
| | | | | | | prefer facilities provided by standard library over the ones in 3rd party libraries. Signed-off-by: Kefu Chai <tchaikov@gmail.com>
* test: : build without "using namespace std"Kefu Chai2021-08-131-0/+2
| | | | | | | | | | * 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>
* compressor/zlib:make zlib windowBits configurable for compressionWangPengfei2020-04-301-30/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* test/compressor: test round trip of an osdmapDan van der Ster2020-03-021-0/+39
| | | | | | | | 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>
* src/: s/advance/operator+=/Kefu Chai2020-02-021-1/+1
| | | | | | for better readablity Signed-off-by: Kefu Chai <kchai@redhat.com>
* test/compressor: do not include unused headerKefu Chai2019-08-031-1/+0
| | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* test: s/INSTANTIATE_TEST_CASE_P/INSTANTIATE_TEST_SUITE_P/Kefu Chai2019-05-021-1/+1
| | | | | | the former is deprecated Signed-off-by: Kefu Chai <kchai@redhat.com>
* common/config: push down Mutex #includeSage Weil2018-11-211-0/+1
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* common/PluginRegistry: Mutex -> ceph::mutexSage Weil2018-11-211-1/+1
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* cleanup: Replace always-false assertions with abortAdam C. Emerson2018-08-271-1/+1
| | | | Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* test: Use ceph_assert for asserts.Adam C. Emerson2018-08-271-1/+1
| | | | Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* common: move ConfigValues out of md_config_tKefu Chai2018-07-101-23/+23
| | | | | | | | | | | | 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>
* common: add LockPolicy to md_config_tKefu Chai2018-06-271-0/+1
| | | | | | | | | 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>
* core: use const_iterator for decodeKefu Chai2018-05-171-2/+2
| | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* compressor: add QAT supportQiaowei Ren2018-04-181-0/+75
| | | | | | | | | | | | | | | | | 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>
* unittest_compression: avoid claim_prependSage Weil2018-04-031-1/+2
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* test: drop hackery for CEPH_LIBSage Weil2018-03-061-2/+0
| | | | | | Generic config code parses this now as part of global_init. Signed-off-by: Sage Weil <sage@redhat.com>
* cleanup: src/.libs -> build/libSage Weil2018-03-061-1/+1
| | | | | | | 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>
* buffer: Append from std::string_viewAdam C. Emerson2018-02-161-2/+2
| | | | | | Now that we have std::string_view. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* rados: Switch MIN/MAX for std::min/max and use intarith templatesAdam C. Emerson2018-01-121-1/+1
| | | | Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* Merge pull request #19549 from bi-shun/brotli-compressorYuri Weinstein2018-01-061-0/+3
|\ | | | | | | | | compressor: Add Brotli Compressor Reviewed-by: Kefu Chai <kchai@redhat.com>
| * Compressor: Add Brotli CompressorBI SHUN KE2017-12-291-0/+3
| | | | | | | | Signed-off-by: BI SHUN KE <aionshun@livemail.tw>
* | test: fix unittest memory leak to make valgrind silenceYao Zongyou2017-12-251-0/+2
|/ | | | Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
* test/unittest_compression: fail if factory is not readyKefu Chai2017-11-111-1/+1
| | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* unittest_compression: speed it upSage Weil2017-07-241-5/+5
| | | | | | ~4m -> ~25s Signed-off-by: Sage Weil <sage@redhat.com>
* test_compression: add lz4Haomai Wang2017-06-031-0/+3
| | | | Signed-off-by: Haomai Wang <haomai@xsky.com>
* test/compressor: disable isal tests if not availableKefu Chai2017-05-031-0/+21
| | | | | | | | 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>
* test: add override in test submoduleliuchang08122017-03-031-1/+1
| | | | Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
* common: add override for common submodule and miscliuchang08122017-02-161-2/+2
| | | | | | Fixes: http://tracker.ceph.com/issues/18922 Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
* compressor/zstd: add zstd compressorSage Weil2017-01-251-1/+2
| | | | | | | 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>
* test,cmake: turn unit.h into unit.cc to speed up compilationKefu Chai2016-11-281-4/+3
| | | | Signed-off-by: Kefu Chai <kchai@redhat.com>
* common,test: g_ceph_context->put() upon returnKefu Chai2016-11-241-19/+1
| | | | | | | | | | | | | | | | | | | | | 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>
* Fixed problem with isal-regular gzip compatibility.Adam Kupczyk2016-11-021-0/+68
| | | | | | Added tests. Signed-off-by: Adam Kupczyk <akupczyk@mirantis.com>
* compressor/ZLibCompressor: fix broken isal-lIgor Fedotov2016-10-121-1/+1
| | | | Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
* unittest_compression: naming nitSage Weil2016-10-071-22/+22
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* unittest_compression: restore zlib_isal settingSage Weil2016-10-071-0/+8
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* unittest_compression: subsume plugin testSage Weil2016-10-061-0/+23
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* unittest_compression: subsume _zlib and _snappy test casesSage Weil2016-10-061-0/+199
| | | | | | This includes zlib and isal interop. Signed-off-by: Sage Weil <sage@redhat.com>
* unittest_compressor: smaller big testSage Weil2016-10-061-1/+1
| | | | | | Just so it runs a bit faster! Signed-off-by: Sage Weil <sage@redhat.com>
* compressor/zlib: disable ISA-LSage Weil2016-10-061-1/+1
| | | | | | This fails the unit tests. Do not reenable until it is fixed! Signed-off-by: Sage Weil <sage@redhat.com>
* compressor/zlib: add compressor_zlib_isal config option to disable ISA-LSage Weil2016-10-061-2/+23
| | | | | | | 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>
* unittest_compressor: unified compression tests, parameterized by pluginSage Weil2016-10-061-0/+153
This obsoletes the per-plugin plugin tests, which are tedious anyway. Signed-off-by: Sage Weil <sage@redhat.com>