From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [79030.229547] motion: page allocation failure: order:6, mode:0xd4 Date: Tue, 5 Jul 2011 09:51:05 -0400 Message-ID: <20110705135105.GD2972@dumpdata.com> References: <1702840863.20110701223604@eikelenboom.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1702840863.20110701223604@eikelenboom.it> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Sander Eikelenboom Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On Fri, Jul 01, 2011 at 10:36:04PM +0200, Sander Eikelenboom wrote: > Hi Konrad, > > In one of my domU's to which I pci passthrough USB cards with a videograbber connected to it, the videocapture bails out after running for quite some time with the stacktrace below. > I guess i'm interpreting the mem-info below wrong, but i fail to see why it can't allocate those 185088 bytes. Did you tweak the vm.max.. some arguments? I remember reading in the V4L Wiki that one the system admin should increasem some kernel parameters to have it work properly? > > Could you shed some light ? it's probably the coherent requirement ? > > -- > Sander > > > > [79030.229547] motion: page allocation failure: order:6, mode:0xd4 > [79030.229572] Pid: 24513, comm: motion Not tainted 3.0.0-rc4-xen-konrad-master-20110621+ #4 > [79030.229581] Call Trace: > [79030.229594] [] warn_alloc_failed+0xf3/0x140 > [79030.229606] [] ? xen_restore_fl_direct_reloc+0x4/0x4 > [79030.229616] [] __alloc_pages_nodemask+0x533/0x700 > [79030.229625] [] ? check_events+0x12/0x20 > [79030.229635] [] __get_free_pages+0x17/0x80 > [79030.229645] [] xen_swiotlb_alloc_coherent+0x56/0x140 > [79030.229656] [] ? usb_alloc_urb+0x1e/0x50 > [79030.229666] [] hcd_buffer_alloc+0x95/0x150 > [79030.229676] [] usb_alloc_coherent+0x26/0x30 > [79030.229686] [] em28xx_init_isoc+0x131/0x3a0 > [79030.229696] [] buffer_prepare+0xbe/0x150 > [79030.229706] [] videobuf_qbuf+0x237/0x5b0 > [79030.229716] [] vidioc_qbuf+0x5c/0x60 > [79030.229726] [] __video_do_ioctl+0x33b0/0x7660 > [79030.229736] [] ? xen_restore_fl_direct_reloc+0x4/0x4 > [79030.229746] [] ? _raw_spin_unlock_irqrestore+0x69/0x80 > [79030.229757] [] ? __wake_up_sync_key+0x5e/0x80 > [79030.229766] [] ? vidioc_dqbuf+0x80/0x80 > [79030.229777] [] ? sock_def_readable+0x3e/0x70 > [79030.229787] [] ? unix_dgram_sendmsg+0x62e/0x6d0 > [79030.229797] [] ? sock_sendmsg+0xfd/0x120 > [79030.229806] [] ? __videobuf_mmap_mapper+0x123/0x200 > [79030.229816] [] video_usercopy+0x17d/0x4c0 > [79030.229825] [] ? v4l2_video_std_construct+0x60/0x60 > [79030.229835] [] video_ioctl2+0x15/0x20 > [79030.229844] [] v4l2_ioctl+0xac/0x170 > [79030.229854] [] do_vfs_ioctl+0xa4/0x5a0 > [79030.229864] [] sys_ioctl+0xa1/0xb0 > [79030.232058] [] system_call_fastpath+0x16/0x1b > [79030.232058] Mem-Info: > [79030.232058] DMA per-cpu: > [79030.232058] CPU 0: hi: 0, btch: 1 usd: 0 > [79030.232058] DMA32 per-cpu: > [79030.232058] CPU 0: hi: 186, btch: 31 usd: 0 > [79030.232058] active_anon:255 inactive_anon:755 isolated_anon:0 > [79030.232058] active_file:27673 inactive_file:28297 isolated_file:0 > [79030.232058] unevictable:0 dirty:7 writeback:0 unstable:0 > [79030.232058] free:2965 slab_reclaimable:40398 slab_unreclaimable:4116 > [79030.232058] mapped:2942 shmem:6 pagetables:946 bounce:0 > [79030.232058] DMA free:2104kB min:84kB low:104kB high:124kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15704kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:13148kB slab_unreclaimable:676kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes > [79030.232058] lowmem_reserve[]: 0 497 497 497 > [79030.232058] DMA32 free:9756kB min:2808kB low:3508kB high:4212kB active_anon:1020kB inactive_anon:3020kB active_file:110692kB inactive_file:113188kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:509040kB mlocked:0kB dirty:28kB writeback:0kB mapped:11768kB shmem:24kB slab_reclaimable:148444kB slab_unreclaimable:15788kB kernel_stack:488kB pagetables:3784kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no > [79030.232058] lowmem_reserve[]: 0 0 0 0 > [79030.232058] DMA: 50*4kB 30*8kB 14*16kB 3*32kB 1*64kB 0*128kB 1*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 2104kB > [79030.232058] DMA32: 405*4kB 91*8kB 65*16kB 63*32kB 32*64kB 16*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 9756kB > [79030.232058] 56318 total pagecache pages > [79030.232058] 342 pages in swap cache > [79030.232058] Swap cache stats: add 15097, delete 14755, find 711259/712031 > [79030.232058] Free swap = 507648kB > [79030.232058] Total swap = 524284kB > [79030.232058] 133104 pages RAM > [79030.232058] 24943 pages reserved > [79030.232058] 55445 pages shared > [79030.232058] 52554 pages non-shared > [79030.232058] unable to allocate 185088 bytes for transfer buffer 4