Re: [gdal-dev] GDAL_CACHMAX on a docker container

2018-05-23 Thread Guy Doulberg
I opened and issue:https://github.com/OSGeo/gdal/issues/640 Can you check in your docker container that > cat /sys/fs/cgroup/memory/memory.limit_in_bytes > returns the maximum memory amount you specified ? > yes it returns the memory I specified On Wed, May 23, 2018 at 1:53 PM, Robert Coup wrot

Re: [gdal-dev] GDAL_CACHMAX on a docker container

2018-05-23 Thread Robert Coup
Hi, On 23 May 2018 at 11:48, Even Rouault wrote: > > There are some hints to how this could be done: > https://github.com/dotnet/coreclr/blob/master/src/gc/unix/cgroup.cpp > https://stackoverflow.com/questions/42187085/check-mem- > limit-within-a-docker-container > > I just tried > > $ docker ru

Re: [gdal-dev] GDAL_CACHMAX on a docker container

2018-05-23 Thread Even Rouault
On mercredi 23 mai 2018 13:30:30 CEST Guy Doulberg wrote: > Hi guys > > I wanted to share with you a GOTCHA I struggled with in the passed few > days, maybe it will be helpful for more people > > I am using GDAL on a docker cluster, since there are more services running > on the host I limit the

Re: [gdal-dev] GDAL_CACHMAX on a docker container

2018-05-23 Thread Mateusz Loskot
On 23 May 2018 at 12:30, Guy Doulberg wrote: > > To solve to issue (to control the memory the process is going to use) I > explictly set the GDAL_CACHMAX to an absolute value The option name is GDAL_CACHEMAX https://trac.osgeo.org/gdal/wiki/ConfigOptions Best regards, -- Mateusz Loskot, http:/

[gdal-dev] GDAL_CACHMAX on a docker container

2018-05-23 Thread Guy Doulberg
Hi guys I wanted to share with you a GOTCHA I struggled with in the passed few days, maybe it will be helpful for more people I am using GDAL on a docker cluster, since there are more services running on the host I limit the container to use only 1GB of ram The default behavior of GDAL_CACHMAX i