Bruno,

Thanks for the investigative effort.  It is good to know that mmap files
work in Docker, though worrying as well for the reasons you cite.

thx again, and I will post here if I find anything more.

Claude

On Fri, Aug 10, 2018 at 2:01 AM, Bruno P. Kinoshita <
[email protected]> wrote:

> Hi Claude,
>
> >I am running the stain/fuseki based version of fuseki on docker.
>
> I use the same when running Skosmos or when I want to quickly test
> something in Jena and don't have my Eclipse workspace.
>
>
> >I am wondering how well the memory mapped files in TDB work inside the
> >docker container.  Or even if they do at all?  Does anyone know?
>
> I assumed it would work, but never tried mmap within a container. So found
> a repo with a test for mmap in Docker.
>
>
> https://github.com/eugeneware/mmap
>
>
> So did a quick test
>
>
> ```shell
> $ cd /tmp
>
> $ git clone https://github.com/eugeneware/mmap.git
>
> $ cd mmap
> $ docker pull stain/jena-fuseki:latest
> $ docker run --name jena_fuseki_1 --rm -i -t -v $(pwd -P):/srv
> stain/jena-fuseki bash
> bash-4.3# apk add --no-cache make gcc g++
> ###....
> bash-4.3# cd /srv
> bash-4.3# gcc -o mmap mmap-problem.c # alpine and glibc issues, have to
> recompile within container
> bash-4.3# ./mmap test.txt
> hello
> world
> mmap works from internal filesyste - hoorah!
>
> ```
>
> So apparently mmap should work OK. I have no idea how well it works in
> relation to having multiple containers using it, isolation, performance,
> etc. But hope it helps a bit at least. If you learn more about it, please
> share here (:
>
> Cheers
> Bruno
>
>
>
>
>
> ________________________________
> From: Claude Warren <[email protected]>
> To: [email protected]
> Sent: Friday, 10 August 2018 2:50 AM
> Subject: Fuseki on Docker
>
>
>
> I am running the stain/fuseki based version of fuseki on docker.
>
>
> I am wondering how well the memory mapped files in TDB work inside the
>
> docker container.  Or even if they do at all?  Does anyone know?
>
>
>
> --
>
> I like: Like Like - The likeliest place on the web
>
> <http://like-like.xenei.com>
>
> LinkedIn: http://www.linkedin.com/in/claudewarren
>



-- 
I like: Like Like - The likeliest place on the web
<http://like-like.xenei.com>
LinkedIn: http://www.linkedin.com/in/claudewarren

Reply via email to