From af5c61c73aa7c8288967b58761ba7a84f9236e78 Mon Sep 17 00:00:00 2001 From: Pavel Shirshov Date: Thu, 10 Nov 2016 18:29:44 -0800 Subject: [PATCH] Add set rcv buffer for syncd rpc (#64) --- dockers/docker-syncd-mlnx-rpc/Dockerfile | 1 + dockers/docker-syncd-mlnx-rpc/ptf_nn_agent.conf | 2 +- dockers/docker-syncd-rpc/Dockerfile | 1 + dockers/docker-syncd-rpc/ptf_nn_agent.conf | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dockers/docker-syncd-mlnx-rpc/Dockerfile b/dockers/docker-syncd-mlnx-rpc/Dockerfile index 734171ffb3..c22145d1d6 100644 --- a/dockers/docker-syncd-mlnx-rpc/Dockerfile +++ b/dockers/docker-syncd-mlnx-rpc/Dockerfile @@ -44,5 +44,6 @@ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY ptf_nn_agent.conf /etc/supervisor/conf.d/ptf_nn_agent.conf ENTRYPOINT service rsyslog start \ + && sysctl -w net.core.rmem_max=509430500 \ && service syncd start \ && /usr/bin/supervisord diff --git a/dockers/docker-syncd-mlnx-rpc/ptf_nn_agent.conf b/dockers/docker-syncd-mlnx-rpc/ptf_nn_agent.conf index b16159a996..fa1ed0eb16 100644 --- a/dockers/docker-syncd-mlnx-rpc/ptf_nn_agent.conf +++ b/dockers/docker-syncd-mlnx-rpc/ptf_nn_agent.conf @@ -1,5 +1,5 @@ [program:ptf_nn_agent] -command=/usr/bin/python /opt/ptf_nn_agent.py --device-socket 1@tcp://0.0.0.0:10900 -i 1-3@Ethernet12 +command=/usr/bin/python /opt/ptf_nn_agent.py --device-socket 1@tcp://0.0.0.0:10900 -i 1-3@Ethernet12 --set-iface-rcv-buffer=109430400 process_name=ptf_nn_agent stdout_logfile=/tmp/ptf_nn_agent.out.log stderr_logfile=/tmp/ptf_nn_agent.err.log diff --git a/dockers/docker-syncd-rpc/Dockerfile b/dockers/docker-syncd-rpc/Dockerfile index 28108a8258..214230491e 100644 --- a/dockers/docker-syncd-rpc/Dockerfile +++ b/dockers/docker-syncd-rpc/Dockerfile @@ -44,5 +44,6 @@ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY ptf_nn_agent.conf /etc/supervisor/conf.d/ptf_nn_agent.conf ENTRYPOINT service rsyslog start \ + && sysctl -w net.core.rmem_max=509430500 \ && service syncd start \ && /usr/bin/supervisord diff --git a/dockers/docker-syncd-rpc/ptf_nn_agent.conf b/dockers/docker-syncd-rpc/ptf_nn_agent.conf index b16159a996..fa1ed0eb16 100644 --- a/dockers/docker-syncd-rpc/ptf_nn_agent.conf +++ b/dockers/docker-syncd-rpc/ptf_nn_agent.conf @@ -1,5 +1,5 @@ [program:ptf_nn_agent] -command=/usr/bin/python /opt/ptf_nn_agent.py --device-socket 1@tcp://0.0.0.0:10900 -i 1-3@Ethernet12 +command=/usr/bin/python /opt/ptf_nn_agent.py --device-socket 1@tcp://0.0.0.0:10900 -i 1-3@Ethernet12 --set-iface-rcv-buffer=109430400 process_name=ptf_nn_agent stdout_logfile=/tmp/ptf_nn_agent.out.log stderr_logfile=/tmp/ptf_nn_agent.err.log