Registered Member
|
I'm not sure whether something has changed with my system, or something has changed with Amarok, or if it has to do with the size of my collection slash the database I'm using, but recently I've noticed the Amarok interface getting very laggy. It takes a few seconds for it to skip to the next song when I hit the key on my computer, and even then, the interface doesn't update for another 10 seconds, so its hard to skip through songs quickly. I have the OSD turned off because it wasn't showing up until about 10-15 seconds into a song; by that time, I already know what I'm listening to.
Does anyone know what might be causing the problem and/or how I might be able to speed up Amarok? I'm running under Ubuntu 6.06 with ATI drivers using the included SQLite engine (I didn't have postgre or mysql installed at the time.. I still don't come to think of it, but I'm willing to install one or the other if you think it will make a big difference). My collection is ~8000 songs. I also find that it takes a long time to skip through songs while tagging them (i.e. "Per File", when clicking "Next"). Thanks in advance, -Aikon
Last edited by Aikon on Tue Oct 31, 2006 10:20 pm, edited 1 time in total.
|
|
It won't. Well, it might make things even slower. But it won't help you, that's for sure. MYSQL speed-advantages are a myth... |
KDE Developer
|
Well, YMMV. Many users and developers swear that MySQL/PSQL scale a lot better with big collections.
--
Mark Kretschmann - Amarok Developer |
Registered Member
|
So basically, I should just get both setup on my machine and then try them each for a few days and see which one of the three produces best results =P Out of curiousity, what would you consider to be a "big collection"? I'm running at ~40GB with roughly 8000 songs.. |
KDE Developer
|
|
|
Yeah? If you ask me, that's ****. Show me objective stats and performance benchmarks and I can believe that...otherwise...myth. |
Registered Member
|
Administrator.... vs..... newbie...... I'm going to give it a shot and see what my mileage is ^_- |
|
Well, of course I hope it works out for you...good luck!
I haven't seen any serious testing on this yet and the last time I tried I thought MySQL is actually slower...but that opinion is biased of course, just like all the "MySQL is so much faster wohoihoioihiiblahblah11!!111!!" fanboys who just repeat what they hear from others without giving any scientific proof = serious benchmarking = objective statistics! But you might want to read this... http://mail.kde.org/pipermail/amarok/20 ... 01515.html ...don't believe the hype!
Last edited by stokedfish on Tue Oct 24, 2006 11:43 pm, edited 1 time in total.
|
Registered Member
|
UPDATE
For some reason it didn't occur to me to do this before... Anyway, I'm still getting really horrible interface lag, no change there, but what I did was I opened up Gnome System Monitor to monitor my resource usage. During normal playback (i.e. just leaving it there playing a song), Amarok hums along chewing up 5% of my CPU time. Not bad, considering all that Amarok does. But here's the problem: When I switch songs (i.e. exactly what causes the "interface lag" I posted about above), my CPU jumps to 100%, and the process amarokapp is chewing up most of it at 80-90%! It stays at this level for about 20 seconds and then it drops back down to 5%. Without a doubt, whatever is causing this CPU spike (not even so much a spike as a revolting plateau) is what's causing my perceived lag in the interface. Does anyone have any suggestions as to what might be causing this heavy usage? It happens even when I have 2 songs in my active playlist, have turned off "watch folders" for the collection, have closed all sidebars except "Collection", and switch from one song in my playlist to the other. Hope this offers a bit more insight... I sure would love to fix this problem, as I now have a fear of changing songs while I'm burning DVDs, not to mention that when I'm trying to clean up my collection and want to end up with 1 copy of a song for which I currently have 10 copies, I need to switch between songs alot, and 20 seconds of killing my computer per song is no good! -Aikon |
Registered Member
|
ANOTHER UPDATE
The CPU plateau also occurs if I just leave the first song to play through to the end; as soon as the second song starts playing, the CPU goes up to 100% again and stays there for about 20 seconds. |
Moderator
|
Maybe try disabling crossfade (on the playback page in settings), and see if that makes a difference.
"There are two theories to arguing with women. Neither one works."
. If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss" |
Registered Member
|
I don't have crossfade enabled. I also tried disabling the "Retrieve similar artists" from Last.fm but I still get the CPU plateau. It appears it has to do with the playback and not the transition, as I get it even if I've just opened Amarok and start the first song playing.
Edit: I also tried disabling the OSD a while back, thinking that might be the cause of the problem, but no dice, it still plateaus at 100%. |
Registered Member
|
FURTHER UPDATE
Hmm.. now that I've pinned the problem down as CPU usage, I tried closing Amarok. I'd had it open for only a few minutes, and only listened to two or three songs, and I hadn't changed any tags or album covers during that time. When I clicked Engage --> Quit, Amarok oscillated between 0% and 100% usage every few seconds for a solid two minutes before the process finally ended. Had I not had System Monitor open, I wouldn't even have noticed, as the window itself closed immediately and there was no hard drive access. |
Registered Member
|
/cry
You guys have managed to fix all my other problems, don't make me lose my fantasy that you're super-human immortals =*( |
Registered Member
|
I ran Amarok from the command line and isolated where the CPU plateau effect occurs (please don't judge my music....):
The start of that block of output coincides with when I push the "Next" button on my keyboard, and the CPU goes up to 100% immediately; the end (Took 27s part) coincides precisely with when the CPU drops back down to normal levels. Hopefully this offers a bit more insight? |
Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]