Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can /tmp/cache and /dev/shm use same mount? #11284

Closed
SlavikCA opened this issue May 8, 2024 · 1 comment
Closed

can /tmp/cache and /dev/shm use same mount? #11284

SlavikCA opened this issue May 8, 2024 · 1 comment
Labels
question Further information is requested

Comments

@SlavikCA
Copy link

SlavikCA commented May 8, 2024

I'm running Frigate 0.13.1 in Kubernetes.

First I tried to install it via Helm Chart:
https://github.com/blakeblackshear/blakeshome-charts/tree/master/charts/frigate

There are many issues with that chart, but I managed to run it and after running found, that /tmp/cache doesn't use memory, but points to the disc (container overlay disc, not volume).

So, I'm writing my my own Kubernetes manifest here: https://gitlab.acloud.app/system/harvester/-/tree/main/frigate

I noticed, that both /tmp/cache and /dev/shm are expected to use memory, not disc space. So, logically the question: can I use one mount for both of these locations?
In Kubernetes it would be:

          volumeMounts:
            - name: dshm
              mountPath: /dev/shm
            - name: dshm
              mountPath: /tmp/cache
      volumes:
        - name: dshm
          emptyDir:
            medium: Memory
            sizeLimit: 4Gi

I know, that Docker has special way to handle tmpfs and shm. It looks like there is nothing like that in Kubernetes - just Memory mount.
So, will /dev/shm and /tmp/cache interfere with each other? Is there any reason to keep them separate?

@SlavikCA SlavikCA added the enhancement New feature or request label May 8, 2024
@NickM-27
Copy link
Sponsor Collaborator

NickM-27 commented May 8, 2024

They should not interfere with each other

@NickM-27 NickM-27 added question Further information is requested and removed enhancement New feature or request labels May 8, 2024
@NickM-27 NickM-27 closed this as completed May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants