From: Sage Weil Date: Sat, 13 Aug 2016 14:36:42 +0000 (-0400) Subject: unittest_bluefs: make flush_3 test device larger X-Git-Tag: ses5-milestone5~93^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F10717%2Fhead;p=ceph.git unittest_bluefs: make flush_3 test device larger I filled it up on my nvme device. Signed-off-by: Sage Weil --- diff --git a/src/test/objectstore/test_bluefs.cc b/src/test/objectstore/test_bluefs.cc index 6ceb6fef5cc0..2936ec716444 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