From: Antoine Martin Subject: Re: virtio net regression Date: Tue, 28 Apr 2009 20:57:30 +0200 Message-ID: <49F7519A.5030808@nagafix.co.uk> References: <49E63DB4.4090107@devloop.org.uk> <49E66FFB.4080504@nagafix.co.uk> <49EB0F7B.3040802@redhat.com> <1240225922.23407.48.camel@blaa> <49EC8F1D.7000109@nagafix.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Avi Kivity , Antoine Martin , "kvm@vger.kernel.org" , Rusty Russell , davem@davemloft.net To: Mark McLoughlin Return-path: Received: from mamba.nagafix.co.uk ([194.145.196.68]:46777 "EHLO mail.nagafix.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751105AbZD1S5d (ORCPT ); Tue, 28 Apr 2009 14:57:33 -0400 In-Reply-To: <49EC8F1D.7000109@nagafix.co.uk> Sender: kvm-owner@vger.kernel.org List-ID: Hi Still getting (some but less) network issues with a 2.6.28.9 host. Found quite a few of these call traces in the 2.6.29.1 guests: Guest has 512MB of memory and was not all that busy (just network traffic), so I don't understand why it would fail to allocate a page... [701453.834571] kjournald: page allocation failure. order:0, mode:0x4020 [701453.834574] Pid: 4806, comm: kjournald Not tainted 2.6.29.1 #4 [701453.834576] Call Trace: [701453.834578] [] __alloc_pages_internal+0x3e1/0x401 [701453.834586] [] __slab_alloc+0x17f/0x4ca [701453.834590] [] tcp_send_ack+0x23/0x105 [701453.834592] [] tcp_send_ack+0x23/0x105 [701453.834595] [] __kmalloc_track_caller+0xac/0xe1 [701453.834598] [] __alloc_skb+0x61/0x11e [701453.834600] [] tcp_send_ack+0x23/0x105 [701453.834603] [] tcp_rcv_established+0x6c7/0x9e6 [701453.834605] [] tcp_v4_do_rcv+0x19e/0x324 [701453.834608] [] tcp_v4_rcv+0x488/0x73b [701453.834611] [] nf_hook_slow+0x62/0xc3 [701453.834615] [] ip_local_deliver_finish+0x0/0x1ee [701453.834617] [] ip_local_deliver_finish+0x11c/0x1ee [701453.834620] [] ip_rcv_finish+0x2cf/0x2e9 [701453.834622] [] ip_rcv+0x233/0x277 [701453.834626] [] virtnet_poll+0x4ca/0x5ab [701453.834628] [] net_rx_action+0x70/0x143 [701453.834631] [] __do_softirq+0x83/0x145 [701453.834634] [] timer_interrupt+0x1a/0x21 [701453.834637] [] call_softirq+0x1c/0x28 [701453.834639] [] do_softirq+0x3c/0x85 [701453.834641] [] irq_exit+0x3f/0x7a [701453.834643] [] do_IRQ+0x12b/0x14f [701453.834646] [] ret_from_intr+0x0/0x29 [701453.834647] [] vp_notify+0x0/0x1c [701453.834653] [] __make_request+0x3e2/0x425 [701453.834656] [] generic_make_request+0x338/0x389 [701453.834660] [] end_swap_bio_write+0x0/0x66 [701453.834664] [] bio_alloc_bioset+0x73/0xff [701453.834666] [] submit_bio+0xbd/0xc4 [701453.834669] [] _spin_lock+0x5/0x7 [701453.834672] [] swap_writepage+0x9b/0xa5 [701453.834675] [] shrink_page_list+0x358/0x5ff [701453.834677] [] shrink_list+0x2b1/0x5d8 [701453.834680] [] determine_dirtyable_memory+0xd/0x1d [701453.834682] [] get_dirty_limits+0x1d/0x24f [701453.834685] [] pvclock_clocksource_read+0x3a/0x70 [701453.834688] [] shrink_zone+0x27d/0x325 [701453.834692] [] resched_task+0x2a/0x75 [701453.834694] [] background_writeout+0x0/0xce [701453.834696] [] try_to_free_pages+0x1fa/0x32d [701453.834699] [] isolate_pages_global+0x0/0x231 [701453.834701] [] __alloc_pages_internal+0x259/0x401 [701453.834705] [] find_or_create_page+0x48/0x88 [701453.834707] [] __getblk+0x117/0x29d [701453.834711] [] journal_get_descriptor_buffer+0x30/0x76 [701453.834713] [] journal_commit_transaction+0x6da/0xdf0 [701453.834716] [] lock_timer_base+0x26/0x4b [701453.834719] [] try_to_del_timer_sync+0x52/0x5b [701453.834721] [] _spin_lock_irqsave+0x24/0x2c [701453.834723] [] kjournald+0xe5/0x214 [701453.834726] [] autoremove_wake_function+0x0/0x2e [701453.834729] [] kjournald+0x0/0x214 [701453.834731] [] kthread+0x47/0x73 [701453.834748] [] child_rip+0xa/0x20 [701453.834751] [] kthread+0x0/0x73 [701453.834753] [] child_rip+0x0/0x20 [701453.834754] Mem-Info: [701453.834755] DMA per-cpu: [701453.834757] CPU 0: hi: 0, btch: 1 usd: 0 [701453.834758] DMA32 per-cpu: [701453.834760] CPU 0: hi: 186, btch: 31 usd: 165 [701453.834763] Active_anon:674 active_file:43401 inactive_anon:11269 [701453.834764] inactive_file:53885 unevictable:0 dirty:5182 writeback:70 unstable:0 [701453.834765] free:749 slab:12132 mapped:9094 pagetables:840 bounce:0 [701453.834768] DMA free:1968kB min:28kB low:32kB high:40kB active_anon:0kB inactive_anon:0kB active_file:1952kB inactive_file:2380kB unevictable:0kB present:5440kB pages_scanned:0 all_unreclaimable? no [701453.834770] lowmem_reserve[]: 0 489 489 489 [701453.834774] DMA32 free:1028kB min:2812kB low:3512kB high:4216kB active_anon:2696kB inactive_anon:45076kB active_file:171652kB inactive_file:213160kB unevictable:0kB present:500896kB pages_scanned:0 all_unreclaimable? no [701453.834777] lowmem_reserve[]: 0 0 0 0 [701453.834779] DMA: 78*4kB 7*8kB 12*16kB 8*32kB 10*64kB 4*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1968kB [701453.834785] DMA32: 1*4kB 0*8kB 0*16kB 0*32kB 10*64kB 3*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1028kB [701453.834791] 99417 total pagecache pages [701453.834793] 2101 pages in swap cache [701453.834794] Swap cache stats: add 8718, delete 6617, find 110037/110217 [701453.834796] Free swap = 1020652kB [701453.834797] Total swap = 1048568kB [701453.836985] 131056 pages RAM [701453.836987] 4801 pages reserved [701453.836988] 98664 pages shared [701453.836990] 34608 pages non-shared Antoine Martin wrote: > Hi, > > The bug report below does indeed match everything I have experienced. > Upon further inspection, 2.6.28.9 is also affected, just less so. > > Unfortunately I have applied the patch: > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=2f181855a0 > And if anything, it made things worse. > > Cheers > Antoine > > > > Mark McLoughlin wrote: >> On Sun, 2009-04-19 at 14:48 +0300, Avi Kivity wrote: >>> Antoine Martin wrote: >>>> -----BEGIN PGP SIGNED MESSAGE----- >>>> Hash: SHA512 >>>> >>>> Wireshark was showing a huge amount of invalid packets (wrong checksum) >>>> - - that was the cause of the slowdown. >>>> Simply rebooting the host into 2.6.28.9 fixed *everything*, regardless >>>> of whether the guests use virtio or ne2k_pci/etc. >>>> The guests are still running 2.6.29.1, but I am not likely to try that >>>> release again on the host anytime soon! Ouch! >>>> >>> Strange, no significant tun changes between .28 and .29. >> Sounds to me like it's this: >> >> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=2f181855a0 >> >> davem said he was queueing up for stable, but it's not in yet: >> >> http://kerneltrap.org/mailarchive/linux-netdev/2009/3/30/5337934 >> >> I'll check that it's in the queue. >> >> Cheers, >> Mark. >> >