Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Add --shm-size support #436

Open
muller opened this issue Aug 15, 2017 · 6 comments
Open

Add --shm-size support #436

muller opened this issue Aug 15, 2017 · 6 comments

Comments

@muller
Copy link
Contributor

muller commented Aug 15, 2017

At the moment it is not possible to set --shm-size from senza definition files. This flag may be required by some applications.

Definition of --shm-size from: https://docs.docker.com/engine/reference/run/#runtime-constraints-on-resources

--shm-size="" Size of /dev/shm. The format is . number must be greater than 0. Unit is optional and can be b (bytes), k (kilobytes), m (megabytes), or g (gigabytes). If you omit the unit, the system uses bytes. If you omit the size entirely, the system uses 64m.

@hjacobs
Copy link
Contributor

hjacobs commented Aug 15, 2017

@muller could you describe your WHY (use case you need this for)?

@muller
Copy link
Contributor Author

muller commented Aug 16, 2017

@hjacobs
Copy link
Contributor

hjacobs commented Aug 16, 2017

@muller thanks, still: do you see any problems with the current behavior (without the flag) and how do they manifest/impact? I'm really trying to understand the use case and why you would be the first one hitting this problem...

@muller
Copy link
Contributor Author

muller commented Aug 17, 2017

From aeron readme:

Note: if you are trying to run this inside a Linux Docker, be aware that, by default, Docker only allocates 64 MB to the shared memory space at /dev/shm. However, the samples will quickly outgrow this.

@szuecs
Copy link
Member

szuecs commented Sep 25, 2017

@muller so to understand the setup: you (you as aeron user) fork processes and need therefore communication by SHM which is bigger than 64m?

@muller
Copy link
Contributor Author

muller commented Oct 2, 2017

@szuecs yes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants