<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Sorry All! Previous answer was about "Performance tweaks" Hal
Murray question!</p>
<p><br>
</p>
<p>About performance: every 1kpps give 1-2% for me regardless
mrulist enabled/disabled . If you want solution for highloaded up
to "all cores 100% CPU" servers you can two ways:</p>
<p>1. multithreaded daemon. I think it does not simple, especially
on many OS. www daemons do it, but it does not need so fast reply
time (on the other hand, tsp is harder, udp no connection setup
required).<br>
</p>
<p>2. external "balancer/cacher" daemon like rsntp. For example
child threads can use SHM linux shared memory (or something like
this) and read value from "main" ntp process. I guess it can be
fast. Even if you cache time value in child thread for ms, it
still be very useful. (Or its "caching time" may be subtracted for
greater accuracy). I guess overloaded NTS task is not so much
"nanoseconds" precision time as to serve huge number of customers.
So this mode will be good solution too. </p>
--<br>
Mike <br>
<br>
<blockquote type="cite"
cite="mid:b17c2943-d817-e236-fdff-db5b5ad30fb8@kaluga.net">
<div class="moz-cite-prefix">13.01.2020 11:54, Hal Murray:<br>
</div>
<blockquote type="cite"
cite="mid:20200113085416.537CE40605C@ip-64-139-1-69.sjc.megapath.net">
<pre class="moz-quote-pre" wrap="">Thanks.
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">and without 'limited' on ~5kpps I have 8-10% CPU regardless minitoring
enabled/disabled. About 1% on 1000pps.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">Is that within reason or worth investigating? 1% times 5 should be 5% rather
than 8-10% but there may not be enough significant digits in any of the
numbers.
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">For those who want to process hundreds of thousands of requests per second
(like 'national standard' servers) you can use multithreading and multiply
power of server.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">The current code isn't setup for threads. I think with a bit of work, we
could get multiple threads on the server side.
On an Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
I can get 330K packets per second.
258K with AES CMAC.
I don't have NTS numbers yet.
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:devel@ntpsec.org">devel@ntpsec.org</a>
<a class="moz-txt-link-freetext" href="http://lists.ntpsec.org/mailman/listinfo/devel">http://lists.ntpsec.org/mailman/listinfo/devel</a>
</pre>
</blockquote>
</body>
</html>