LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-26-2004, 08:31 AM   #1
wrat
Member
 
Registered: May 2004
Posts: 245

Rep: Reputation: 30
sound and chipset confusion


Im trying to figure out if everything is working as well as it could...I HAVE sound it works fine BUT when I check kde info center it says
installed drivers type 10=alsa emulation
card config:no sound card

this confuses me?? soundcard is sblive and I see it picked up when I boot..however when using any audio app: xmms or kaffiene cpu usage spikes heavy..this leads me to believe Im not using something properly and its going thru software emulation instead of hardware or am I way off here??

also I have ata 100 hd and ata 100 chipset and hdparm sees drive as udma5 but transfer rate is only 29mb ...thats the same as my ata66 computer I know Im not going to get 100mb..but around 40-50 would be expected as thats what I get in m$ according to hdtach
 
Old 05-26-2004, 10:08 AM   #2
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33
How did you meassure disk performance ??

Check if you have kdemultimedia3-mixer package installed.

I have had it but there was a terrible noise when KDE was started. So I removed
kdemultimedia3-mixer and have only ALSA left. Somehow KDE Mixer and ALSA
Mixer could not stand each other :-))

BTW: Can you start kamix ?
 
Old 06-19-2004, 06:07 PM   #3
wrat
Member
 
Registered: May 2004
Posts: 245

Original Poster
Rep: Reputation: 30
hd perfomance measured with hd parm
as I said sound is working BUT maybe in some sort of software emulation??
 
Old 06-20-2004, 07:03 AM   #4
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33
UDMA is the bus transfer performance. If your drive is not capable of delivering more then 30 MB/s then
a faster bus will not make it faster either.

Keep in mind that hdparm -tT is *not* a benchmark.

So you may try follwing simple test (assuming /dev/hda is your drive).

In one console start:
time dd if=/dev/hda of=/dev/null bs=64k count=16384
and in another console window start
iostat 2 -k

You can online watch how your read performance is.

You may also check your drive setting in
/proc/ide/ideX/hdY

where X represents your IDE Controller or Channel (e.g. ide0, ide1)
and Y represents your drive (e.g. hda, hdb)

there you will find a file called "settings"

Take a look if cache is enabled.

Also take a look on the output of hdparm -a /dev/hdY

It will give you the number of how many blocks are read ahead.

Depending on your drive 29 MB/s might be the maximum value you can get.
What is the type of your drive and what the rotation speed (e.g. 7200 rpm) ?

Last edited by Vlad-A; 06-20-2004 at 07:05 AM.
 
Old 06-20-2004, 09:08 AM   #5
wrat
Member
 
Registered: May 2004
Posts: 245

Original Poster
Rep: Reputation: 30
iostat 2 -k =no such command??
drive is a maxtor 20 gig 7200 rpm
read ahead is 256

""You may also check your drive setting in
/proc/ide/ideX/hdY""

all documents in that directory are empty 0 byte,and yes I changed x and y

and as I said in windows with hd tach which is a hd benchmark I get around 42mb/s

any idea about the alsa thing??
 
Old 06-20-2004, 12:12 PM   #6
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33
Hi,

from that what I can understand it looks like you are using OSS (Open Sound System) instead of ALSA. It may be
that your KDE is configured to use OSS instead of ALSA. ALSA however can emulate OSS and I assume
that KDE is going through this OSS Emulation.

In my case xmms also uses the OSS output plugin, so I also use OSS emulation for xmms, but I do not see
any CPU untilization increase.

I suggest you take a look on KDE control Center -> "Sound & Multimedia" -> "Sound System"

Click on the right-hand window the "Hardware" Tab.

Take a look on the "Select the audio device" Setting. Select there "Autodetect" or "Advanced Linux Audio System"

iostat is a standard UNIX/Linux Commad.

I *think* that in Debian it is part of the sysstat package. So check if you have installed it.
If not install it.

You may also log in as root and tinvoke iostat.

It may be that the path to iostat command is not in your PATH variable.

In my case iostat is located under /usr/bin.

So as non-root user I have to invoke: /usr/bin/iostat

About the file size in /proc/ide/ideX/hdaY being 0.

It does not matter what file size is shown. You shall be able to perform a
cat /proc/ide/ideX/hdaY
However you need root access in order to display the content of the files located there.

Remmeber /proc is a pseudo filesystem, so the file size displayed in /proc is not the same like the size
of files located in a "normal. Filesystem.

You say your drive size is 20 GB ? Is it 20 GB or 200 GB ?

Last edited by Vlad-A; 06-20-2004 at 12:44 PM.
 
Old 06-20-2004, 12:54 PM   #7
wrat
Member
 
Registered: May 2004
Posts: 245

Original Poster
Rep: Reputation: 30
Take a look on the "Select the audio device" Setting. Select there "Autodetect" or "Advanced Linux Audio System"

auto detect..If i choose alsa i get no sound
will check on sysstat
and its twenty gig hd


if i type /proc/ide/ide0/hda at root console i get:
/proc/ide/ide0/hda: is a directory
 
Old 06-20-2004, 03:16 PM   #8
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33
I have checked the performance data from hdtach 2.7 with my drives and the average value is pritty much the same as the value
hdparm -tT delivers.
By the way, I do not trust all the values hdtach delivers.
I think that for a 20 GB drive 29 MB/s is a very good value.
Here for comparison
Seagate Barracuda 7200 rpm 120 GB: hdparm 37.64 MB/s hdtach: max. 45.5 MB/s min: 15.2 average: 36.0 MB/s
Seagate Barracuda 7200 rpm 200 GB: hdparm 61.24 MB/s hdtach: max. 65.5 MB/s min: 35.4 average: 58.0 MB/s
Bigger drives have a higher data desinity so with the same angle speed (7200 rpm) you simply read more data
within one rotation, that's why bigger drives have a higher sequential throghput.
keep in mind that you have 20 GB which is about 1/6 of 120 GB.

Still if you think that you can achieve even higher throughput take a look on your settings either with:
a) hdparm -I
(you may also take a look on the hdparm manpage: man hdparm)
or
b) cat /proc/ide/ide0/hda/settings

As for the sound:
1) Check if your card is ALSA supported:
http://www.alsa-project.org/alsa-doc...dor=All#matrix

Find there your card and click on the Detail Field. There are some additional explanations.

2) It may be that your ALSA Version does not have a native support for your card.
Take a look on the lsmod output. The ALSA card drivers start with snd_
E.G.
snd_ac97_codec 55556 1 snd_emu10k1
I have a Creative Soundblaster Live and the driver is snd_emu10k1.

3) Enable ALSA Output in xmms and check if it plays:
Right Click on XMMS Windows and then:
Options-> Preferences
Then select as output plugin: ALSA
Restrat then xmms

4) It may also be that your aRts (the default KDE Soundsystem) has problems with ALSA

Check: http://www.linuxquestions.org/questi...hreadid=186360

Last edited by Vlad-A; 06-20-2004 at 03:29 PM.
 
Old 06-20-2004, 05:40 PM   #9
wrat
Member
 
Registered: May 2004
Posts: 245

Original Poster
Rep: Reputation: 30
its a soundblaster live so its supported after much googling it appears to be more of a hassle to get alsa running properly especially since sound does work...anyway I upgraded from sarge to sid and it seems to have given me more of the performance I was looking for compared to xp anyway....still think its odd that in kde infocenter>sound
installed drivers: type 10 alsa emulation
card config:no soundcards
audio devices:not enabled

but as i said sound does work so???
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound Problem: ESS (ES1869F-Chipset) No Sound computer_kid Slackware 9 08-02-2006 09:41 PM
Sound not working - Nfoce2 chipset SuzyQ Slackware 2 06-20-2005 08:06 AM
SuSE 9.1 on nForce2 chipset - no sound [42]Raydon Linux - Hardware 1 09-05-2004 09:57 PM
what sound chipset do I have? paperdiesel Linux - Hardware 2 07-21-2004 05:27 PM
sound confusion zuessh Linux - Hardware 4 11-20-2003 01:24 PM


All times are GMT -5. The time now is 10:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration