maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   Setting 'high priority' on the Music Player? (https://talk.maemo.org/showthread.php?t=45996)

ToJa92 2010-02-26 22:42

Setting 'high priority' on the Music Player?
 
As the topic says, is there anyway to set a higher priority on the music player so it doesn't stutters while doing other stuff on my N900? I don't mind if an app takes 1 second longer to launch, as long as the music still plays.

----------------
Now playing: Tool - Forty Six & 2

ear0wax 2010-02-26 22:49

Re: Setting 'high priority' on the Music Player?
 
I believe changing the nice level is what you want to do.

http://linux.about.com/library/cmd/blcmdl1_nice.htm

hawaii 2010-02-27 06:17

Re: Setting 'high priority' on the Music Player?
 
Try `renice` on a running PID.

Lazarpandar 2010-02-27 07:13

Re: Setting 'high priority' on the Music Player?
 
Quote:

Originally Posted by ear0wax (Post 548326)
I believe changing the nice level is what you want to do. [/url]

Dude, nice!

badum psh

ToJa92 2010-02-27 13:15

Re: Setting 'high priority' on the Music Player?
 
The music player is /usr/bin/pulseaudio, right? If so, it doesn't seem to work. It lagged a little bit still. Also the command line options already include --high-priority.

EDIT: Ran 'renice -10 <pulseaudio PID>' but it still lagged sometimes..
EDIT#2: Also ran 'renice -20 <pulseaudio PID>' (the highest priority) but it still lagged.

paulkoan 2010-02-27 14:24

Re: Setting 'high priority' on the Music Player?
 
Pulseaudio is the sound daemon

/usr/bin/mediaplayer is the media player

tso 2010-02-27 14:34

Re: Setting 'high priority' on the Music Player?
 
the decoding is probably happening in hardware, so what could be happening is that the storage media is not able to feed the hardware fast enough. are there any other read or write activity happening when it stutters?

bbin 2010-02-27 15:12

Re: Setting 'high priority' on the Music Player?
 
Quote:

Originally Posted by tso (Post 548885)
the decoding is probably happening in hardware, so what could be happening is that the storage media is not able to feed the hardware fast enough. are there any other read or write activity happening when it stutters?

Stuttering usually happens when rendering webpages or doing something a bit more resource demanding.

I read that nexus one and droid also suffer from this.

ToJa92 2010-02-28 10:18

Re: Setting 'high priority' on the Music Player?
 
Quote:

Originally Posted by tso (Post 548885)
the decoding is probably happening in hardware, so what could be happening is that the storage media is not able to feed the hardware fast enough. are there any other read or write activity happening when it stutters?

Yes, I guess Firefox uses it's fair share of the memory. Maybe I should disable the disc cache?

ear0wax 2010-02-28 10:49

Re: Setting 'high priority' on the Music Player?
 
Quote:

Originally Posted by bbin (Post 548913)
Stuttering usually happens when rendering webpages or doing something a bit more resource demanding.

I read that nexus one and droid also suffer from this.

We have a DSP chip, From what i under stand it handles sound processing and network traffic so downloads could cause it. The cpu would be what accually does the rendering.

If you want to see if its the storage bandwith topping out, you could always stick your music on the sd card and test that theroy. I keep all my music on the sd, and i only get shuttering when I get notifaction spamed.

ear0wax 2010-02-28 10:52

Re: Setting 'high priority' on the Music Player?
 
also thought i would point out any package manager (apt, app manager, easydeb syamptic) will bring the system to a stand still

tuminoid 2010-02-28 11:17

Re: Setting 'high priority' on the Music Player?
 
Quote:

Originally Posted by ear0wax (Post 549707)
also thought i would point out any package manager (apt, app manager, easydeb syamptic) will bring the system to a stand still

Disk I/O is horrible admittedly, but its the memoryswapping is what kills the device. Like on any desktop I use, I'd love to disable swap, but 256 megs of memory isn't alone enough to run the device :(

tso 2010-02-28 11:27

Re: Setting 'high priority' on the Music Player?
 
there is a system for using compression in ram as swap, but i dont know if its working on N900 yet.

ear0wax 2010-02-28 11:53

Re: Setting 'high priority' on the Music Player?
 
Quote:

Originally Posted by tso (Post 549742)
there is a system for using compression in ram as swap, but i dont know if its working on N900 yet.

If your talking about compcache, it degrades performance; look at android benchmarks....

I wonder what different swapness would give us.

tso 2010-02-28 14:08

Re: Setting 'high priority' on the Music Player?
 
odd, i would say it improved the performance on my N800 vs using the SD card as swap.

sure, it will have a performance hit vs straight ram. but when comparing swap and compressed in ram, then what?

btw, given the way android handles processes, the benefits there could be minimal vs what one get on the N8x0 or N900, as its more a traditional computer in its process management.


All times are GMT. The time now is 00:25.

vBulletin® Version 3.8.8