Skip to content

uds-csi: the per-pod tmpfs has a size cap but no inode cap (nr_inodes) #1107

Closed

Description

@bpalermo

Proposal 039's design mounts the per-pod tmpfs with size=<small>,nr_inodes=<small>; Phase 1 as built (#1090) passes exactly mode=2770,uid=0,gid=<fsGroup>,size=<bytes>. Without nr_inodes the kernel default is half the node's RAM pages worth of inodes, so a workload can create a very large number of empty files/sockets in its socket directory and pin kernel memory outside its memory cgroup accounting expectations (tmpfs inodes are charged to the cgroup that created them, but the cap is the cheap, explicit bound the design asked for). Add nr_inodes (chart value udsCsi.inodes, small default, e.g. 64) with a unit test on the mount data string and an assertion in e2e/uds-csi.sh (df -i on the host mount).

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions