<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<big><font face="Calibri">Hello Peter,<br>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ thank you for quick response.ÃÂ In the mean
time I've set max-cache-entries to 4M and
max-packetcache-entries to 1M with 4 threads. If I execute
`rec_control get cache-entries packetcache-entries
negcache-entries nsspeeds-entries`<br>
<br>
cache-entries = 4000398<br>
packetcache-entries = 1000478<br>
</font></big><big><font face="Calibri"><big><font face="Calibri">negcache-entries
= </font></big>400147<br>
</font></big><big><font face="Calibri"><big><font face="Calibri">nsspeeds-entries
= </font></big>32238<br>
<br>
Your answer:<br>
<br>
"The max-*-entries settings are per thread. So, threads=4 and
max-cache-entries=4M will yield you a total of 16M entries, but
there will be a lot of overlap between those 4 sets!"<br>
<br>
My questions:<br>
<br>
1. H</font></big><big><font face="Calibri"><big><font
face="Calibri">ow the packetcache, cache, negcache and
nsspeeds are shared/access between threads. My assumption is
that the is ONE packetcache, ONE cache etc. regardless to
number of threads that are set. Further these caches are
shared between threads. With those assumptions I think the
rec_control</font></big> output should report ~16M entries
not 4M for cache-entries.<br>
2. What do you mean by overlapping? Could you explain on some
kind of example.<br>
<br>
<br>
About the recommendations for cache settings => I try
different sets of values for cache and packetcache entries but I
need to know how many instances of each type of cache exists
(connected to number of threads). The is a different story if:<br>
<br>
1. All threads share the same instance of each cache.<br>
2. Each thread has its own instance of each cache.<br>
<br>
If the second answer is true I think it is not optimal to set
many threads. Another question that came into my mind is: if I
set number of threads to 4 and I've 8 CPU sockets visible from
the system point of view - will those 2 threadsÃÂ use all of the
available CPU sockets or each thread will use only on CPU
socket.</font></big><br>
</body>
</html>