From d24265513978a8faf3448139b48303eac31f8f22 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sat, 13 Aug 2016 10:36:42 -0400 Subject: [PATCH] unittest_bluefs: make flush_3 test device larger I filled it up on my nvme device. Signed-off-by: Sage Weil --- src/test/objectstore/test_bluefs.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/objectstore/test_bluefs.cc b/src/test/objectstore/test_bluefs.cc index 6ceb6fef5cc08..2936ec716444f 100644 --- a/src/test/objectstore/test_bluefs.cc +++ b/src/test/objectstore/test_bluefs.cc @@ -291,7 +291,7 @@ TEST(BlueFS, test_flush_1) { } TEST(BlueFS, test_flush_2) { - uint64_t size = 1048476 * 128; + uint64_t size = 1048476 * 256; string fn = get_temp_bdev(size); g_ceph_context->_conf->set_val( "bluefs_alloc_size", @@ -305,7 +305,7 @@ TEST(BlueFS, test_flush_2) { ASSERT_EQ(0, fs.mkfs(fsid)); ASSERT_EQ(0, fs.mount()); { - uint64_t effective_size = size - (32 * 1048576); // leaving the last 32 MB for log compaction + uint64_t effective_size = size - (128 * 1048576); // leaving the last 32 MB for log compaction uint64_t per_thread_bytes = (effective_size/(NUM_WRITERS)); std::vector write_thread_multiple; for (int i=0; i_conf->set_val( "bluefs_alloc_size", @@ -334,7 +334,7 @@ TEST(BlueFS, test_flush_3) { ASSERT_EQ(0, fs.mount()); { std::vector write_threads; - uint64_t effective_size = size - (11 * 1048576); // leaving the last 11 MB for log compaction + uint64_t effective_size = size - (64 * 1048576); // leaving the last 11 MB for log compaction uint64_t per_thread_bytes = (effective_size/(NUM_WRITERS)); for (int i=0; i