ClearFoundation Tracker - ClearOS
View Issue Details
0000373ClearOSapp-firewall - Firewallpublic2011-10-24 12:592012-04-18 19:39
user2 
dsokoloski 
normalfeatureN/A
closedfixed 
 
6.2.0 Beta 26.2.0 Beta 2 
0000373: Increase some network threshold values
As recommended by a friendly partner with 8GB of memory (use smaller values if you have less RAM):

sysctl -w net.ipv4.neigh.default.gc_thresh1=2048
sysctl -w net.ipv4.neigh.default.gc_thresh2=8192
sysctl -w net.ipv4.neigh.default.gc_thresh3=16384

Default values:
sysctl -w net.ipv4.neigh.default.gc_thresh1=128
sysctl -w net.ipv4.neigh.default.gc_thresh2=512
sysctl -w net.ipv4.neigh.default.gc_thresh3=1024

Maybe we should tune these values based on the amount of RAM. Assuming a linear-ish relationship based on the 8GB recommendation, how about:

if (>8 GB)
  gc_thresh1=1024
  gc_thresh2=4096
  gc_thresh3=8192
if (>4 GB)
  gc_thresh1=512
  gc_thresh2=2048
  gc_thresh3=4096
if (>2 GB)
  gc_thresh1=256
  gc_thresh2=2048
  gc_thresh3=4096
else
  gc_thresh1=256
  gc_thresh2=1024
  gc_thresh3=2048
No tags attached.
Issue History
2011-10-24 12:59user2New Issue
2011-10-24 12:59user2Statusnew => assigned
2011-10-24 12:59user2Assigned To => user2
2011-10-24 12:59user2Checkin
2011-10-24 12:59user2Note Added: 0000378
2011-10-24 13:00user2Fixed in Version => 6.1 Beta 2
2011-10-24 13:07user2Statusassigned => resolved
2011-10-24 13:07user2Resolutionopen => fixed
2011-10-24 13:54user2Note Added: 0000382
2011-10-24 13:55user2Description Updated
2011-10-24 13:57user2Assigned Touser2 => dsokoloski
2011-10-24 13:57user2Statusresolved => assigned
2011-10-24 14:03user2Description Updated
2011-10-24 14:03user2Additional Information Updated
2011-10-28 16:48dsokoloskiCheckin
2011-10-28 16:48dsokoloskiNote Added: 0000386
2011-10-28 16:48dsokoloskiStatusassigned => resolved
2012-04-18 19:39user2Statusresolved => closed

Notes
(0000378)
user2   
2011-10-24 12:59   
Source Code Changelog
---------------------------------------------------
- Tuned some sysctl values [tracker 0000373]

File Changes
---------------------------------------------------
Details: http://code.clearfoundation.com/svn/revision.php?repname=ClearOS&rev=2392 [^]
U webconfig/apps/firewall/trunk/deploy/firewall.lua
(0000382)
user2   
2011-10-24 13:54   
Toned down values:
http://code.clearfoundation.com/svn/revision.php?repname=ClearOS&rev=2394 [^]
(0000386)
dsokoloski   
2011-10-28 16:48   
Source Code Changelog
---------------------------------------------------
- Added neighbor table tuning according to RAM size, retabbed source (removed tabs) [fixed tracker 0000373]

File Changes
---------------------------------------------------
Details: http://code.clearfoundation.com/svn/revision.php?repname=ClearOS&rev=2431 [^]
U webconfig/apps/firewall/trunk/deploy/firewall.lua
U webconfig/apps/firewall/trunk/deploy/libfirewall.lua
U webconfig/apps/firewall/trunk/deploy/libmultipath.lua