public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Grant <emailgrant@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Prioritizing mpd
Date: Fri, 12 Jun 2009 21:45:02 -0700	[thread overview]
Message-ID: <49bf44f10906122145k327c03c3jb99731ca1fe818cb@mail.gmail.com> (raw)
In-Reply-To: <20090613103056.552dc565@coercion>

>> When I use the medium quality libsamplerate resampler with mpd, my CPU
>> is around 15% and all is well.  When I try to use the best quality
>> resampler, the CPU stays around 99% and the sound frequently falls
>> apart.  Can I give mpd CPU priority?
>
> Yes, it's usually done via nice/renice commands:
>
>  renice -n -10 -p `pgrep mpd`
>
> You can tune it's priority up to -20 (most real-time priority).
>
> I'd suggest looking at load-average it generates ("top" shows it, at the
> top)) first.
> After running mpd for 15 minutes or so, if any of the three (5/10/15)
> will go above number of physical CPU cores you have (and that's
> probably the case if you see full load at any given time), tuning it's
> priority up will make the rest of the system extremely sluggish, since
> mpd won't let any other process to execute and just doing "ls" may take
> ages, not to mention whole X operation...

Thanks Mike.  I tried:

renice -20 -p `pgrep mpd`

but my Athlon 2.2Ghz still can't handle it for more than a few
seconds.  I don't have SMP enabled because of a bug in madwifi, and
I'm hoping when I get that fixed I'll be able to run the best
libsamplerate resampler.  Any other ideas for making this work?

- Grant



  reply	other threads:[~2009-06-13  4:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-12 23:02 [gentoo-user] Prioritizing mpd Grant
2009-06-13  4:30 ` Mike Kazantsev
2009-06-13  4:45   ` Grant [this message]
2009-06-13  5:11     ` Mike Kazantsev
2009-06-13 13:31       ` Grant
2009-06-13 16:32         ` Mike Kazantsev
2009-06-13  8:54   ` Alan McKinnon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49bf44f10906122145k327c03c3jb99731ca1fe818cb@mail.gmail.com \
    --to=emailgrant@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox