From a583e5decbc26ef1dfcb2977f85ef5768ec87513 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 18 Dec 2015 17:45:27 -0500 Subject: [PATCH] ceph_test_objectstore: do Synthetic tests over larger objects 400k for objects. Signed-off-by: Sage Weil --- src/test/objectstore/store_test.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/test/objectstore/store_test.cc b/src/test/objectstore/store_test.cc index 75c71eba55fc1..1341d04ae210a 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -1499,11 +1499,11 @@ class SyntheticWorkloadState { public: static const unsigned max_in_flight = 16; static const unsigned max_objects = 3000; - static const unsigned max_object_len = 1024 * 40; static const unsigned max_attr_size = 5; static const unsigned max_attr_name_len = 100; static const unsigned max_attr_value_len = 1024 * 4; coll_t cid; + unsigned max_object_len; unsigned in_flight; map contents; set available_objects; @@ -1608,8 +1608,10 @@ public: ObjectGenerator *gen, gen_type *rng, ObjectStore::Sequencer *osr, - coll_t cid) - : cid(cid), in_flight(0), object_gen(gen), rng(rng), store(store), osr(osr), + coll_t cid, + unsigned max_size) + : cid(cid), max_object_len(max_size), + in_flight(0), object_gen(gen), rng(rng), store(store), osr(osr), lock("State lock") {} int init() { @@ -2130,7 +2132,7 @@ TEST_P(StoreTest, Synthetic) { gen_type rng(time(NULL)); coll_t cid(spg_t(pg_t(0,555), shard_id_t::NO_SHARD)); - SyntheticWorkloadState test_obj(store.get(), &gen, &rng, &osr, cid); + SyntheticWorkloadState test_obj(store.get(), &gen, &rng, &osr, cid, 400*1024); test_obj.init(); for (int i = 0; i < 1000; ++i) { if (!(i % 500)) cerr << "seeding object " << i << std::endl; @@ -2171,7 +2173,7 @@ TEST_P(StoreTest, AttrSynthetic) { gen_type rng(time(NULL)); coll_t cid(spg_t(pg_t(0,447),shard_id_t::NO_SHARD)); - SyntheticWorkloadState test_obj(store.get(), &gen, &rng, &osr, cid); + SyntheticWorkloadState test_obj(store.get(), &gen, &rng, &osr, cid, 40*1024); test_obj.init(); for (int i = 0; i < 500; ++i) { if (!(i % 10)) cerr << "seeding object " << i << std::endl; -- 2.39.5