Browse Source

Set _incomingPacketConcurrency to 1

pull/1/head
Joseph Henry 7 years ago
parent
commit
3792683cc6
  1. 6
      src/Service.cpp

6
src/Service.cpp

@ -272,7 +272,11 @@ public:
_ports[1] = 0;
_ports[2] = 0;
_incomingPacketConcurrency = std::max((unsigned long)1,std::min((unsigned long)16,(unsigned long)std::thread::hardware_concurrency()));
/* Packet input concurrency is disabled intentially since it
would force the user-space network stack to constantly re-order
frames, resulting in lower RX performance */
_incomingPacketConcurrency = 1;
// std::max((unsigned long)1,std::min((unsigned long)16,(unsigned long)std::thread::hardware_concurrency()));
char *envPool = std::getenv("INCOMING_PACKET_CONCURRENCY");
if (envPool != NULL) {
int tmp = atoi(envPool);

Loading…
Cancel
Save