# Optimizing server performance for handling large amount of NTP packet efficiently

**URL:** <https://community.ntppool.org/t/optimizing-server-performance-for-handling-large-amount-of-ntp-packet-efficiently/2440>\
**Category:** Server operators\
**Created:** [June 6, 2022, 6:35am UTC](https://community.ntppool.org/t/optimizing-server-performance-for-handling-large-amount-of-ntp-packet-efficiently/2440 "2022-06-06T06:35:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![penguinpee](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/penguinpee/32/919_2.png) [@penguinpee](https://community.ntppool.org/u/penguinpee)\
**Post date:** [June 6, 2022, 8:41am UTC](https://community.ntppool.org/t/optimizing-server-performance-for-handling-large-amount-of-ntp-packet-efficiently/2440/2 "2022-06-06T08:41:05Z")

</div>

Did you try searching? The information you provide is not very detailed. So, it be difficult to judge as to what causes your server to overload.

Depending on the root cause of the overload you experience there may be different solutions. Two (random) suggestions for further reading:

> [@Sysctl configuration for high performance NTP server](https://community.ntppool.org/t/sysctl-configuration-for-high-performance-ntp-server/1517/2):
>
> If the server has enough RAM, you may want to reduce the chance of swapping pages to disk. This is controlled by the vm.swappiness setting. A lower setting reduces the swapping activity. Default is afaik 60, My server uses a value of 20, but you can set lower values if you want to. vm.swappiness = 20 Another important performance setting is in the firewall where you have to switch off connection tracking for NTP packets. Assuming your server uses iptables, add the following lines to your iptab…

> [@"io timeout" in CSV logs](https://community.ntppool.org/t/io-timeout-in-csv-logs/1081/8):
>
> Seems more stable now, i’ve dropped server speed configuration to 768kbit, this is a little shameful but it keeps server available. Also, tunned some parameters at sysctl in server side. Like: net.netfilter.nf\_conntrack\_udp\_timeout = 120 net.netfilter.nf\_conntrack\_udp\_timeout\_stream = 720 net.netfilter.nf\_conntrack\_buckets = 48256 net.netfilter.nf\_conntrack\_max = 262144 net.nf\_conntrack\_max = 262144 net.core.netdev\_max\_backlog = 350000 net.core.rmem\_max = 38414400 net.core.rmem\_default =…

---

_[View the full topic](https://community.ntppool.org/t/optimizing-server-performance-for-handling-large-amount-of-ntp-packet-efficiently/2440)._
