has anyone else encountered something similar? Is ...
# ask-the-community
a
has anyone else encountered something similar? Is there a way to provision more shared memory to a specific task?
y
cc @Eduardo Apolinario (eapolinario) @jeev
you’re right we should probably address this along with gpus
a
Thanks for the quick reply. We added a
pod_template_name
that volumes it in. A feature request could be to control this via the resource requests 😛
y
yeah we’re seeing if there’s anything common between migs and shm
j
👍
shm is basically set at as a volume (memory-backed
emptyDir
with an optional
sizeLimit
) and a corresponding volume mount to the primary container. i think the only thing it has in common with migs is that it requires an update to the pod spec. 😅
y
well, and maybe how it’s specified by the user.
j
in flytekit? there might also validations we need to do where shm size limit has to be less than memory limit - shm usage counts towards container memory usage. and sizelimit is also optional - uses up to container memory limit.
u
Hey @Yee @jeev @Arthur Book Did you guys solve it in any easy way or any example for pod_template for that? I’m encountering it when working with DataLoaders 😛
u
Thanks!