davidliyutong / cloud-platform-apiserver

Yet another Cloud Based IDE Platform for Labs and Small Organizations
4 stars 0 forks source link

[BUG] Default Shared Memory (shm) Size Limited to 64MB in Containerd Containers #20

Open panoanx opened 5 months ago

panoanx commented 5 months ago

Hello,

I've observed a significant limitation in the default configuration of containerd that impacts various applications, particularly those requiring a substantial amount of shared memory. The default shared memory (shm) size for containers managed by containerd is set to only 64MB. This default setting can lead to unexpected behavior or performance issues for applications that rely on shared memory for inter-process communication or other purposes.

Issue Description:

Expected Behavior:

Possible Solutions:

spec:
  volumes:
    - name: dshm
      emptyDir:
        medium: Memory
        sizeLimit: "1Gi"
  containers:
    - name: mycontainer
      image: your_image_name
      volumeMounts:
        - name: dshm
          mountPath: /dev/shm