Shared memory (/dev/shm)

Shared memory (/dev/shm)

Shared memory (/dev/shm) allows Linux programs to efficiently pass data between each other. When one program creates a memory portion, another one can access it to speed up its processes.

Until recently, the value of shm_size in build containers and microservices was set to 64MB by default. This could cause some issues such as browser crashing, especially with e2e tests running headless Chrome or Selenium microservices.

Shared memory values

From version 2.1.18 upwards, the shm_size value for build containers and microservices in the cloud plans is based on the amount of RAM in the chosen plan.

shm_size = RAM / 8

In Buddy Enterprise the default value remains 64MB. If required, you can change it in the Buddy CLI:

  1. Log in to the machine where Buddy Enterprise is installed.
  2. Enter configuration settings by entering text buddy configure
  3. Go to Set build memory limit.
  4. Press u to update the value & enter to save changes.
  5. Restart the application to apply changes. Buddy Enterprise installationBuddy Enterprise installation
Sign up for Buddy Digest

Best practices on CI/CD and fresh changelogs delivered weekly to your inbox.