Skip to content

on some Linux systems, may need bind mount /dev/shm #1

@c0b

Description

@c0b

on some Linux systems, sometimes see Chrome browser may crash one page or two, seems happening randomly, not exactly sure why some page works some not, but since I know Chrome on Linux using a lot of large page memory mapping, which is a tmpfs mounting on /dev/shm on some Linux variants, and it depends on which Linux, the docker run instance may use the default 64MB, that may not be enough in some cases, you may set a different --shm-size 1024MB or just share /dev/shm from host by -v /dev/shm:/dev/shm on docker run lines

$ docker run --help | grep shm
      --shm-size string             Size of /dev/shm, default value is 64MB
$ df -Th /dev/shm
Filesystem     Type   Size  Used Avail Use% Mounted on
tmpfs          tmpfs  3.9G  231M  3.7G   6% /dev/shm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions