Re: Xmms FreeBSD and buzzing or skipping sound [SOLVED] - sorta

2005-01-26 Thread Derek
Nikolas Britton wrote:
#man sound
Ouch.  Hurts to be on the receiving end of one of these.  Don't get me
wrong, I totally appreciate it.  Just wish I woulda went that avenue first.
My /boot/loader.conf:
hw.snd.targetirqrate=48
hint.pcm.0.buffersize="8192"
Well after tinkering for a few hours with different combinations of
targetirqrate, and buffersize, it turns out I didn't need to modify
targetirqrate at all, and I needed to set buffersize to 64k.
My working /boot/loader.conf looks like this (for sound stuff):
sound_load="YES"
snd_emu10k1_load="YES"
hint.pcm.0.buffersize="65536"
This seems to eliminate the problem of the sound skipping.
I used 'unzip jdk-1_5_0-src-scsl.zip' to produce the skipping/jitter
effect reliably.  I also re-tarred the extracted files using 'tar zcvf 
new.tar.gz *', and when I extracted using 'tar zxvf new.tar.gz' I had 
the same difficulties.

 Having said all that 
I think that there is something bigger at work here though, because when
I'm running that command, I've noticed it's not just the sound that is
choppy, but it seems interactivity (in X) goes down all together, even 
with just the default loader.conf.  The mouse skips, the frame rate on 
xmms' graphical eq goes down, moving windows around is extremely laggy. 
Interactivity comes in waves during the unzip process.

You would think with the 4.4BSD scheduler, and a SMP system, the machine
would still be fairly interactive.  I've got no fancy tweaks to the 
kernel just plain ol' KERNCONF=SMP...

I wrote a script that created a bunch of random-sized, random-data 
files, and tried un-tarring them, but it didn't seem to exercise the 
same gears that un-(tarr|zipp)ing jdk does (lots of highly compressable 
small files in a complex directory structure).  I would be interested if 
others wanted to share their results, although I think a new thread name 
is in order.

Thanks for everyone's time,
Derek
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Xmms FreeBSD and buzzing or skipping sound

2005-01-26 Thread Nikolas Britton
Derek wrote:
Collin McClendon wrote:
I've noticed for quite some time (at least on 5.x even before 
-CURRENT) that if I'm unzipping or tarring a file that it is enough 
to make xmms play mp3s with intermittent buzzing. I have a fairly 
fast machine, dual athlon 1.53 Ghz with 1 GB of ram and a fully scsi 
setup, 4 10K maxtors in a Raid 0 stripe set.

Did you ever find a solution to this Collin?
I've got a 5.3-STABLE SMP machine, with a promise RAID controller,
RAID1, with snd_emu10k1.ko, and I get the same results...  Re-nicing
xmms doesn't help either...
Cheers,
Derek
I noticed that no one has suggested this thus far so...
#sysctl hw.snd
#man sound
Runtime Configuration
The following sysctl(8) variables are available:
  hw.snd.pcm%d.buffersize Configure the amount of DMA 
bufferspace
  available for a device.

  hw.snd.targetirqrateSet the default block size such that
  continuous playback will achieve this
  IRQ rate.  This value can be tuned to
  improve application performance.
  Increase this value when the 
sound lags
  and decrease it if sound stutters or
  breaks up.

My /boot/loader.conf:
hw.snd.targetirqrate=48
hint.pcm.0.buffersize="8192"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Xmms FreeBSD and buzzing or skipping sound

2005-01-25 Thread Jon Drews
On Thu, 20 Jan 2005 20:57:12 -0500, Derek <[EMAIL PROTECTED]> wrote:
> I've got a 5.3-STABLE SMP machine, with a promise RAID controller,
> RAID1, with snd_emu10k1.ko, and I get the same results...  Re-nicing
> xmms doesn't help either...

Derek:

You may want to up the buffering. See
http://www.screamingelectron.org/forum/archive/index.php/t-1434.html

EXCERPT:
Umm I've had this problem, back when I used Red Hat, and you probably
want to up your audio buffers under
xmms(Options->Configure->Buffering).

I had this problem on an older computer, running NetBSD 1.6.2.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Xmms FreeBSD and buzzing or skipping sound

2005-01-25 Thread Jason Henson
and On 01/25/05 16:01:14, Derek wrote:,
Jason Henson wrote:
Something like hw.acpi.pci.link.0.6.0.irq=16
I used:
hw.acpi.pci.link.0.11.0.irq=9
hw.acpi.pci.link.0.11.1.irq=9
In /boot/loader.conf, and I get a panic right at boot...  If I unset  
them using loader, system boots fine.  I also tried using irq 20,  
same thing.

I never had a panic from using these?
Maybe use irqs 19 and 24, or move the usb controler.  I don't know, but  
you may only be able to remap to irqs higher that 14 because those are  
enabled with acpi.  1 - 14 are standard hardware irqs and don't need  
acpi.  Just a thought.


#irq pcm in /boot/loader.conf
I don't know what this statement means... I tried looking for more  
documentation about it.

Just something to remind me what I did.

Maybe you could also try changing the pci clock, by =20
this I mean the number of tics or cycles a device can control the  
bus.  =20
I have mine set to 96.
Is this a function of the BIOS, or the O/S?  If its in FreeBSD, where  
can I find more information about this?

It's in the bios.  Also checkout man acpi, man acpidump, and the acpi  
page in the handook.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Xmms FreeBSD and buzzing or skipping sound

2005-01-25 Thread Derek
Attached are some files that may be useful.  The systat-vmstat is 
"systat -vmstat" command when I'm untarring a file, and xmms is buzzing 
or skipping.

Cheers,
Derek
Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.3-STABLE #2: Sun Jan 23 09:13:41 EST 2005
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP
ACPI APIC Table: 
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) III CPU family  1133MHz (1132.96-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x6b1  Stepping = 1
  
Features=0x383fbff
real memory  = 2147418112 (2047 MB)
avail memory = 2091724800 (1994 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0  irqs 0-23 on motherboard
splash_pcx: invalid PCX image
module_register_init: MOD_LOAD (splash_pcx, 0xc09de710, 0) error 19
npx0: [FAST]
npx0:  on motherboard
npx0: INT 16 interface
acpi0:  on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
cpu0:  on acpi0
cpu1:  on acpi0
acpi_button0:  on acpi0
pcib0:  port 
0x6000-0x607f,0x5000-0x500f,0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff on acpi0
pci0:  on pcib0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
nvidia0:  mem 
0xf000-0xf007,0xe800-0xefff,0xf800-0xf8ff irq 16 at 
device 0.0 on pci1
nvidia0: [GIANT-LOCKED]
isab0:  at device 7.0 on pci0
isa0:  on isab0
atapci0:  port 
0xc000-0xc00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
uhci0:  port 0xc400-0xc41f irq 5 at device 7.2 on 
pci0
uhci0: [GIANT-LOCKED]
usb0:  on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ulpt0: Hewlett-Packard hp color LaserJet 2550 series, rev 2.00/1.00, addr 2, 
iclass 7/1
ulpt0: using bi-directional mode
uhci1:  port 0xc800-0xc81f irq 5 at device 7.3 on 
pci0
uhci1: [GIANT-LOCKED]
usb1:  on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pci0:  at device 7.4 (no driver attached)
fxp0:  port 0xcc00-0xcc3f mem 
0xfb10-0xfb11,0xfb13-0xfb130fff irq 18 at device 9.0 on pci0
miibus0:  on fxp0
inphy0:  on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:02:b3:46:7c:6e
fxp1:  port 0xd000-0xd03f mem 
0xfb00-0xfb0f,0xfb131000-0xfb131fff irq 19 at device 10.0 on pci0
miibus1:  on fxp1
inphy1:  on miibus1
inphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1: Ethernet address: 00:02:b3:3e:32:f2
pcm0:  port 0xd400-0xd41f irq 16 at device 11.0 on pci0
pcm0: 
atapci1:  port 
0xec00-0xec0f,0xe800-0xe803,0xe400-0xe407,0xe000-0xe003,0xdc00-0xdc07 mem 
0xfb12-0xfb12 irq 17 at device 12.0 on pci0
ata2: channel #0 on atapci1
ata3: channel #1 on atapci1
fdc0:  port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0:  port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0:  on ppc0
lpt0:  on ppbus0
lpt0: Interrupt-driven port
ppi0:  on ppbus0
plip0:  on ppbus0
atkbdc0:  port 0x64,0x60 irq 1 on acpi0
atkbd0:  irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0:  irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model MouseMan+, device ID 0
orm0:  at iomem 
0xd-0xd97ff,0xce000-0xcf7ff,0xcc000-0xcd7ff on isa0
pmtimer0 on isa0
sc0:  at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
Timecounters tick every 10.000 msec
acd0: CDROM  at ata0-master UDMA33
acd1: DVDR  at ata1-master UDMA33
ad4: 114473MB  [232581/16/63] at ata2-master UDMA100
ad6: 114473MB  [232581/16/63] at ata3-master UDMA100
ar0: 114473MB  [14593/255/63] status: READY subdisks:
 disk0 READY on ad6 at ata3-master
 disk1 READY on ad4 at ata2-master
SMP: AP CPU #1 Launched!
Mounting root from ufs:/dev/ar0s3a
Id Refs AddressSize Name
 1   11 0xc040 5ddfbc   kernel
 42 0xc0a18000 1c180linux.ko
 52 0xc0a35000 1d4fcsound.ko
 61 0xc0a53000 7494 snd_emu10k1.ko
 71 0xc0a5b000 4ad9c8   nvidia.ko
 8   14 0xc0f09000 54974acpi.ko
 91 0xc3d48000 9000 ntfs.ko
[EMAIL PROTECTED]:0:0:  class=0x06 card=0x chip=0x06911106 rev=0xc4 
hdr=0x00
vendor   = 'VIA Technologies Inc'
device   = 'VT82C691/693A/694X Apollo Pro/133/133A System Controller'
class= bridge
subclass = HOST-PCI
[EMAIL PROTECTED]:1:0:  class=0x060400 card=0x0080 c

Re: Xmms FreeBSD and buzzing or skipping sound

2005-01-25 Thread Derek
Jason Henson wrote:
Something like hw.acpi.pci.link.0.6.0.irq=16
I used:
hw.acpi.pci.link.0.11.0.irq=9
hw.acpi.pci.link.0.11.1.irq=9
In /boot/loader.conf, and I get a panic right at boot...  If I unset 
them using loader, system boots fine.  I also tried using irq 20, same 
thing.

#irq pcm in /boot/loader.conf
I don't know what this statement means... I tried looking for more 
documentation about it.

Maybe you could also try changing the pci clock, by =20
this I mean the number of tics or cycles a device can control the bus.  =20
I have mine set to 96.  
Is this a function of the BIOS, or the O/S?  If its in FreeBSD, where 
can I find more information about this?

Cheers,
Derek
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Xmms FreeBSD and buzzing or skipping sound

2005-01-21 Thread Derek
Jason Henson wrote:
Something like hw.acpi.pci.link.0.6.0.irq=16   #irq pcm in /
boot/loader.conf.  Maybe you could also try changing the pci clock, by
this I mean the number of tics or cycles a device can control the bus.
I have mine set to 96.  A number between 96-128 usaully increases
performance of some pci devices on bench marks I have.  You should
search for some of them to see if there is a good setting for your pc.
Thanks for your response Jason.  I won't be in a position to test the 
machine until tomorrow, but I'll follow up then.

Cheers,
Derek
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Xmms FreeBSD and buzzing or skipping sound

2005-01-21 Thread Jason Henson
On 01/21/05 07:29:43, Grégory Nou wrote:
Jason Henson a écrit :
On 01/20/05 20:57:12, Derek wrote:
Collin McClendon wrote:
I've noticed for quite some time (at least on 5.x even before -  
CURRENT) that if I'm unzipping or tarring a file that it is enough   
to make xmms play mp3s with intermittent buzzing. I have a fairly   
fast machine, dual athlon 1.53 Ghz with 1 GB of ram and a fully  
scsi  setup, 4 10K maxtors in a Raid 0 stripe set.

Did you ever find a solution to this Collin?
I've got a 5.3-STABLE SMP machine, with a promise RAID controller,
RAID1, with snd_emu10k1.ko, and I get the same results...  Re- 
nicing
xmms doesn't help either...

Cheers,
Derek
Could this be a problem of resource hoging on the pci bus?  Are the   
devices on different irqs?

I just tried it without problem, but it was a small file.  I have a   
single 2ghz athlon with builtin audio and a single ide drive.
I have this problem too.
It happens with any mp3 player or listening to an icecast stream, but  
not with mplayer when looking at a divx. I looked at the irqs, and  
have uhci2 and my pcm0 on the same irq. However, this problems occurs  
only after 3 or 4 hours of uptime, generally.
Should I try to change my irqs ? and if positive, how do I do this ?  
in the bios ? (note : I have also uhci1 on the same irq than vr0, and  
it makes my computer crash at the end of the shutdown, when using the  
GDM to shutdown)

Something like hw.acpi.pci.link.0.6.0.irq=16   #irq pcm in / 
boot/loader.conf.  Maybe you could also try changing the pci clock, by  
this I mean the number of tics or cycles a device can control the bus.   
I have mine set to 96.  A number between 96-128 usaully increases  
performance of some pci devices on bench marks I have.  You should  
search for some of them to see if there is a good setting for your pc.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Xmms FreeBSD and buzzing or skipping sound

2005-01-21 Thread Grégory Nou
Jason Henson a écrit :
On 01/20/05 20:57:12, Derek wrote:
Collin McClendon wrote:
I've noticed for quite some time (at least on 5.x even before - 
CURRENT) that if I'm unzipping or tarring a file that it is enough  
to make xmms play mp3s with intermittent buzzing. I have a fairly  
fast machine, dual athlon 1.53 Ghz with 1 GB of ram and a fully 
scsi  setup, 4 10K maxtors in a Raid 0 stripe set.

Did you ever find a solution to this Collin?
I've got a 5.3-STABLE SMP machine, with a promise RAID controller,
RAID1, with snd_emu10k1.ko, and I get the same results...  Re-nicing
xmms doesn't help either...
Cheers,
Derek
Could this be a problem of resource hoging on the pci bus?  Are the  
devices on different irqs?

I just tried it without problem, but it was a small file.  I have a  
single 2ghz athlon with builtin audio and a single ide drive.
I have this problem too.
It happens with any mp3 player or listening to an icecast stream, but 
not with mplayer when looking at a divx. I looked at the irqs, and have 
uhci2 and my pcm0 on the same irq. However, this problems occurs only 
after 3 or 4 hours of uptime, generally.
Should I try to change my irqs ? and if positive, how do I do this ? in 
the bios ? (note : I have also uhci1 on the same irq than vr0, and it 
makes my computer crash at the end of the shutdown, when using the GDM 
to shutdown)


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Xmms FreeBSD and buzzing or skipping sound

2005-01-20 Thread Jason Henson
On 01/20/05 20:57:12, Derek wrote:
Collin McClendon wrote:
I've noticed for quite some time (at least on 5.x even before - 
CURRENT) that if I'm unzipping or tarring a file that it is enough  
to make xmms play mp3s with intermittent buzzing. I have a fairly  
fast machine, dual athlon 1.53 Ghz with 1 GB of ram and a fully scsi  
setup, 4 10K maxtors in a Raid 0 stripe set.
Did you ever find a solution to this Collin?
I've got a 5.3-STABLE SMP machine, with a promise RAID controller,
RAID1, with snd_emu10k1.ko, and I get the same results...  Re-nicing
xmms doesn't help either...
Cheers,
Derek
Could this be a problem of resource hoging on the pci bus?  Are the  
devices on different irqs?

I just tried it without problem, but it was a small file.  I have a  
single 2ghz athlon with builtin audio and a single ide drive.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Xmms FreeBSD and buzzing or skipping sound

2005-01-20 Thread Derek
Collin McClendon wrote:
I've noticed for 
quite some time (at least on 5.x even before -CURRENT) that if I'm 
unzipping or tarring a file that it is enough to make xmms play mp3s 
with intermittent buzzing. I have a fairly fast machine, dual athlon 
1.53 Ghz with 1 GB of ram and a fully scsi setup, 4 10K maxtors in a 
Raid 0 stripe set.
Did you ever find a solution to this Collin?
I've got a 5.3-STABLE SMP machine, with a promise RAID controller,
RAID1, with snd_emu10k1.ko, and I get the same results...  Re-nicing
xmms doesn't help either...
Cheers,
Derek
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"