Summary: | Process priority for moodbar is too low | ||
---|---|---|---|
Product: | [Applications] amarok | Reporter: | Mark Rose <markrose> |
Component: | general | Assignee: | Amarok Developers <amarok-bugs-dist> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Mark Rose
2006-11-05 07:42:14 UTC
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! :) |