Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] Add Epoll

Hi there,

I send a pull-request #482 Add Epoll for mosquitto on Linux.

Using epoll system-call instead of poll, mosquitto can get performance
improvement especially in handling huge concurrent connections.

I confirmed it on my test environment.
1) from 1 to 50k CONNECT-CONNACK: 7028 msec (original version: 16,586ms)
  > 2.4 times faster !
Under 50k concurrent connections:
2) 1000k PUBLISH from client by QoS=0: 34,625 msec (origin: 38,510ms)
  > Almost same.
3) 1000k PUBLISH from client by QoS=1: 52,594 msec (origin: 252,418ms)
  > 4.8 times faster !
4) 1000k PUBLISH from client by QoS=2: 89,599 msec (origin: 508,901ms)
  > 5.7 times faster !

Plz try it and send your feedback.
For your convenience, use my repository:
https://github.com/toast-uz/mosquitto/tree/AddEpoll until the
pull-request merged, and compile it by "$ make binary WITH_EPOLL=yes".

Regards,
Tatsuzo Osawa (toast-uz)


Back to the top