Skip to content

Commit

Permalink
Merge pull request #2763 from AYUSHJAIN951/filebench
Browse files Browse the repository at this point in the history
Run filebench with addr_no_randomize
  • Loading branch information
Naresh-ibm committed Feb 20, 2024
2 parents 1727ece + c67edcb commit cce5af4
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 cce5af4

Please sign in to comment.