buakaw@buakaw.homelinux.net a écrit : > > > grep . /proc/sys/net/ipv4/route/* > > /proc/sys/net/ipv4/route/error_burst:5000 > /proc/sys/net/ipv4/route/error_cost:1000 > grep: /proc/sys/net/ipv4/route/flush: Invalid argument > /proc/sys/net/ipv4/route/gc_elasticity:8 > /proc/sys/net/ipv4/route/gc_interval:60 > /proc/sys/net/ipv4/route/gc_min_interval:0 > /proc/sys/net/ipv4/route/gc_min_interval_ms:500 > /proc/sys/net/ipv4/route/gc_thresh:4096 > /proc/sys/net/ipv4/route/gc_timeout:300 > /proc/sys/net/ipv4/route/max_delay:10 > /proc/sys/net/ipv4/route/max_size:65536 > /proc/sys/net/ipv4/route/min_adv_mss:256 > /proc/sys/net/ipv4/route/min_delay:2 > /proc/sys/net/ipv4/route/min_pmtu:552 > /proc/sys/net/ipv4/route/mtu_expires:600 > /proc/sys/net/ipv4/route/redirect_load:20 > /proc/sys/net/ipv4/route/redirect_number:9 > /proc/sys/net/ipv4/route/redirect_silence:20480 > /proc/sys/net/ipv4/route/secret_interval:600 > > > cat /proc/net/stat/rt_cache > > entries in_hit in_slow_tot in_no_route in_brd in_martian_dst > in_martian_src out_hit out_slow_tot out_slow_mc gc_total gc_ignored > gc_goal_miss > gc_dst_overflow in_hlist_search out_hlist_search > 000000b9 02e05549 01fa47b9 00000000 00000000 00016e03 00000022 00251b22 > 00083e65 0000fe7e 00000008 00f15fc6 00f064e8 0000ebe8 0000eb57 08703a77 > 000087cf > 000000b9 00000000 00000000 00000000 00000000 00000000 00000000 00000000 > 0001105a 000027ed 00000002 0000018f 00000171 0000000e 00000009 00000000 > 00003217 OK, route cache settings are hard to tune. Try these settings : echo 1 >/proc/sys/net/ipv4/route/gc_interval echo 2 >/proc/sys/net/ipv4/route/gc_elasticity echo 150 >/proc/sys/net/ipv4/route/gc_timeout echo 8192 >/proc/sys/net/ipv4/route/gc_thresh You might want to boot adding this "rhash_entries=8192" in your kernel boot string (append="rhash_entries=8192" in lilo.conf) (If you change rhash_entries, change also /proc/sys/net/ipv4/route/gc_thresh accordingly) You might also try this patch. Eric Dumazet