This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Out of memory when rendering

Tags: None
(comma "," separated)
Chamo
Registered Member
Posts
27
Karma
0

Out of memory when rendering

Fri May 14, 2010 1:16 pm
Hi,

when rendering my HD material (AVCHD 1920x1080 50i) to xvid (720x405 2000k 2pass), the rendering process is killed by oom-killer after about two hours. It's a 20 minutes video, the resulting avi file grows to about 1,3 GB (first pass) and shows the first 16 minutes. I inreased my swap space to rather silly values just to try, but the problem remains. I am not really sure if this is a kdenlive bug or another kind of problem in my setup, so I'm posting it here first. Please have a look at the logfile (/var/log/messages) and tell me if I should report this via mantis or what I'm doing wrong here:

May 14 13:59:51 tenor kernel: knotify4 invoked oom-killer: gfp_mask=0x201da, order=0, oomkilladj=0
May 14 13:59:51 tenor kernel: Pid: 4223, comm: knotify4 Tainted: P 2.6.31-gentoo-r6Hg20091216 #3
May 14 13:59:51 tenor kernel: Call Trace:
May 14 13:59:51 tenor kernel: [] ? oom_kill_process+0x55/0x1ce
May 14 13:59:51 tenor kernel: [] ? getnstimeofday+0x55/0xaf
May 14 13:59:51 tenor kernel: [] ? common_interrupt+0xe/0x13
May 14 13:59:51 tenor kernel: [] ? __out_of_memory+0x3a/0x137
May 14 13:59:51 tenor kernel: [] ? out_of_memory+0x5b/0x7c
May 14 13:59:51 tenor kernel: [] ? __alloc_pages_nodemask+0x43a/0x517
May 14 13:59:51 tenor kernel: [] ? __do_page_cache_readahead+0xa4/0x1a9
May 14 13:59:52 tenor kernel: [] ? ra_submit+0x1c/0x20
May 14 13:59:52 tenor kernel: [] ? filemap_fault+0x171/0x2e0
May 14 13:59:52 tenor kernel: [] ? __do_fault+0x56/0x3bc
May 14 13:59:52 tenor kernel: [] ? handle_mm_fault+0x2cc/0x559
May 14 13:59:52 tenor kernel: [] ? do_page_fault+0x24d/0x269
May 14 13:59:52 tenor kernel: [] ? page_fault+0x1f/0x30
May 14 13:59:52 tenor kernel: Mem-Info:
May 14 13:59:52 tenor kernel: DMA per-cpu:
May 14 13:59:52 tenor kernel: CPU 0: hi: 0, btch: 1 usd: 0
May 14 13:59:52 tenor kernel: DMA32 per-cpu:
May 14 13:59:52 tenor kernel: CPU 0: hi: 186, btch: 31 usd: 158
May 14 13:59:52 tenor kernel: Active_anon:267310 active_file:75 inactive_anon:89906
May 14 13:59:52 tenor kernel: inactive_file:45 unevictable:1 dirty:0 writeback:0 unstable:0
May 14 13:59:52 tenor kernel: free:2731 slab:4072 mapped:89 pagetables:13126 bounce:0
May 14 13:59:52 tenor kernel: DMA free:6040kB min:48kB low:60kB high:72kB active_anon:4912kB inactive_anon:4764kB active_file:56kB inactive_file:104kB unevictable:0kB present:15304kB pages_scanned:1736 all_unreclaimable? no
May 14 13:59:52 tenor kernel: lowmem_reserve[]: 0 1498 1498 1498
May 14 13:59:52 tenor kernel: DMA32 free:4884kB min:4924kB low:6152kB high:7384kB active_anon:1064328kB inactive_anon:354860kB active_file:244kB inactive_file:76kB unevictable:4kB present:1534124kB pages_scanned:1799 all_unreclaimable? no
May 14 13:59:52 tenor kernel: lowmem_reserve[]: 0 0 0 0
May 14 13:59:52 tenor kernel: DMA: 0*4kB 3*8kB 6*16kB 3*32kB 5*64kB 9*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 1*4096kB = 6040kB
May 14 13:59:52 tenor kernel: DMA32: 1*4kB 12*8kB 11*16kB 6*32kB 3*64kB 1*128kB 2*256kB 1*512kB 1*1024kB 1*2048kB 0*4096kB = 4884kB
May 14 13:59:52 tenor kernel: 1173 total pagecache pages
May 14 13:59:52 tenor kernel: 1052 pages in swap cache
May 14 13:59:52 tenor kernel: Swap cache stats: add 4698779, delete 4697727, find 107773/153060
May 14 13:59:52 tenor kernel: Free swap = 0kB
May 14 13:59:52 tenor kernel: Total swap = 17039808kB
May 14 13:59:52 tenor kernel: 392928 pages RAM
May 14 13:59:52 tenor kernel: 7686 pages reserved
May 14 13:59:52 tenor kernel: 1814 pages shared
May 14 13:59:52 tenor kernel: 381372 pages non-shared
May 14 13:59:52 tenor kernel: Out of memory: kill process 4352 (kdenlive_render) score 13973640 or a child
May 14 13:59:52 tenor kernel: Killed process 4354 (melt)
May 14 13:59:52 tenor kernel: melt: page allocation failure. order:0, mode:0x201da
May 14 13:59:52 tenor kernel: Pid: 4354, comm: melt Tainted: P 2.6.31-gentoo-r6Hg20091216 #3
May 14 13:59:52 tenor kernel: Call Trace:
May 14 13:59:52 tenor kernel: [] ? __alloc_pages_nodemask+0x4d0/0x517
May 14 13:59:52 tenor kernel: [] ? __do_page_cache_readahead+0xa4/0x1a9
May 14 13:59:52 tenor kernel: [] ? wake_bit_function+0x0/0x23
May 14 13:59:52 tenor kernel: [] ? ra_submit+0x1c/0x20
May 14 13:59:52 tenor kernel: [] ? filemap_fault+0x11c/0x2e0
May 14 13:59:52 tenor kernel: [] ? __do_fault+0x56/0x3bc
May 14 13:59:52 tenor kernel: [] ? handle_mm_fault+0x2cc/0x559
May 14 13:59:52 tenor kernel: [] ? finish_task_switch+0x30/0xa1
May 14 13:59:52 tenor kernel: [] ? do_page_fault+0x24d/0x269
May 14 13:59:52 tenor kernel: [] ? page_fault+0x1f/0x30
May 14 13:59:52 tenor kernel: Mem-Info:
May 14 13:59:52 tenor kernel: DMA per-cpu:
May 14 13:59:52 tenor kernel: CPU 0: hi: 0, btch: 1 usd: 0
May 14 13:59:52 tenor kernel: DMA32 per-cpu:
May 14 13:59:52 tenor kernel: CPU 0: hi: 186, btch: 31 usd: 178
May 14 13:59:52 tenor kernel: Active_anon:267310 active_file:68 inactive_anon:89906
May 14 13:59:52 tenor kernel: inactive_file:79 unevictable:1 dirty:0 writeback:1 unstable:0
May 14 13:59:52 tenor kernel: free:2735 slab:4065 mapped:82 pagetables:13126 bounce:0
May 14 13:59:52 tenor kernel: DMA free:6040kB min:48kB low:60kB high:72kB active_anon:4912kB inactive_anon:4764kB active_file:16kB inactive_file:24kB unevictable:0kB present:15304kB pages_scanned:66 all_unreclaimable? no
May 14 13:59:52 tenor kernel: lowmem_reserve[]: 0 1498 1498 1498
May 14 13:59:52 tenor kernel: DMA32 free:4900kB min:4924kB low:6152kB high:7384kB active_anon:1064328kB inactive_anon:354860kB active_file:256kB inactive_file:292kB unevictable:4kB present:1534124kB pages_scanned:849 all_unreclaimable? no
May 14 13:59:52 tenor kernel: lowmem_reserve[]: 0 0 0 0
May 14 13:59:52 tenor kernel: DMA: 0*4kB 3*8kB 6*16kB 3*32kB 5*64kB 9*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 1*4096kB = 6040kB
May 14 13:59:52 tenor kernel: DMA32: 5*4kB 12*8kB 11*16kB 6*32kB 3*64kB 1*128kB 2*256kB 1*512kB 1*1024kB 1*2048kB 0*4096kB = 4900kB
May 14 13:59:52 tenor kernel: 1200 total pagecache pages
May 14 13:59:52 tenor kernel: 1052 pages in swap cache
May 14 13:59:52 tenor kernel: Swap cache stats: add 4698779, delete 4697727, find 107773/153060
May 14 13:59:52 tenor kernel: Free swap = 0kB
May 14 13:59:52 tenor kernel: Total swap = 17039808kB
May 14 13:59:52 tenor kernel: 392928 pages RAM
May 14 13:59:52 tenor kernel: 7686 pages reserved
May 14 13:59:52 tenor kernel: 1814 pages shared
May 14 13:59:52 tenor kernel: 381356 pages non-shared

Thank you!

Chamo
ttill
Registered Member
Posts
372
Karma
0

Re: Out of memory when rendering

Fri May 14, 2010 8:35 pm
Might be related to a memleak fixed in mlt 0.5.4:
http://www.kdenlive.org/mantis/view.php?id=1197
Which version of mlt do you use?
Chamo
Registered Member
Posts
27
Karma
0

Re: Out of memory when rendering

Fri May 14, 2010 9:39 pm
Yes, looks like you're right! I had mlt 0.5.0, and after the upgrade to 0.5.4 the problem seems to be gone. :-)


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], rblackwell