From 36078788ae526e10303ed740e167125842e97957 Mon Sep 17 00:00:00 2001 From: shosseinimotlagh Date: Sun, 22 Dec 2024 12:45:53 -0800 Subject: [PATCH] reduce test files --- .../tests/loadgen_tests/storespecs/cache_store_spec.hpp | 2 +- .../homeds/tests/loadgen_tests/storespecs/map_store_spec.hpp | 2 +- src/engine/homeds/tests/loadgen_tests/test_load.cpp | 2 +- src/homeblks/volume/tests/vol_gtest.cpp | 4 ++-- src/homelogstore/tests/test_log_dev.cpp | 2 +- src/homelogstore/tests/test_log_store.cpp | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/engine/homeds/tests/loadgen_tests/storespecs/cache_store_spec.hpp b/src/engine/homeds/tests/loadgen_tests/storespecs/cache_store_spec.hpp index ec50c717d..3e1241287 100644 --- a/src/engine/homeds/tests/loadgen_tests/storespecs/cache_store_spec.hpp +++ b/src/engine/homeds/tests/loadgen_tests/storespecs/cache_store_spec.hpp @@ -33,7 +33,7 @@ namespace loadgen { template < typename K, typename V, const size_t NodeSize = 8192 > class CacheStoreSpec : public StoreSpec< K, V > { - static constexpr uint64_t MAX_CACHE_SIZE{static_cast< uint64_t >(2) * 1024 * 1024 * 1024}; + static constexpr uint64_t MAX_CACHE_SIZE{static_cast< uint64_t >(1) * 1024 * 1024 * 1024}; typedef homestore::Cache< CacheKey, homestore::CacheBuffer< CacheKey > > CacheType; typedef std::function< void(generator_op_error, const key_info< K, V >*, void*, const std::string&) > diff --git a/src/engine/homeds/tests/loadgen_tests/storespecs/map_store_spec.hpp b/src/engine/homeds/tests/loadgen_tests/storespecs/map_store_spec.hpp index bafd1e86c..6c568d537 100644 --- a/src/engine/homeds/tests/loadgen_tests/storespecs/map_store_spec.hpp +++ b/src/engine/homeds/tests/loadgen_tests/storespecs/map_store_spec.hpp @@ -70,7 +70,7 @@ class MapStoreSpec : public StoreSpec< K, V > { /* Create a volume */ vol_params params; params.page_size = NodeSize; - params.size = 10 * Gi; + params.size = 5 * Gi; params.uuid = boost::uuids::random_generator()(); const std::string name{"vol1"}; std::memcpy(static_cast< void* >(params.vol_name), static_cast< const void* >(name.c_str()), diff --git a/src/engine/homeds/tests/loadgen_tests/test_load.cpp b/src/engine/homeds/tests/loadgen_tests/test_load.cpp index eac0d8d50..a0f041950 100644 --- a/src/engine/homeds/tests/loadgen_tests/test_load.cpp +++ b/src/engine/homeds/tests/loadgen_tests/test_load.cpp @@ -612,7 +612,7 @@ SISL_OPTION_GROUP( ::cxxopts::value< uint64_t >()->default_value("3600"), "number"), (files, "", "input-files", "Do IO on a set of files", cxxopts::value< std::vector< std::string > >(), "path,[path,...]"), - (num_vols, "", "num_vols", "number of vols to create", ::cxxopts::value< uint64_t >()->default_value("50"), + (num_vols, "", "num_vols", "number of vols to create", ::cxxopts::value< uint64_t >()->default_value("20"), "number")) SISL_OPTIONS_ENABLE(logging, test_load) diff --git a/src/homeblks/volume/tests/vol_gtest.cpp b/src/homeblks/volume/tests/vol_gtest.cpp index d8aa4ef17..3650e5b8f 100644 --- a/src/homeblks/volume/tests/vol_gtest.cpp +++ b/src/homeblks/volume/tests/vol_gtest.cpp @@ -2607,8 +2607,8 @@ SISL_OPTION_GROUP( (oob_unmap_enable, "", "oob_unmap_enable", "out-of-band unmap enable 0 or 1", ::cxxopts::value< uint32_t >()->default_value("0"), "flag"), (max_disk_capacity, "", "max_disk_capacity", "max disk capacity", - ::cxxopts::value< uint64_t >()->default_value("20"), "GB"), - (max_volume, "", "max_volume", "max volume", ::cxxopts::value< uint64_t >()->default_value("50"), "number"), + ::cxxopts::value< uint64_t >()->default_value("10"), "GB"), + (max_volume, "", "max_volume", "max volume", ::cxxopts::value< uint64_t >()->default_value("20"), "number"), (max_num_writes, "", "max_num_writes", "max num of writes", ::cxxopts::value< uint64_t >()->default_value("100000"), "number"), (verify_type, "", "verify_type", "verify type", ::cxxopts::value< uint32_t >()->default_value("0"), diff --git a/src/homelogstore/tests/test_log_dev.cpp b/src/homelogstore/tests/test_log_dev.cpp index 6fb8ba609..7e139ec21 100644 --- a/src/homelogstore/tests/test_log_dev.cpp +++ b/src/homelogstore/tests/test_log_dev.cpp @@ -108,7 +108,7 @@ SISL_OPTION_GROUP(test_log_dev, (num_devs, "", "num_devs", "number of devices to create", ::cxxopts::value< uint32_t >()->default_value("2"), "number"), (dev_size_mb, "", "dev_size_mb", "size of each device in MB", - ::cxxopts::value< uint64_t >()->default_value("5120"), "number")); + ::cxxopts::value< uint64_t >()->default_value("3072"), "number")); int main(int argc, char* argv[]) { SISL_OPTIONS_LOAD(argc, argv, logging, test_log_dev); diff --git a/src/homelogstore/tests/test_log_store.cpp b/src/homelogstore/tests/test_log_store.cpp index cc4f5e00a..8fcc0902e 100644 --- a/src/homelogstore/tests/test_log_store.cpp +++ b/src/homelogstore/tests/test_log_store.cpp @@ -1309,7 +1309,7 @@ SISL_OPTION_GROUP(test_log_store, (num_devs, "", "num_devs", "number of devices to create", ::cxxopts::value< uint32_t >()->default_value("2"), "number"), (dev_size_mb, "", "dev_size_mb", "size of each device in MB", - ::cxxopts::value< uint64_t >()->default_value("10240"), "number"), + ::cxxopts::value< uint64_t >()->default_value("5120"), "number"), (device_list, "", "device_list", "Device List instead of default created", ::cxxopts::value< std::vector< std::string > >(), "path [...]"), (num_logstores, "", "num_logstores", "number of log stores",