runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Issue with shared mmap

Open vinay-y opened this issue 7 years ago • 7 comments

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.

vinay-y avatar Dec 09 '17 08:12 vinay-y

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)?

jodh-intel avatar Dec 11 '17 09:12 jodh-intel

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

devimc avatar Dec 11 '17 13:12 devimc

Just for ref, a little old background over here: https://github.com/01org/cc-oci-runtime/issues/949 /cc @egernst

grahamwhaley avatar Dec 11 '17 14:12 grahamwhaley

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

jodh-intel avatar Dec 11 '17 15:12 jodh-intel

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

jodh-intel avatar Dec 11 '17 15:12 jodh-intel

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

vinay-y avatar Dec 14 '17 12:12 vinay-y

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

egernst avatar Jan 23 '18 17:01 egernst