Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What's the meaning of "dst cache overflow"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Lore
Apprentice
Apprentice


Joined: 16 Feb 2004
Posts: 152
Location: Karlsruhe

PostPosted: Sat Dec 18, 2004 2:50 am    Post subject: What's the meaning of "dst cache overflow" Reply with quote

Hi,

my gateway is running a 2.6.2 vanilla kernel. Since some time it is putting the message "dst cache overflow" in /var/log/messages. What's the meaning of that? Google has'nt given me an answer yet.
Back to top
View user's profile Send private message
David_Escott
l33t
l33t


Joined: 12 Jan 2003
Posts: 952
Location: Boston, MA

PostPosted: Sat Dec 18, 2004 4:08 am    Post subject: Reply with quote

Where is this error coming from? What program? A message in /var/log/messages will look like:

progname[pid] date and time message
Back to top
View user's profile Send private message
Lore
Apprentice
Apprentice


Joined: 16 Feb 2004
Posts: 152
Location: Karlsruhe

PostPosted: Sat Dec 18, 2004 4:10 am    Post subject: Reply with quote

Code:

Dec 18 02:32:33 t08gate kernel: dst cache overflow
Dec 18 02:32:33 t08gate last message repeated 9 times
Dec 18 02:32:33 t08gate kernel: NET: 266 messages suppressed.
Dec 18 02:32:33 t08gate kernel: dst cache overflow
Dec 18 02:32:33 t08gate last message repeated 3 times
Back to top
View user's profile Send private message
David_Escott
l33t
l33t


Joined: 12 Jan 2003
Posts: 952
Location: Boston, MA

PostPosted: Sat Dec 18, 2004 4:41 am    Post subject: Reply with quote

Its in linux/net/ipv4/route.c. The dst is the protocol independent destination cache (routing cache). A garbage collection routine is run to clear out old old destination entries if the cache is getting too big, and this warning is thrown if that garbage collection is unsuccessful (either interrupted or jiffies) and net_ratelimit() is true, although I can't find where that function is defined.

If you want to fiddle with things you might look at the kernel's routing cache but I suspect this warning arises when there are sudden spikes in traffic volume to different destinations.

PS route.c has lots of interesting comments about martians in it rather funny.
Back to top
View user's profile Send private message
Lore
Apprentice
Apprentice


Joined: 16 Feb 2004
Posts: 152
Location: Karlsruhe

PostPosted: Sat Dec 18, 2004 5:20 am    Post subject: Reply with quote

net_ratelimit() is defined in include/linux/net.h and implemented in /net/core/utils.c:

/*
42 * This enforces a rate limit: not more than one kernel message
43 * every 5secs to make a denial-of-service attack impossible.
44 *
45 * All warning printk()s should be guarded by this function.
46 */


http://t08server/extern/statistik/mrtg/ping/172.20.254.254.icmp.html

Here you can see what happend, suddenly packet loss gets to 100%, the gateway doesn't answer any more and the error messages occurs.
Back to top
View user's profile Send private message
Instinct82
n00b
n00b


Joined: 16 Aug 2003
Posts: 42
Location: Trier, Germany

PostPosted: Fri Feb 18, 2005 4:07 pm    Post subject: Reply with quote

any ideas howto prevent this error?
_________________
my gentoo boxes
Desktop:
AMD Athlon XP 2000+
512MB DDR
GeForce3 Ti200
Samsung SyncMaster 193T
Laptop:
Asus M6800N 1,5GHz
768MB DDR
Radeon 9600 Mobility
Router:
Intel Pentium 90, 128MB RAM, True Headless
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Fri Feb 18, 2005 4:10 pm    Post subject: Re: What's the meaning of "dst cache overflow" Reply with quote

Lore wrote:
Hi,

my gateway is running a 2.6.2 vanilla kernel. Since some time it is putting the message "dst cache overflow" in /var/log/messages. What's the meaning of that? Google has'nt given me an answer yet.


I don´t know but I know for sure that you should upgrade your kernel ASAP and come back if the problem persists. 8O
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum