OpenVZ Forum


Home » International » Russian » kernel: dst cache overflow
kernel: dst cache overflow [message #1198] Fri, 03 February 2006 10:01 Go to next message
Rommer is currently offline  Rommer
Messages: 25
Registered: January 2006
Location: Belarus
Junior Member

На одном из серверов под OpenVZ сегодня легла сеть с вот таким содержимым /var/log/messages:

Feb 3 02:01:23 xxx kernel: dst cache overflow
Feb 3 02:01:28 xxx kernel: printk: 157 messages suppressed.
Feb 3 02:01:28 xxx kernel: dst cache overflow
Feb 3 02:01:33 xxx kernel: printk: 146 messages suppressed.
Feb 3 02:01:33 xxx kernel: dst cache overflow
Feb 3 02:01:38 xxx kernel: printk: 133 messages suppressed.
...

ядро 2.6.8-022stab064.1-smp

В гугле откопал, что это баг ядра и его исправили в vanilla 2.6.11:
http://linux.derkeiler.com/Mailing-Lists/Fedora/2005-07/1175 .html
И патч из одной строки тут:
http://lists.linuxcoding.com/rhl/2005/msg19362.html

Если это действительно он, исправьте пожалуйста.
Re: kernel: dst cache overflow [message #1214 is a reply to message #1198] Fri, 03 February 2006 13:25 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

этот баг по ссылке у нас пофикшен уже давно...
сеть легла насовсем и не встала даже через некоторое время? или Вы не ждали? Это воспроизводиться или случилось само собой?


http://static.openvz.org/userbars/openvz-developer.png
Re: kernel: dst cache overflow [message #1220 is a reply to message #1214] Fri, 03 February 2006 13:50 Go to previous messageGo to next message
Rommer is currently offline  Rommer
Messages: 25
Registered: January 2006
Location: Belarus
Junior Member

Сеть легла в час ночи и лежала около часа. Ждать надоело - ребутнули.
Случилось само собой. В это время на сервере никто ничего не делал.
Re: kernel: dst cache overflow [message #1222 is a reply to message #1220] Fri, 03 February 2006 13:55 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Проверьте пожайлуста, что у Вас подобные настройки в /etc/sysctl.conf и что они действительно загружены в ядро:
net.ipv4.neigh.default.gc_thresh2 = 2048
net.ipv4.neigh.default.gc_thresh3 = 4096
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0


http://static.openvz.org/userbars/openvz-developer.png
Re: kernel: dst cache overflow [message #1226 is a reply to message #1222] Fri, 03 February 2006 14:23 Go to previous messageGo to next message
Rommer is currently offline  Rommer
Messages: 25
Registered: January 2006
Location: Belarus
Junior Member

# cat /proc/sys/net/ipv4/neigh/default/gc_thresh2
512
# cat /proc/sys/net/ipv4/neigh/default/gc_thresh3
1024
# cat /proc/sys/net/ipv4/conf/default/send_redirects
1
# cat /proc/sys/net/ipv4/conf/all/send_redirects
0
Стоит именить gc_thresh2/gc_thresh3 на 2048/4096?
Re: kernel: dst cache overflow [message #1229 is a reply to message #1226] Fri, 03 February 2006 15:10 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

can you also please dump
cat /proc/sys/net/ipv4/route/max_size
cat /proc/sys/net/ipv4/route/gc_min_interval
?


http://static.openvz.org/userbars/openvz-developer.png
Re: kernel: dst cache overflow [message #1231 is a reply to message #1229] Fri, 03 February 2006 15:16 Go to previous messageGo to next message
Rommer is currently offline  Rommer
Messages: 25
Registered: January 2006
Location: Belarus
Junior Member

# cat /proc/sys/net/ipv4/route/max_size
262144
# cat /proc/sys/net/ipv4/route/gc_min_interval
0
Re: kernel: dst cache overflow [message #1232 is a reply to message #1231] Fri, 03 February 2006 15:19 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

how much RAM do you have?
your max_size parameter looks not big... My test machine has it 10 times bigger value. I would recommend you to increase it x5 times.


http://static.openvz.org/userbars/openvz-developer.png
Re: kernel: dst cache overflow [message #1236 is a reply to message #1232] Fri, 03 February 2006 15:49 Go to previous message
Rommer is currently offline  Rommer
Messages: 25
Registered: January 2006
Location: Belarus
Junior Member

Hm, strange
This server has 2Gb RAM
# cat /proc/meminfo
MemTotal: 2071116 kB
MemFree: 9808 kB
Buffers: 58504 kB
Cached: 899548 kB
SwapCached: 2244 kB
Active: 1657708 kB
Inactive: 237588 kB
HighTotal: 1244032 kB
HighFree: 1472 kB
LowTotal: 827084 kB
LowFree: 8336 kB
SwapTotal: 4016168 kB
SwapFree: 4012384 kB
Dirty: 5216 kB
Writeback: 0 kB
Mapped: 1046596 kB
Slab: 139204 kB
Committed_AS: 3024632 kB
PageTables: 9484 kB
VmallocTotal: 172024 kB
VmallocUsed: 7972 kB
VmallocChunk: 163972 kB

Another server with 2Gb RAM and vanilla 2.6.12.1 kernel has the same values:
# uname -srvmpio
Linux 2.6.12.1 #1 SMP Wed Jun 29 13:26:13 EEST 2005 i686 i686 i386 GNU/Linux
# cat /proc/sys/net/ipv4/neigh/default/gc_thresh2
512
# cat /proc/sys/net/ipv4/neigh/default/gc_thresh3
1024
# cat /proc/sys/net/ipv4/route/max_size
262144

I'll try to increase it in 5 times
Previous Topic: kernel: Assertion failure in __journal_drop_transaction()
Next Topic: drbd - heartbeat
Goto Forum:
  


Current Time: Tue Jul 23 19:17:05 GMT 2024

Total time taken to generate the page: 0.04226 seconds