CONABIO / kube_sipecam

k8s processing documentation for SiPeCaM project
MIT License
0 stars 1 forks source link

check if shm is necessary to mount as a volume for audio processings #6

Open palmoreck opened 4 years ago

palmoreck commented 4 years ago

Using run docker cmd for nvcr.io/nvidia/tensorflow:19.03-py3 docker image

I got:

The SHMEM allocation limit is set to the default of 64MB. This may be insufficient for TensorFlow. NVIDIA recommends the use of the following flags: nvidia-docker run --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 ...

Maybe I need to mount a volume like:

    volumeMounts:
     - name: efs-pvc
       mountPath: "/shared_volume"
     - name: dshm
       mountPath: /dev/shm
  volumes:
   - name: efs-pvc
     persistentVolumeClaim:
      claimName: efs
   - name: dshm 
     emptyDir:
      medium: Memory

in

https://github.com/CONABIO/kube_sipecam/blob/master/deployments/audio/kale-jupyterlab-kubeflow_0.4.0_1.14.0_tf_cpu.yaml#L35

??