Skip to content

Commit

Permalink
Run filebench with addr_no_randomize
Browse files Browse the repository at this point in the history
Filebench causes segmentation fault on system when
ASLR is enabled as memory starts to overlap when many
processes are defined with same binary of filebench.
So running benchmark with addr_no_randomize personality
making the benchmark to run cleanly.

Signed-off-by: Ayush Jain <[email protected]>
  • Loading branch information
AYUSHJAIN951 committed Feb 19, 2024
1 parent 6c24b41 commit c67edcb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion fs/filebench.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ def test(self):
testfile = self.params.get('testfile', default='fileserver.f')
testfile_path = os.path.join(self.install_prefix, 'share', 'filebench',
'workloads', testfile)
cmd = '%s -f %s' % (binary_path, testfile_path)

# Due to compatibility issues with filebench, ASLR (Address Space
# Layout Randomization) is disabled in the process personality.
# Filebench does not work properly when ASLR is enabled.
# Disabling ASLR ensures consistent behavior and reliable execution
# of filebench benchmarks.

cmd = 'setarch --addr-no-randomize %s -f %s' % (binary_path, testfile_path)
out = process.system_output(cmd)
self.log.info(b"result:" + out)

0 comments on commit c67edcb

Please sign in to comment.