Version: (using KDE KDE 3.5.5) Installed from: Ubuntu Packages The process priority for the moodbar is too low. It seems to be set at nice 19 with no way to change it inside of Amarok. I already have an application running at nice 19 (distributed.net) and I'd like moodbar to have priority over it. Also, I'm running the moodbar collection scanning script at nice 15 -- I want this to take priority over distributed.net, obviously. Having any CPU consuming task running at higher than nice 19 prevents the moodbar from updating quickly inside of Amarok. The option to change the nice priority isn't really required (it may confuse newbies), but setting it somewhere around 10 would allow the user(s) of the system to schedule tasks around it.
Sounds like a sensible request to me. Niceness of 10 could be a good compromise.
Yes, that would be a perfect (and very easy) fix.
Bear in mind that the nice value was deliberately set to 19 in the first place because the default value of 10 was crippling some systems when moods were being calculated... it's quite a CPU-intense process. Much as I hate to say "make it an option", there needs to be some way for those of us who *need* it to have extremely low priority to be able to make it so. Perhaps a line in the config without a gui option? Not the best in terms of discoverability, but also not the first such setting for amarok.
Yeah, having as an option in a config file is a great idea. I have the inverse problem: having moodbar set at 19 makes moodbar calculations excessively slow, as they're competing with idle tasks which I can't set any lower.
Sorry, we won't be adding a config option for this. Either we find a value that works well for most users, or we can't change it. Mark, what's the highest nice value that still yields acceptable performance for you? Please keep in mind that we are talking about the stable branch (1.x), where we cannot take any risks.
A nice value of 18 would be functional. Any lower would only be for flexibility.
SVN commit 641676 by markey: Give the moodbar process a higher priority (niceness of 18 instead of 19). Apparently 19 became to slow for some users. BUG: 136867 M +1 -0 ChangeLog M +1 -1 src/moodbar.cpp --- branches/stable/extragear/multimedia/amarok/ChangeLog #641675:641676 @@ -5,6 +5,7 @@ VERSION 1.4.6 CHANGES: + * The moodbar process has been given a higher priority. (BR 136867) * Allow for lyrics scripts to specifiy site, site_url, and add_url from within the script. This will allow for "meta lyrics" scripts. Patch by Sergio Pistone <sergio_pistone@yahoo.com.ar>. (BR 141885) --- branches/stable/extragear/multimedia/amarok/src/moodbar.cpp #641675:641676 @@ -471,7 +471,7 @@ // don't think the mood data exists while the analyzer is // running. Then rename the file later. m_currentProcess = new Amarok::Process( this ); - m_currentProcess->setPriority( 19 ); // Nice the process + m_currentProcess->setPriority( 18 ); // Nice the process *m_currentProcess << KStandardDirs::findExe( "moodbar" ) << "-o" << (m_currentData.m_outfile + ".tmp") << m_currentData.m_infile;
Excellent. Thank you! :)