[KLUG Members] artsd

Tony Gettig members@kalamazoolinux.org
Thu, 01 Nov 2001 12:24:45 -0500


Two things:

1) Here is a snippet from strace -p (I'm not sure how to interpret this, 
other than No such device. I'll be searching for this on the net.)
<------------snip-------------->
read(6, 0x8092f48, 4096)                = -1 ENODEV (No such device)
select(7, [6], NULL, NULL, {0, 50000})  = 0 (Timeout)
ioctl(6, 0x8010500d, 0xbffff260)        = 0
ioctl(6, 0x8010500c, 0xbffff260)        = 0
read(6, 0x8092f48, 4096)                = -1 ENODEV (No such device)
select(7, [6], NULL, NULL, {0, 50000})  = 0 (Timeout)
ioctl(6, 0x8010500d, 0xbffff260)        = 0
ioctl(6, 0x8010500c, 0xbffff260)        = 0
read(6, 0x8092f48, 4096)                = -1 ENODEV (No such device)
select(7, [6], NULL, NULL, {0, 50000})  = 0 (Timeout)
ioctl(6, 0x8010500d, 0xbffff260)        = 0
ioctl(6, 0x8010500c, 0xbffff260)        = 0
read(6, 0x8092f48, 4096)                = -1 ENODEV (No such device)
select(7, [6], NULL, NULL, {0, 50000})  = ? ERESTARTNOHAND (To be 
restarted)
--- SIGALRM (Alarm clock) ---
times({tms_utime=20, tms_stime=62496, tms_cutime=0, tms_cstime=0}) = 
1010283
gettimeofday({1004634027, 862721}, NULL) = 0
times({tms_utime=20, tms_stime=62496, tms_cutime=0, tms_cstime=0}) = 
1010283
gettimeofday({1004634027, 863245}, NULL) = 0
rt_sigaction(SIGALRM, {0x4028643c, [ALRM], SA_RESTART|0x4000000}, 
{0x4028643c, [ALRM], SA_RESTART|0x4000000}, 8) = 0
sigreturn()                             = ? (mask now [])
select(7, [6], NULL, NULL, {0, 50000})  = 0 (Timeout)
ioctl(6, 0x8010500d, 0xbffff260)        = 0
ioctl(6, 0x8010500c, 0xbffff260)        = 0
read(6, 0x8092f48, 4096)                = -1 ENODEV (No such device)
select(7, [6], NULL, NULL, {0, 50000})  = 0 (Timeout)
ioctl(6, 0x8010500d, 0xbffff260)        = 0
ioctl(6, 0x8010500c, 0xbffff260)        = 0
read(6, 0x8092f48, 4096)                = -1 ENODEV (No such device)
select(7, [6], NULL, NULL, {0, 50000} <unfinished ...>
<------------snip-------------->

2) If I cat file.wav > /dev/audio it plays with no problem at all.

Eventually, I'd like to be able to record multitrack music. Right now, 
I'm wondering why it seems to overtake the PC. Oh yeah, after awhile, I 
get a message "Sound server fatal error. CPU overload, aborting".

I'll keep looking. Any ideas are appreciated. Thanks!

Tony


Adam Tauno Williams wrote:

>>I'm running RH 7.2, KDE, on a Compaq 933 with 512 MB RAM. The 
>>utilization of artds sound driver is consistently in the 90% range. 
>>Every now and then I hear a burp from the speakers as it trys to play a
>>sound, such as when logging into KDE. The commandline as shown in KPM
>>is:
>>/usr/bin/artsd -F 10 -S 4096 -a oss -d -s 60 -m artsmessage -l 3 -f
>>I have noticed that if I have another process going, such as composing
>>this email, the usage is split evenly between the two. That is, say 48%
>>and 48%. It is a running process, as the STAT is R, for what that's
>>worth.
>>Any ideas or pointers in the right direction are appreciated.
>>
> 
> I'd guess it is in some polling loop,  or some thread has hit a race condition. 
> Can you "strace -p {pid}" and see if it is making any system calls.
> 
> If you whack artsd can you play a sound file directly through the sound device
> (/dev/audio?) without difficulty.
> 
> I'm not familiar with KDE,  but I assume artsd does the same thing as GNOME's
> esd (mixing multiple streams to the sound device,  avoiding stupid permissions
> problems on the sound device, etc...)
> 
> 
>>Also, I finally made the final move on my work desktop to run 
>>exclusively Linux. I have a Windows PC nearby for critical Novell 
>>administration, but I am working on eliminating that too. Most of what I
>>do I can do on Linux. To those who say it's not ready for the desktop, I
>>say phooey! :)
>>
> 
> You'll never hear me sat that!
> 
> Systems and Network Administrator
> Morrison Industries
> 1825 Monroe Ave NW
> Grand Rapids, MI. 49505
> _______________________________________________
> Members mailing list
> Members@kalamazoolinux.org
> 
> 


-- 
Tony Gettig
Network Administrator
Kalamazoo Public Schools
http://www.kalamazoopublicschools.com