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 }}
|
||||
mountPath: {{ .mountPath }}
|
||||
{{- end }}
|
||||
- name: dshm
|
||||
mountPath: /dev/shm
|
||||
volumes:
|
||||
- name: localtime
|
||||
hostPath:
|
||||
@@ -98,3 +100,6 @@ spec:
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .claimName }}
|
||||
{{- end }}
|
||||
- name: dshm
|
||||
emptyDir:
|
||||
medium: Memory
|
||||
|
||||
Reference in New Issue
Block a user