3 ms·
BEAM has a 'busy wait' feature. Schedulers with no jobs to do will remain active so they can respond to new jobs faster. You can turn this down so that the sche
by PinkMilkshake 8y ago
BEAM has a 'busy wait' feature. Schedulers with no jobs to do will remain active so they can respond to new jobs faster. You can turn this down so that the schedulers go to sleep quicker, reducing CPU usage.
From http://erlang.org/doc/man/erl.html http://erlang.org/doc/man/erl.html:
+sbwt none|very_short|short|medium|long|very_long
Sets scheduler busy wait threshold. Defaults to medium. The threshold
determines how long schedulers are to busy wait when running out of work
before going to sleep.
- osrec 8y agoInteresting. Have you ever used Erlang in production? How did you find it?
- PinkMilkshake 8y agoNot really no. The closest thing to production I've used it was as a one-liner web-server to serve some images.
- tannhaeuser 8y agoIt's pretty obvious if you're running RabbitMQ which ranks highly in the output of `top` even if no messages are being processed.