Skip to content

Improve error handling if /dev/shm too small #72

Description

@nedbass

In #59 it was reported that an application crashed with SIGBUS if /dev/shm was configured with insufficient space. On the mailing list it was suggested that this case could be detected and reported more gracefully if we replace the use of ftruncate() with fallocate(), although that would sacrifice portability since fallocate() is Linux-specific. @adammoody also pointed out that we'd need to examine how memory pages are assigned to NUMA banks with fallocate().

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