Networking Forums

Networking Forums > Computer Networking > Linux Networking > ARP cache size increase: how to find if this is necessary?

Reply
Thread Tools Display Modes

ARP cache size increase: how to find if this is necessary?

 
 
Rahul
Guest
Posts: n/a

 
      05-24-2010, 09:52 PM
I have seen a few reccomendations which reccomend increasing the ARP cache
size for networks where more than 512 hosts are on the same IP subnet. e.g.
here:
https://wiki.fysik.dtu.dk/niflheim/S...rnel-arp-cache

But is there a way of knowing from logs etc. if this fix is indeed needed
for my network? I have two different subnets 192.168 and 10.0 each with
approximately 300 servers on them (each server has a low and high speed eth
card and hence the twin subnets)

--
Rahul
 
Reply With Quote
 
 
 
 
Rahul
Guest
Posts: n/a

 
      05-27-2010, 10:23 PM
Raja Kommula <(E-Mail Removed)> wrote in news:7b1933d8-fecf-4fa3-b984-
(E-Mail Removed):

> ARP entry usually expires in 30 mins. You can use simple ping to
> findout if the entry is expiring sooner than the default timeout. When
> ARP entry is missing, ping response takes longer than usual time. So
> if you ping the server, say every 10 mins, and if you get the response
> quickly then you are same. Otherwise you probably have to increase the
> cache size.
> --Raja
>
>


Thanks! I tried that but it is hard to say. All my responses are around 11-
18 microsecs roundtrip. But the varaiability in switch latencies etc. make
it hard to know if this is an ARP cache issue or not. Are there any other
ways of finding out?

--
Rahul
 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      05-28-2010, 07:55 PM
Hello,

Rahul a écrit :
> Raja Kommula <(E-Mail Removed)> wrote in news:7b1933d8-fecf-4fa3-b984-
> (E-Mail Removed):
>
>> ARP entry usually expires in 30 mins. You can use simple ping to
>> findout if the entry is expiring sooner than the default timeout. When
>> ARP entry is missing, ping response takes longer than usual time. So
>> if you ping the server, say every 10 mins, and if you get the response
>> quickly then you are same. Otherwise you probably have to increase the
>> cache size.

>
> Thanks! I tried that but it is hard to say. All my responses are around 11-
> 18 microsecs roundtrip. But the varaiability in switch latencies etc. make
> it hard to know if this is an ARP cache issue or not. Are there any other
> ways of finding out?


Of course : just check directly the contents of the ARP cache.
 
Reply With Quote
 
Rahul
Guest
Posts: n/a

 
      06-03-2010, 03:36 AM
Pascal Hambourg <boite-a-(E-Mail Removed)> wrote in news:htp72q$25cd$2
@saria.nerim.net:

> Of course : just check directly the contents of the ARP cache.
>


Thanks Pascal! I did dump it with the arp command. But how do I correlate
this with if or not I need to increase the size of the cache? I find the
lenght of the output variable depending on which machine I execute this
command on.

--
Rahul
 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      06-03-2010, 09:50 AM
Rahul a écrit :
>
>> Of course : just check directly the contents of the ARP cache.

>
> Thanks Pascal! I did dump it with the arp command.


You can do it with the command "ip neigh" too, or by reading directly in
/proc/net/arp.

> But how do I correlate
> this with if or not I need to increase the size of the cache? I find the
> lenght of the output variable depending on which machine I execute this
> command on.


Compare the output length with the cache size.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CacheHashTableSize to increase size of DNS resolver cache Ratchel Myers Windows Networking 1 04-29-2010 09:56 PM
Find MTU size on a Windows 2003 Service Pack 2 Sabo, Eric Windows Networking 1 10-04-2007 11:27 AM
DNS cache tshad Windows Networking 3 01-18-2007 10:59 PM
How to set Max UDP Receive Buffer Size and Max UDP Transmit Buffer Size under Windows 2000 and Windows 2003 ? msnews.microsoft.com Windows Networking 0 09-14-2005 07:20 PM
ping size and mtu size u.dahms Linux Networking 4 10-01-2003 12:35 PM



1 2 3 4 5 6 7 8 9 10 11