Open vinay-y opened 6 years ago
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)?
this is a very known issue with 9p, @vinay-y could you try with devicemapper?
Just for ref, a little old background over here: https://github.com/01org/cc-oci-runtime/issues/949 /cc @egernst
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()
.
(that's a chestnut by the way, not a pile of anything... ;)
Thank you @devimc @grahamwhaley @jodh-intel . It worked with devicemapper driver in docker. This is yet to be fixed?
@vinay-y -- I think for 9p in Clear Containers this is probably categorized as "will not fix". @devimc @grahamwhaley @jodh-intel - agreed?
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.