Skip to content

Commit

Permalink
reduce test files
Browse files Browse the repository at this point in the history
  • Loading branch information
shosseinimotlagh committed Dec 22, 2024
1 parent fc45b92 commit 3607878
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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&) >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down
2 changes: 1 addition & 1 deletion src/engine/homeds/tests/loadgen_tests/test_load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/homeblks/volume/tests/vol_gtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion src/homelogstore/tests/test_log_dev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/homelogstore/tests/test_log_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3607878

Please sign in to comment.