Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Issue with shared mmap #852

Open
vinay-y opened this issue Dec 9, 2017 · 7 comments
Open

Issue with shared mmap #852

vinay-y opened this issue Dec 9, 2017 · 7 comments

Comments

@vinay-y
Copy link

vinay-y commented Dec 9, 2017

We are trying to run filebench 1.4.9.1 benchmark in a clear container running on Ubuntu 16.04. But, inside the container, when we run filebench we get the following error.
"Could not mmap the shared memory file: Invalid argument"

It works fine using "runc" runtime. We suspect the error is because filebench is using mmap in MAP_SHARED mode which may not be supported by clear containers. Please help me out if this is true. Has anyone else encountered this shared mmap issue before?

Thanks.

@jodh-intel
Copy link
Contributor

Hi @vinay-y - MAP_SHARED should work. Please can you run the sudo cc-collect-data.sh script and attach to this issue (after reviewing its contents).

Also, could you add an strace of the failing call(s)?

@devimc
Copy link

devimc commented Dec 11, 2017

this is a very known issue with 9p, @vinay-y could you try with devicemapper?

docker: https://docs.docker.com/engine/userguide/storagedriver/device-mapper-driver/#configure-docker-with-the-devicemapper-storage-driver

@grahamwhaley
Copy link
Contributor

Just for ref, a little old background over here: intel/cc-oci-runtime#949
/cc @egernst

@jodh-intel
Copy link
Contributor

Thanks @grahamwhaley and @devimc ! That ol' 🌰. I was confused because mmap(MMAP_SHARED) alone on 9p does seem to work. But not in combination with ftruncate().

@jodh-intel
Copy link
Contributor

(that's a chestnut by the way, not a pile of anything... ;)

@vinay-y
Copy link
Author

vinay-y commented Dec 14, 2017

Thank you @devimc @grahamwhaley @jodh-intel .
It worked with devicemapper driver in docker. This is yet to be fixed?

@egernst
Copy link

egernst commented Jan 23, 2018

@vinay-y -- I think for 9p in Clear Containers this is probably categorized as "will not fix". @devimc @grahamwhaley @jodh-intel - agreed?

mcastelino pushed a commit to mcastelino/runtime that referenced this issue Dec 6, 2018
Add support for ipvlan network driver
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants