Reply to topic

Amarok 2.8.0 Memory Issues

User avatar cydtazz
Registered Member
Posts
10
Karma
0
OS

Amarok 2.8.0 Memory Issues

Wed Dec 04, 2013 1:52 am
I am using Amarok 2.8 and it seems memory usage is out of control.

openSUSE 13.1

3.11.6-4-desktop

Backend gstreamer.

currently Amaork is using 246MB of Ram.


2013-12-02T20:52:08.450685-05:00 pegasus kernel: [207532.414092] Out of memory: Kill process 2471 (amarok) score 506 or sacrifice child
2013-12-02T20:52:08.450687-05:00 pegasus kernel: [207532.414098] Killed process 2471 (amarok) total-vm:8747948kB, anon-rss:1567144kB, file-rss:2516kB



013-12-02T20:52:06.450769-05:00 pegasus kernel: [207532.383101] pulseaudio invoked oom-killer: gfp_mask=0xd0, order=0, oom_score_adj=0
2013-12-02T20:52:06.749752-05:00 pegasus kernel: [207532.383122] CPU: 0 PID: 2461 Comm: pulseaudio Tainted: G O 3.11.6-4-desktop #1
2013-12-02T20:52:06.749782-05:00 pegasus kernel: [207532.383128] Hardware name: Gigabyte Technology Co., Ltd. GA-MA785G-UD3H/GA-MA785G-UD3H, BIOS F4 09/16/2009
2013-12-02T20:52:06.749786-05:00 pegasus kernel: [207532.383133] 0000000000000000 ffffffff815a9bd7 ffff8800365901c0 ffffffff815a6b8a
2013-12-02T20:52:06.749788-05:00 pegasus kernel: [207532.383144] 0000000000000000 ffff880128b30728 0000000000000002 0000000000000000
2013-12-02T20:52:06.749791-05:00 pegasus kernel: [207532.383152] 0000000000000000 0000000000000200 ffffffff8105100e ffffffff810e9b8c
2013-12-02T20:52:06.749793-05:00 pegasus kernel: [207532.383160] Call Trace:
2013-12-02T20:52:06.749796-05:00 pegasus kernel: [207532.383191] [<ffffffff81004a18>] dump_trace+0x88/0x310
2013-12-02T20:52:07.144305-05:00 pegasus kernel: [207532.383204] [<ffffffff81004d70>] show_stack_log_lvl+0xd0/0x1d0
2013-12-02T20:52:07.144328-05:00 pegasus kernel: [207532.383216] [<ffffffff810061bc>] show_stack+0x1c/0x50
2013-12-02T20:52:07.144331-05:00 pegasus kernel: [207532.383228] [<ffffffff815a9bd7>] dump_stack+0x50/0x89
2013-12-02T20:52:07.144333-05:00 pegasus kernel: [207532.383239] [<ffffffff815a6b8a>] dump_header+0x78/0x20c
2013-12-02T20:52:07.144336-05:00 pegasus kernel: [207532.383252] [<ffffffff811231cc>] oom_kill_process+0x1fc/0x350
2013-12-02T20:52:07.144338-05:00 pegasus kernel: [207532.383275] [<ffffffff811238e9>] out_of_memory+0x439/0x470
2013-12-02T20:52:07.144340-05:00 pegasus kernel: [207532.383289] [<ffffffff8112956a>] __alloc_pages_nodemask+0xa0a/0xa20
2013-12-02T20:52:07.144348-05:00 pegasus kernel: [207532.383302] [<ffffffff8116399d>] alloc_pages_current+0x9d/0x170
2013-12-02T20:52:07.144350-05:00 pegasus kernel: [207532.383313] [<ffffffff81124135>] __get_free_pages+0x5/0x50
2013-12-02T20:52:07.144353-05:00 pegasus kernel: [207532.383324] [<ffffffff81198140>] __pollwait+0x90/0xf0
2013-12-02T20:52:07.144355-05:00 pegasus kernel: [207532.383338] [<ffffffff815559b2>] unix_poll+0x22/0xb0
2013-12-02T20:52:07.144357-05:00 pegasus kernel: [207532.383349] [<ffffffff814b1090>] sock_poll+0xf0/0x100
2013-12-02T20:52:07.144359-05:00 pegasus kernel: [207532.383361] [<ffffffff811996e7>] do_sys_poll+0x307/0x560
2013-12-02T20:52:07.144361-05:00 pegasus kernel: [207532.383374] [<ffffffff81199c27>] SyS_ppoll+0x197/0x1b0
2013-12-02T20:52:07.334541-05:00 pegasus kernel: [207532.383397] [<ffffffff815b782d>] system_call_fastpath+0x1a/0x1f
2013-12-02T20:52:07.334563-05:00 pegasus kernel: [207532.383439] [<00007f9ff7373bff>] 0x7f9ff7373bfe
2013-12-02T20:52:07.334565-05:00 pegasus kernel: [207532.383479] Mem-Info:
2013-12-02T20:52:07.334568-05:00 pegasus kernel: [207532.383489] Node 0 DMA per-cpu:
2013-12-02T20:52:07.334570-05:00 pegasus kernel: [207532.383504] CPU 0: hi: 0, btch: 1 usd: 0
2013-12-02T20:52:07.334573-05:00 pegasus kernel: [207532.383521] CPU 1: hi: 0, btch: 1 usd: 0
2013-12-02T20:52:07.334575-05:00 pegasus kernel: [207532.383530] CPU 2: hi: 0, btch: 1 usd: 0
2013-12-02T20:52:07.509082-05:00 pegasus kernel: [207532.383538] Node 0 DMA32 per-cpu:
2013-12-02T20:52:07.509099-05:00 pegasus kernel: [207532.383545] CPU 0: hi: 186, btch: 31 usd: 138
2013-12-02T20:52:07.509101-05:00 pegasus kernel: [207532.383550] CPU 1: hi: 186, btch: 31 usd: 30
2013-12-02T20:52:07.509104-05:00 pegasus kernel: [207532.383554] CPU 2: hi: 186, btch: 31 usd: 182
2013-12-02T20:52:07.509106-05:00 pegasus kernel: [207532.383558] Node 0 Normal per-cpu:
2013-12-02T20:52:07.509108-05:00 pegasus kernel: [207532.383563] CPU 0: hi: 186, btch: 31 usd: 107
2013-12-02T20:52:07.509110-05:00 pegasus kernel: [207532.383567] CPU 1: hi: 186, btch: 31 usd: 172
2013-12-02T20:52:07.509117-05:00 pegasus kernel: [207532.383572] CPU 2: hi: 186, btch: 31 usd: 164
2013-12-02T20:52:07.509119-05:00 pegasus kernel: [207532.383583] active_anon:576399 inactive_anon:199199 isolated_anon:0
2013-12-02T20:52:07.509122-05:00 pegasus kernel: [207532.383583] active_file:2512 inactive_file:5760 isolated_file:0
2013-12-02T20:52:07.509124-05:00 pegasus kernel: [207532.383583] unevictable:0 dirty:9 writeback:0 unstable:0
2013-12-02T20:52:07.509127-05:00 pegasus kernel: [207532.383583] free:21012 slab_reclaimable:7233 slab_unreclaimable:14110
2013-12-02T20:52:07.509129-05:00 pegasus kernel: [207532.383583] mapped:22969 shmem:21343 pagetables:13745 bounce:0
2013-12-02T20:52:07.509131-05:00 pegasus kernel: [207532.383583] free_cma:0
2013-12-02T20:52:07.509138-05:00 pegasus kernel: [207532.383594] Node 0 DMA free:14020kB min:304kB low:380kB high:456kB active_anon:812kB inactive_anon:824kB active_file:0kB inactive_file:8kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15992kB managed:15908kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:24kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:24kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:3268 all_unreclaimable? yes
2013-12-02T20:52:07.509141-05:00 pegasus kernel: [207532.383608] lowmem_reserve[]: 0 2719 3434 3434
2013-12-02T20:52:07.509144-05:00 pegasus kernel: [207532.383616] Node 0 DMA32 free:56024kB min:53268kB low:66584kB high:79900kB active_anon:2015000kB inactive_anon:506176kB active_file:8908kB inactive_file:16164kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:2866048kB managed:2787808kB mlocked:0kB dirty:36kB writeback:0kB mapped:90720kB shmem:83820kB slab_reclaimable:15120kB slab_unreclaimable:23056kB kernel_stack:2680kB pagetables:35504kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:36501 all_unreclaimable? yes
2013-12-02T20:52:07.509147-05:00 pegasus kernel: [207532.383630] lowmem_reserve[]: 0 0 715 715
2013-12-02T20:52:07.509149-05:00 pegasus kernel: [207532.383637] Node 0 Normal free:14004kB min:14008kB low:17508kB high:21012kB active_anon:289784kB inactive_anon:289796kB active_file:1140kB inactive_file:6868kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:786432kB managed:732300kB mlocked:0kB dirty:0kB writeback:0kB mapped:1156kB shmem:1552kB slab_reclaimable:13788kB slab_unreclaimable:33384kB kernel_stack:2136kB pagetables:19452kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:10609 all_unreclaimable? yes
2013-12-02T20:52:07.509157-05:00 pegasus kernel: [207532.383651] lowmem_reserve[]: 0 0 0 0
2013-12-02T20:52:07.509159-05:00 pegasus kernel: [207532.383658] Node 0 DMA: 10*4kB (UE) 7*8kB (UEM) 4*16kB (UEM) 4*32kB (UEM) 3*64kB (EM) 4*128kB (UEM) 1*256kB (U) 1*512kB (E) 2*1024kB (UE) 3*2048kB (EMR) 1*4096kB (M) = 14048kB
2013-12-02T20:52:07.509162-05:00 pegasus kernel: [207532.383688] Node 0 DMA32: 3818*4kB (UEMR) 2531*8kB (UEMR) 1033*16kB (UR) 3*32kB (R) 3*64kB (R) 1*128kB (R) 0*256kB 1*512kB (R) 1*1024kB (R) 1*2048kB (R) 0*4096kB = 56048kB
2013-12-02T20:52:07.509165-05:00 pegasus kernel: [207532.383716] Node 0 Normal: 3308*4kB (UEMR) 101*8kB (U) 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 14040kB
2013-12-02T20:52:07.509174-05:00 pegasus kernel: [207532.383743] 44708 total pagecache pages
2013-12-02T20:52:07.509176-05:00 pegasus kernel: [207532.383747] 14971 pages in swap cache
2013-12-02T20:52:07.509178-05:00 pegasus kernel: [207532.383751] Swap cache stats: add 1125171, delete 1110200, find 317461/366575
2013-12-02T20:52:07.509181-05:00 pegasus kernel: [207532.383755] Free swap = 0kB
2013-12-02T20:52:07.509183-05:00 pegasus kernel: [207532.383757] Total swap = 2097148kB
2013-12-02T20:52:07.509185-05:00 pegasus kernel: [207532.413766] 917503 pages RAM
2013-12-02T20:52:07.509188-05:00 pegasus kernel: [207532.413768] 33500 pages reserved
2013-12-02T20:52:07.667736-05:00 pegasus kernel: [207532.413769] 852054 pages shared
2013-12-02T20:52:07.667758-05:00 pegasus kernel: [207532.413770] 825388 pages non-shared
2013-12-02T20:52:08.450685-05:00 pegasus kernel: [207532.414092] Out of memory: Kill process 2471 (amarok) score 506 or sacrifice child
2013-12-02T20:52:08.450687-05:00 pegasus kernel: [207532.414098] Killed process 2471 (amarok) total-vm:8747948kB, anon-rss:1567144kB, file-rss:2516kB
User avatar Mamarok
Manager
Posts
2916
Karma
8
OS

Re: Amarok 2.8.0 Memory Issues

Wed Dec 04, 2013 7:06 am
What is the usage if you disable the Analyzer applet?


Mamarok, hanging out in the Amarok forum since August, 2007
Currently running Kubuntu Trusty 14.04, KDE 4.12.95, Amarok 2.8-git of the day
User avatar cydtazz
Registered Member
Posts
10
Karma
0
OS

Re: Amarok 2.8.0 Memory Issues

Fri Dec 06, 2013 12:53 am
What is the analyzer Applet?

I am not running the Context View.

Let run all day today and got home Amarok was using over 600MB

I have online radio running all day.

I just restarted and Amarok is using 162MB Accroding to htop and a 166MB according to top.

The longer I leave it running the more memory it consumes.

What can I provide to help solve this issue?

I really like Amarok and want to know I can use it and it will not cause my system to become unstable.
User avatar Mamarok
Manager
Posts
2916
Karma
8
OS

Re: Amarok 2.8.0 Memory Issues  Topic is solved

Fri Dec 06, 2013 6:58 am
Since you are not using the Context View, try switching the backend to phonon-backend-vlc, as you don't need gstreamer. That should reduce the memory consumption .


Mamarok, hanging out in the Amarok forum since August, 2007
Currently running Kubuntu Trusty 14.04, KDE 4.12.95, Amarok 2.8-git of the day
User avatar Mamarok
Manager
Posts
2916
Karma
8
OS

Re: Amarok 2.8.0 Memory Issues

Fri Dec 06, 2013 10:30 am
Oh, and markey just told me this:

markey wrote:"013-12-02T20:52:06.450769-05:00 pegasus kernel: [207532.383101] pulseaudio invoked oom-killer: gfp_mask=0xd0, order=0, oom_score_adj=0"

This could be related to Pulseaudio


Mamarok, hanging out in the Amarok forum since August, 2007
Currently running Kubuntu Trusty 14.04, KDE 4.12.95, Amarok 2.8-git of the day
User avatar cydtazz
Registered Member
Posts
10
Karma
0
OS

Re: Amarok 2.8.0 Memory Issues

Fri Dec 06, 2013 12:34 pm
Mamarok,

Have installed the phonon-vlc-backend.

Started Amarok
using Htop - Amarok started out using 137M Ram
After 5 minutes up to 151M Ram

Agree there may have been, or be an issue with pulse-audio. However I think that killer was started after the system ran out of memory.
I have 4GB in the system. Not a lot, but enough that of the only things running are Thunderbird email, Firefox, a couple of term windows and Amarok, system should not run out of memory.

Pulse-Audio resident in memory using 7.7M.

I will continue to monitor the system.

Hoping phonon-vlc-backend can stabilize Amarok at 151M or there abouts.

Will report back.
User avatar cydtazz
Registered Member
Posts
10
Karma
0
OS

Re: Amarok 2.8.0 Memory Issues

Fri Dec 06, 2013 11:27 pm
Came home this evening and Amarok is stable at 138M. Has not changed since I left for work this morning.

The high of 151M was probably because I had the interface open on the desktop. After minimizing it to the system tray, memory went to 137M.

I left for work and it was at 138M.

Has held stable all day.

It seems installing the photon-vlc-backend package did the trick.

Mamarok You Rock!
User avatar cydtazz
Registered Member
Posts
10
Karma
0
OS

Re: Amarok 2.8.0 Memory Issues

Sun Dec 08, 2013 12:26 am
We can mark this case sol ved. ;D

I also updated my kernel last night to 3.12 and rebooted.

Amarok has been stable at 136M all day long.

The fix was to install the phonon backend. Who'd a thunk it. Other than the experts here of course.

Thanks to all who helped.

And a special Thanks to Mamarok.
User avatar Mamarok
Manager
Posts
2916
Karma
8
OS

Re: Amarok 2.8.0 Memory Issues

Sun Dec 08, 2013 12:47 am
You are welcome :) Sadly there is a known problem with gstreamer when it comes to memory consumption which is pretty much out of our hands, so indeed, if you don't need the extra features requiring the gstreamer backend, using the vlc backend is the best solution.


Mamarok, hanging out in the Amarok forum since August, 2007
Currently running Kubuntu Trusty 14.04, KDE 4.12.95, Amarok 2.8-git of the day

 
Reply to topic

Bookmarks



Who is online

Registered users: 16777216, alake, Baidu [Spider], Bing [Bot], edmael, Exabot [Bot], garthecho, Google [Bot], Hans, joshaughnessy, koriun, Majestic-12 [Bot], north, raymondsarver, urgo, verbalshadow, Yahoo [Bot]