diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2019-10-10 18:10:30 +0200 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2019-10-10 18:10:30 +0200 |
commit | 10d2cec8f7e27e7f09818b27e80bcf0a073ef15d (patch) | |
tree | b2b7708cb5863bdcdb1cc3a62eba2727262065e8 /bin | |
parent | 073d5a4f2b32497e29ed6363e6364f9fee365f43 (diff) |
bin:storage_test.py: Use free disk space / 4 to run bonnie++
The rule of thumb of dividing the space /2 does not work all the time especially on UC devices.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/storage_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/storage_test.py b/bin/storage_test.py index 3dbc87f..e6eecfd 100755 --- a/bin/storage_test.py +++ b/bin/storage_test.py @@ -78,7 +78,7 @@ def run_bonnie(test_dir, user='root'): free = free_space(test_dir) print('{}MB of free space avaialble'.format(free)) if (force_mem_mb * 2) > free: - force_mem_mb = free / 2 + force_mem_mb = free / 4 print('Forcing memory setting to {}MB'.format(force_mem_mb)) cmd = 'bonnie++ -d {} -u {} -r {}'.format(test_dir, user, force_mem_mb) print('+', cmd, flush=True) |