onyx

FYI: alternative Onyx :onyx: chat is at <https://gitter.im/onyx-platform/onyx> ; log can be found at <https://clojurians-log.clojureverse.org/onyx/index.html>
sreekanth 2018-08-07T06:26:55.000149Z

Congratulations onyx team.

kenny 2018-08-07T19:17:51.000022Z

I have the Java prop -Daeron.term.buffer.length=536870912 set but Onyx still sends Warning: space is running low in /dev/shm (shm). Is there some other configuration I need to set to get it to pick up the property?

2018-08-07T19:33:37.000282Z

are you running in a docker container by any chance ?

lucasbradstreet 2018-08-07T19:35:19.000313Z

^ if so the shm-size option in docker (or memory containers in your orchestration equivalent) is the way to go

kenny 2018-08-07T19:35:28.000444Z

Running with docker-compose. I have shm_size: 1024M in my service. Running df -h shows 1.0G available.

2018-08-07T19:37:56.000378Z

hmm could or be that the warning is triggered when it gets somewhere near the 512MB free range? have you tried increasing shm size to something larger such as 4GB?

2018-08-07T19:38:46.000257Z

you’re using the correct docker settings, and this works fine for me in comparable setups

kenny 2018-08-07T19:39:56.000201Z

I'll try that. The part that throws me is this message: Warning: space is running low in /dev/shm (shm) threshold=167,772,160 usable=1,372,160. I assume threshold is the max size and it's definitely not set to 167,772,160.

2018-08-07T19:42:07.000261Z

I think the threshold probably defines when it is supposed to emit the warning, but this is just a guess.

kenny 2018-08-07T19:42:40.000408Z

Can't set aeron.term.buffer.length to 4g because that's larger than Integer.MAX_VALUE. Will try something smaller.

2018-08-07T19:42:56.000429Z

It probably fills up the 512MB quickly. Are you sending large messages by any chance ?

lucasbradstreet 2018-08-07T19:44:03.000433Z

Those term buffers are huge. Each connection will create three of them to create a connection

kenny 2018-08-07T19:44:27.000363Z

Yes. Setting to 1gb seems to do it.

2018-08-07T19:54:13.000341Z

I think the default is 16mb

lucasbradstreet 2018-08-07T19:55:02.000377Z

Which is arguably too big as it is, as we create a lot of connections to build a job DAG

2018-08-07T19:59:13.000584Z

point being, 1gb is still too large. @kenny

kenny 2018-08-07T19:59:56.000468Z

512mb did not work.

2018-08-07T20:05:44.000145Z

I think 1gb is unlikely to work either. If you get these warnings, you’ll most likely want to decrease the aeron term buffer length rather than increase it