Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Benno Senoner <sbenno@gardena.net>
To: linux-sound@vger.kernel.org
Subject: Re: playing MP3 vs CPU usage
Date: Fri, 27 Aug 1999 18:06:32 +0000	[thread overview]
Message-ID: <marc-linux-sound-93577719209032@msgid-missing> (raw)
In-Reply-To: <marc-linux-sound-93577292904421@msgid-missing>

On Fri, 27 Aug 1999, Yau Chan wrote:
> Hi.  I'm a beginner in Linux.
> I just set up my new sound card and it plays very good when
> I'm plaything something alone.  But when I'm playing a song
> in a terminal, and tryig to do something else.  like switching
> to another terminal on the Desktop, the song will stall for
> a very very short bit.  i tried to keep track of the CPU
> usage.  when it's playing the song alone, it's using about
> 20%.  But whenever i try to do something else, it just jump
> to full for a short instance.  I wonder if there is any way
> that I can modify it so that it will be more smooth when i'm
> playing song and do other things.  Thanks.
> 
> I'm using a very slow computer, which is a Pentium 133.
> But I don't have such problem in windows95 and windows NT.
> So, I guess linux should do better.  Thank you very much.
> 

Linux actually has some problems in this area, especially on slow computers.
The trick is to increase audio buffers of your mp3 player (what player are you
using ?),
plus tuning your EIDE disk with
hdparm -d 1 -u 1 -m 8 -c 1  /dev/hda
because when there are disk accesses, the kernel stalls sometimes, especially
when you run non-DMAed disks
most distros don't tune your disk properly.

Perhaps if your player supports realtime-scheduling , your could try to run it
as root to see if things get better.

The P133 is easily capable of playing an MP3 , the problem is mainly buffering
and process scheduling. ( already solved in some unofficial patches,
let's see if they can get into the mainstream kernel :-) )

regards,
Benno.

  reply	other threads:[~1999-08-27 18:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-27 16:31 playing MP3 vs CPU usage Yau Chan
1999-08-27 18:06 ` Benno Senoner [this message]
1999-08-28  5:16 ` Yau Chan
1999-08-28  8:52 ` Benno Senoner

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=marc-linux-sound-93577719209032@msgid-missing \
    --to=sbenno@gardena.net \
    --cc=linux-sound@vger.kernel.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