Mailing List Archive

Bad desktop performance, I think (was: Re: Hello? Thump-thump?)
Nicholas J. Michalek writes:

> Roll-call thread! I'm here!

Cool. Hi Nicholas! Hi Fritze!

> Indeed, this list has tended to have periods of dormancy... like me, we
> probably all forgot about it until this recent resurrection.

My post took awhile until it showed up, so had already filed a bug report
about this list not really existing. Now I closed it :)

> Rather than let it die again, I say we throw out ideas for discussion.
> I think we should have regular posts commenting on performance
> improvements (or otherwise) of recent package updates, such as openrc
> or glibc, or anything anyone is interested in.

Sounds good. I'll start then with what I was about to post on gentoo-user,
when I remembered that there should be this list.

Hi there!

I am a little disappointed by the performance of my system. mplayer
sometimes stutters a little during the calculation phase of emerge -DpN
@world, swfdec-player does so even more. Well, sometimes even without
emerges, I guess this flash player is not coded so well.

My system is not the fastest, silence and low power consumption was more
important for me. Still, it should be fast enough I think. I have an AMD
Athlon(tm) Dual Core Processor 4850e CPU (using -march), 4GB of memory, an
1.5 TB drive. The whole system is encrypted (aes-xts-plain) and LVMed.
While the LVM overhead should be small, encryption of course creates some
extra load. /var/tmp/portage is an unencrypted tmpfs volume though. kernel
is 2.6.31-tuxonice. I'm running KDE4 with desktop effects enabled (running
ati-drivers), X itself takes about 30-40% of CPU time according to top.
mplayer itself needs less than 20%.

PORTAGE_NICENESS is 15, PORTAGE_IONICE_COMMAND uses ionice -c 3. I thought
that with these settings emerges should not be noticeable. mplayer shows
little stutters even with a niceness of 19. This looks wrong to me.

The kernel is configured as low-latency desktop. BTW, the kernel config is
here, just in case someone wants to have a look:
http://wonkology.org/~wonko/stuff/gentoo/config-genkernel-x86-2.6.31-
tuxonice_k8

So what I am asking is:
1) What might be wrong?
2) Tuning tricks. Tweaking the schedulers, different kernel sources. mm-
sources perhaps? But they look rather old. zen-sources? I might give them
a try. But then, I like software suspend, and tuxonice is regarded to be
better than the normal software suspend, and even with tuxonice I tend to
have problems.

Any input is appreciated. It's not a big problem, though, I could live
with that. But this is Gentoo, we like to tweak things, don't we? Let's
get this list alive again.

Wonko
Re: Bad desktop performance, I think (was: Re: Hello? Thump-thump?) [ In reply to ]
Hello all,

On Wed, Jan 20, 2010 at 6:07 AM, Alex Schuster <wonko@wonkology.org> wrote:
> I am a little disappointed by the performance of my system. mplayer
> sometimes stutters a little during the calculation phase of emerge -DpN
> @world, swfdec-player does so even more. Well, sometimes even without
> emerges, I guess this flash player is not coded so well.
>
> My system is not the fastest, silence and low power consumption was more
> important for me. Still, it should be fast enough I think. I have an AMD
> Athlon(tm) Dual Core Processor 4850e CPU (using -march), 4GB of memory, an
> 1.5 TB drive. The whole system is encrypted (aes-xts-plain) and LVMed.
> While the LVM overhead should be small, encryption of course creates some
> extra load. /var/tmp/portage is an unencrypted tmpfs volume though. kernel
> is 2.6.31-tuxonice. I'm running KDE4 with desktop effects enabled (running
> ati-drivers), X itself takes about 30-40% of CPU time according to top.
> mplayer itself needs less than 20%.

I also use LVM encryption, and mplayer plays 720p at 30 fps just fine
with only the integrated Intel graphics and 1 GB of RAM. So, I suspect
you are just not using the full potential of your CPU.

If you haven't already: grep flags /proc/cpuinfo; add any of the
{mmx,mmext,sse,sse2,ssse3,3dnow,3dnowext} flags there along with
"custom-cpuopts" to your mplayer line in /etc/portage/package.use;
then re-emerge of course.

With 4GB if RAM you should probably also set swappiness to a lower
value than default.

That's all I can think of for now, good luck!

--
Mansour Moufid