feat: add /dev/shm shared memory volume to jupyterlab deployment
Mount RAM-backed emptyDir at /dev/shm to remove the default 64MB limit, preventing Bus errors when using PyTorch DataLoader or NumPy multiprocessing.
This commit is contained in:
@@ -75,6 +75,8 @@ spec:
|
|||||||
- name: gv-{{ .claimName }}
|
- name: gv-{{ .claimName }}
|
||||||
mountPath: {{ .mountPath }}
|
mountPath: {{ .mountPath }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
- name: dshm
|
||||||
|
mountPath: /dev/shm
|
||||||
volumes:
|
volumes:
|
||||||
- name: localtime
|
- name: localtime
|
||||||
hostPath:
|
hostPath:
|
||||||
@@ -98,3 +100,6 @@ spec:
|
|||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ .claimName }}
|
claimName: {{ .claimName }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
- name: dshm
|
||||||
|
emptyDir:
|
||||||
|
medium: Memory
|
||||||
|
|||||||
Reference in New Issue
Block a user