Skip to content

Allow setting the shared memory (shm) size for the API container #1638

Closed
@ninkin

Description

@ninkin

Hello.

I'm looking for the way to set shm size of cortex workers.

According to the aws documentation(https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#container_definition_linuxparameters), it seems possible to set shared memory size of containers.

I've implemented pytorch dataloader (num_workers > 0) to use prefetch feature to get images from s3. Because it takes much time to download the files.

btw only I got was this message, "error: unexpected bus error encountered in worker. this might be caused by insufficient shared memory (shm)".

Is it possible to set shm size or any workarounds?

Many thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions