- 论坛徽章:
- 0
|
本帖最后由 wzhuzhu 于 2010-07-21 15:00 编辑
回复 7# platinum
我系统就只跑了网桥。别的任何程序都没有跑。而且内存是1G,所以我认为不是内存不够造成的。
问题可能出现在内核和网卡的驱动上。
我网卡驱动开启NAPI出现的几率会高一下,而且开启NAPI后,使用iperf或者netperf进行测试的时候。使用ifconfig命令在RX部分会出现dropped的数据统计。
我去除NAPI后,进行压力测试不会出现dropped的统计。
下面是开启NAPI时出现的错误:- Jul 13 13:07:57 testpc kernel: NETDEV WATCHDOG: eth1 (e1000e): transmit queue 0 timed out
- Jul 13 13:07:57 testpc kernel: Pid: 0, comm: swapper Not tainted 2.6.32 #1
- Jul 13 13:07:57 testpc kernel: Call Trace:
- Jul 13 13:07:57 testpc kernel: [<c01291f1>] warn_slowpath_common+0x60/0x90
- Jul 13 13:07:57 testpc kernel: [<c0129255>] warn_slowpath_fmt+0x24/0x27
- Jul 13 13:07:57 testpc kernel: [<c047cbec>] dev_watchdog+0x113/0x1a2
- Jul 13 13:07:57 testpc kernel: [<c049d130>] ? destroy_conntrack+0xb4/0xb7
- Jul 13 13:07:57 testpc kernel: [<c0499864>] ? nf_conntrack_destroy+0x13/0x15
- Jul 13 13:07:57 testpc kernel: [<c049d6d5>] ? death_by_timeout+0xe8/0xf0
- Jul 13 13:07:57 testpc kernel: [<c047cad9>] ? dev_watchdog+0x0/0x1a2
- Jul 13 13:07:57 testpc kernel: [<c0130cbb>] run_timer_softirq+0x119/0x16c
- Jul 13 13:07:57 testpc kernel: [<c012d4e0>] __do_softirq+0x77/0xe5
- Jul 13 13:07:57 testpc kernel: [<c012d574>] do_softirq+0x26/0x2b
- Jul 13 13:07:57 testpc kernel: [<c012d648>] irq_exit+0x29/0x2b
- Jul 13 13:07:57 testpc kernel: [<c0113233>] smp_apic_timer_interrupt+0x6f/0x7d
- Jul 13 13:07:57 testpc kernel: [<c0103576>] apic_timer_interrupt+0x2a/0x30
- Jul 13 13:07:57 testpc kernel: [<c0107f68>] ? mwait_idle+0x4f/0x55
- Jul 13 13:07:57 testpc kernel: [<c0101db5>] cpu_idle+0x3a/0x51
- Jul 13 13:07:57 testpc kernel: [<c052cbb3>] rest_init+0x53/0x55
- Jul 13 13:07:57 testpc kernel: [<c0f1c85d>] start_kernel+0x2af/0x2b4
- Jul 13 13:07:57 testpc kernel: [<c0f1c091>] i386_start_kernel+0x91/0x96
- Jul 13 13:07:57 testpc kernel: ---[ end trace 2fe0506412f35396 ]---
- Jul 13 13:07:57 testpc kernel: e1000e 0000:02:00.0: eth1: Reset adapter
- Jul 13 13:07:57 testpc kernel: e1000e 0000:02:00.0: eth1: Reset adapter
复制代码 有时候还是这样的错误:- Jul 6 11:58:25 testpc last message repeated 19 times
- Jul 6 23:47:19 testpc kernel: swapper: page allocation failure. order:3, mode:0x20
- Jul 6 23:47:19 testpc kernel: Pid: 0, comm: swapper Not tainted 2.6.32 #4
- Jul 6 23:47:19 testpc kernel: Call Trace:
- Jul 6 23:47:19 testpc kernel: [<c05a58d5>] ? printk+0xf/0x11
- Jul 6 23:47:19 testpc kernel: [<c017f930>] __alloc_pages_nodemask+0x42b/0x48c
- Jul 6 23:47:19 testpc kernel: [<c019bc2b>] cache_alloc_refill+0x250/0x42b
- Jul 6 23:47:19 testpc kernel: [<c019be86>] __kmalloc+0x80/0xe6
- Jul 6 23:47:19 testpc kernel: [<c04c47a3>] pskb_expand_head+0x4f/0x155
- Jul 6 23:47:19 testpc kernel: [<c04c502f>] __pskb_pull_tail+0x49/0x205
- Jul 6 23:47:19 testpc kernel: [<c05a793a>] ? _spin_unlock_bh+0xd/0xf
- Jul 6 23:47:19 testpc kernel: [<c055165b>] ? ipt_ulog_packet+0x310/0x318
- Jul 6 23:47:19 testpc kernel: [<fa1501d1>] match+0x18e/0x5e9 [xt_layer7]
- Jul 6 23:47:19 testpc kernel: [<c05a792b>] ? _read_unlock_bh+0xe/0x10
- Jul 6 23:47:19 testpc kernel: [<c054ebad>] ipt_do_table+0x259/0x4dc
- Jul 6 23:47:19 testpc kernel: [<c04caed6>] ? dev_queue_xmit+0x374/0x3a8
- Jul 6 23:47:19 testpc kernel: [<c054ee8c>] ipt_hook+0x18/0x1d
- Jul 6 23:47:19 testpc kernel: [<c04f5ddf>] nf_iterate+0x2f/0x62
- Jul 6 23:47:19 testpc kernel: [<c056fe54>] ? br_nf_forward_finish+0x0/0xba
- Jul 6 23:47:19 testpc kernel: [<c04f5ef3>] nf_hook_slow+0x3b/0x91
- Jul 6 23:47:19 testpc kernel: [<c056fe54>] ? br_nf_forward_finish+0x0/0xba
- Jul 6 23:47:19 testpc kernel: [<c057013d>] br_nf_forward_ip+0x22f/0x272
- Jul 6 23:47:19 testpc kernel: [<c056fe54>] ? br_nf_forward_finish+0x0/0xba
- Jul 6 23:47:19 testpc kernel: [<c04f5ddf>] nf_iterate+0x2f/0x62
- Jul 6 23:47:19 testpc kernel: [<c056c044>] ? br_forward_finish+0x0/0x47
- Jul 6 23:47:19 testpc kernel: [<c04f5ef3>] nf_hook_slow+0x3b/0x91
- Jul 6 23:47:19 testpc kernel: [<c056c044>] ? br_forward_finish+0x0/0x47
- Jul 6 23:47:19 testpc kernel: [<c056c0ff>] __br_forward+0x74/0x86
- Jul 6 23:47:19 testpc kernel: [<c056c044>] ? br_forward_finish+0x0/0x47
- Jul 6 23:47:19 testpc kernel: [<c056c134>] br_forward+0x23/0x2e
- Jul 6 23:47:19 testpc kernel: [<c056cb25>] br_handle_frame_finish+0xf1/0x110
- Jul 6 23:47:19 testpc kernel: [<c05706ee>] br_nf_pre_routing_finish+0x275/0x27f
- Jul 6 23:47:19 testpc kernel: [<c04f5ddf>] ? nf_iterate+0x2f/0x62
- Jul 6 23:47:19 testpc kernel: [<c04f5ef3>] ? nf_hook_slow+0x3b/0x91
- Jul 6 23:47:19 testpc kernel: [<c0570479>] ? br_nf_pre_routing_finish+0x0/0x27f
- Jul 6 23:47:19 testpc kernel: [<c0570d03>] br_nf_pre_routing+0x60b/0x625
- Jul 6 23:47:19 testpc kernel: [<c04f5ddf>] nf_iterate+0x2f/0x62
- Jul 6 23:47:19 testpc kernel: [<c056ca34>] ? br_handle_frame_finish+0x0/0x110
- Jul 6 23:47:19 testpc kernel: [<c04f5ef3>] nf_hook_slow+0x3b/0x91
- Jul 6 23:47:19 testpc kernel: [<c056ca34>] ? br_handle_frame_finish+0x0/0x110
- Jul 6 23:47:19 testpc kernel: [<c056ccc0>] br_handle_frame+0x17c/0x1a0
- Jul 6 23:47:19 testpc kernel: [<c056ca34>] ? br_handle_frame_finish+0x0/0x110
- Jul 6 23:47:19 testpc kernel: [<c04c9e76>] netif_receive_skb+0x30f/0x409
- Jul 6 23:47:19 testpc kernel: [<c04ca073>] napi_skb_finish+0x1e/0x33
- Jul 6 23:47:19 testpc kernel: [<c04ca3c8>] napi_gro_receive+0x20/0x24
- Jul 6 23:47:19 testpc kernel: [<f82cfc93>] e1000_receive_skb+0x4e/0x56 [e1000e]
- Jul 6 23:47:19 testpc kernel: [<f82cfea7>] e1000_clean_rx_irq+0x20c/0x2ab [e1000e]
- Jul 6 23:47:19 testpc kernel: [<f82d1217>] e1000_clean+0x62/0x1f5 [e1000e]
- Jul 6 23:47:19 testpc kernel: [<c04ca47c>] net_rx_action+0x5d/0x137
- Jul 6 23:47:19 testpc kernel: [<c0131e3c>] __do_softirq+0xa7/0x144
- Jul 6 23:47:19 testpc kernel: [<c0131eff>] do_softirq+0x26/0x2b
- Jul 6 23:47:19 testpc kernel: [<c0131fd3>] irq_exit+0x29/0x2b
- Jul 6 23:47:19 testpc kernel: [<c0103f27>] do_IRQ+0x80/0x96
- Jul 6 23:47:19 testpc kernel: [<c0103129>] common_interrupt+0x29/0x30
- Jul 6 23:47:19 testpc kernel: [<c0107d77>] ? mwait_idle+0x7d/0x83
- Jul 6 23:47:19 testpc kernel: [<c0101c4e>] cpu_idle+0x3a/0x50
- Jul 6 23:47:19 testpc kernel: [<c058a6fb>] rest_init+0x53/0x55
- Jul 6 23:47:19 testpc kernel: [<c0fa87ec>] start_kernel+0x2a3/0x2a8
- Jul 6 23:47:19 testpc kernel: [<c0fa8091>] i386_start_kernel+0x91/0x96
- Jul 6 23:47:19 testpc kernel: Mem-Info:
- Jul 6 23:47:19 testpc kernel: DMA per-cpu:
- Jul 6 23:47:19 testpc kernel: CPU 0: hi: 0, btch: 1 usd: 0
- Jul 6 23:47:19 testpc kernel: CPU 1: hi: 0, btch: 1 usd: 0
- Jul 6 23:47:19 testpc kernel: CPU 2: hi: 0, btch: 1 usd: 0
- Jul 6 23:47:19 testpc kernel: CPU 3: hi: 0, btch: 1 usd: 0
- Jul 6 23:47:19 testpc kernel: Normal per-cpu:
- Jul 6 23:47:19 testpc kernel: CPU 0: hi: 186, btch: 31 usd: 175
- Jul 6 23:47:19 testpc kernel: CPU 1: hi: 186, btch: 31 usd: 149
- Jul 6 23:47:19 testpc kernel: CPU 2: hi: 186, btch: 31 usd: 105
- Jul 6 23:47:19 testpc kernel: CPU 3: hi: 186, btch: 31 usd: 160
- Jul 6 23:47:19 testpc kernel: HighMem per-cpu:
- Jul 6 23:47:19 testpc kernel: CPU 0: hi: 42, btch: 7 usd: 41
- Jul 6 23:47:19 testpc kernel: CPU 1: hi: 42, btch: 7 usd: 41
- Jul 6 23:47:19 testpc kernel: CPU 2: hi: 42, btch: 7 usd: 39
- Jul 6 23:47:19 testpc kernel: CPU 3: hi: 42, btch: 7 usd: 38
- Jul 6 23:47:19 testpc kernel: active_anon:10886 inactive_anon:50663 isolated_anon:0
- Jul 6 23:47:19 testpc kernel: active_file:69083 inactive_file:95311 isolated_file:0
- Jul 6 23:47:19 testpc kernel: unevictable:0 dirty:523 writeback:0 unstable:0
- Jul 6 23:47:19 testpc kernel: free:2585 slab_reclaimable:5273 slab_unreclaimable:11083
- Jul 6 23:47:19 testpc kernel: mapped:5212 shmem:163 pagetables:503 bounce:0
- Jul 6 23:47:19 testpc kernel: DMA free:952kB min:64kB low:80kB high:96kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15868kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
- Jul 6 23:47:19 testpc kernel: lowmem_reserve[]: 0 867 991 991
- Jul 6 23:47:19 testpc kernel: Normal free:9132kB min:3732kB low:4664kB high:5596kB active_anon:25508kB inactive_anon:175144kB active_file:245752kB inactive_file:344708kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:887976kB mlocked:0kB dirty:2068kB writeback:0kB mapats: add 1027, delete 999, find 872/915
- Jul 6 23:47:19 testpc kernel: Free swap = 1048212kB
- Jul 6 23:47:19 testpc kernel: Total swap = 1048568kB
- Jul 6 23:47:19 testpc kernel: 260032 pages RAM
- Jul 6 23:47:19 testpc kernel: 32194 pages HighMem
- Jul 6 23:47:19 testpc kernel: 7573 pages reserved
- Jul 6 23:47:19 testpc kernel: 127636 pages shared
- Jul 6 23:47:19 testpc kernel: 155938 pages non-shared
- Jul 6 23:47:19 testpc kernel: layer7: failed to linearize packet, bailing.
复制代码 |
|