-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running filebench in gVisor #10901
Comments
I don't see gvisor/pkg/sentry/fsimpl/proc/tasks_sys.go Lines 48 to 79 in 115723c
would you implement that if you are interested for the workaround, you can simply implement a fake entry to skip the step |
Yes, it's not currently there. I think adding it as a static file should work? |
since it is writing to the file, implementing the interface at
|
I'm not sure I understand the request. Does Filebench absolutely require running on a host that has ASLR turned off, and you are looking to see how that could be enabled from within gVisor? |
So far I have not been able to successfully run Filebench unless |
Can you simply mount a file containing the string "0" there?
|
@EtiennePerot Hmm, that might work. Let me try it |
@EtiennePerot It did not work, then there might be some other issue, not sure |
filebench shares a |
@nixprime Is it possible to disable ASLR in gvisor currently? |
IIUC ASLR in gVisor is implemented here: gvisor/pkg/sentry/arch/arch_amd64.go Lines 232 to 256 in b050c04
We don't have a way to disable that as of right now. |
FYI, gVisor already has filesystem stress tests based on the fio tool. For example, to test runsc I/O performance with KVM+DirectFS, you could do: # Build runsc:
$ mkdir bin
$ make copy TARGETS=runsc DESTINATION=bin/
# Install Docker runtime with KVM + DirectFS enabled:
$ sudo bin/runsc install --runtime=runsc-bench -- --platform=kvm --directfs=true
$ sudo systemctl restart docker
# Run `fio` benchmark:
$ make RUNTIME=runsc-bench BENCHMARKS_TARGETS=test/benchmarks/fs:fio_test run-benchmark
BenchmarkFioWrite/operation.write/ioEngine.sync/jobs.1/blockSize.4K/directIO.false/filesystem.bindfs-20 19762 1800039 ns/op 604614656 bandwidth.bytes_per_second 147611 io_ops.ops_per_second
[...] To compare with unsandboxed, use |
@EtiennePerot Thank you. Yeah, I have no problem running fio. I wanted to try Filebench as it has better and more flexible filesystem metadata stress tests such as creating and deleting large numbers of files etc. As far as I know, Fio is recommended mostly for testing raw I/O performance. |
Description
I am trying to run some filesystem metadata stress tests using Filebench(https://github.com/filebench/filebench) on gVisor. For the experiments, I need to turn off address randomization using
echo 0 > /proc/sys/kernel/randomize_va_space
. I understand that I cannot access or modify this from gVisor. This has been an issue in Filebench for some time (filebench/filebench#163 and filebench/filebench#112) and I am not sure if they are going to fix it. I was wondering if is there any workaround within gVisor that I can do for this to work?Is this feature related to a specific bug?
No response
Do you have a specific solution in mind?
No response
The text was updated successfully, but these errors were encountered: