X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fsnapshots%2Fust_test;h=54e1d88a02eb01e43745a05b0414df1aa75ef36e;hp=f05846f3e34bf0840b9c840aa821d97847db96f8;hb=034a784813438dd99cfd1c1ea2fc9ee713dad345;hpb=c364f6e0f99c54fe8bf54c791af9f368683c9678 diff --git a/tests/regression/tools/snapshots/ust_test b/tests/regression/tools/snapshots/ust_test index f05846f3e..54e1d88a0 100755 --- a/tests/regression/tools/snapshots/ust_test +++ b/tests/regression/tools/snapshots/ust_test @@ -181,9 +181,12 @@ function test_ust_local_snapshot () function test_ust_local_snapshot_max_size () { - subbuf_size=8192 + page_size=`getconf PAGE_SIZE` num_cpus=`nproc` + # The minimum subbuf size is the platform PAGE_SIZE + subbuf_size=$(($page_size*2)) + # The minimum size limit is min(subbuf_size) * nb_streams max_size=$(($subbuf_size*$num_cpus))