Disk Activity Causes Video Stuttering

2006-06-25 Thread Simon Morgan
Hi,

I'm having trouble with mplayer that seems to be highlighting a bug or general
inefficiency in the ata driver when used with the VIA VT8235 chipset used in
the ASUS A7V8X motherboard.

The problem is that whenever a video is being played and there is any
reasonable amount of disk activity (e.g dd if=/dev/urandom of=test), the video
skips and the mplayer status shows that it's had to drop frames to keep the
video and audio in sync.

I have tested using the same video under NetBSD 3.0 and Linux 2.6.{16|17} and
neither of them exhibit this problem. This also rules out the possibility of it
being faulty hardware.

To be on the safe side I have tried 2 different chipsets of both graphics card
and sound card and neither makes any difference.

I noticed that under Linux hdparm shows it to be using udma4 by default and
udma5 is not even listed as being supported.

Linux:

# hdparm -I /dev/hda

/dev/hdc:

ATAPI CD-ROM, with removable media
Model Number:   PIONEER DVD-RW  DVR-108
Serial Number:  DJDL021894WL
Firmware Revision:  1.20
Standards:
Likely used CD-ROM ATAPI-1
Configuration:
DRQ response: 50us.
Packet size: 12 bytes
Capabilities:
LBA, IORDY(can be disabled)
Buffer size: 64.0kB
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 *udma4
 Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
 Cycle time: no flow control=240ns  IORDY flow control=120ns
Commands/features:
Enabled Supported:
   *DEVICE RESET cmd
   *PACKET command feature set
   *Power Management feature set
HW reset results:
CBLID- above Vih
Device num = 0 determined by CSEL

FreeBSD:

# atacontrol list
ATA channel 0:
Master:  ad0 IC35L060AVVA07-0/VA3OA52A ATA/ATAPI revision 5
Slave:   no device present
ATA channel 1:
Master: acd0 PIONEER DVD-RW DVR-108/1.20 ATA/ATAPI revision 5
Slave:   no device present
# atacontrol mode ad0
current mode = UDMA100

I tried changing the mode to udma4 and also to pio but unfortunately it made no
difference.

If anybody could offer up some advice or point me in the direction of avenues to
explore I would appreciate it as I've run out of ideas.

Thanks for your time.

Copyright (c) 1992-2006 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 6.1-RELEASE #0: Sun May  7 04:32:43 UTC 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
ACPI APIC Table: ASUS   A7V8X   
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: AMD Athlon(TM) XP 2000+ (1658.54-MHz 686-class CPU)
  Origin = AuthenticAMD  Id = 0x662  Stepping = 2
  
Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
  AMD Features=0xc0400800SYSCALL,MMX+,3DNow+,3DNow
real memory  = 1073725440 (1023 MB)
avail memory = 1041784832 (993 MB)
ioapic0: Changing APIC ID to 2
ioapic0 Version 0.3 irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: ASUS A7V8X on motherboard
acpi0: Power Button (fixed)
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 32-bit timer at 3.579545MHz port 0xe408-0xe40b on acpi0
cpu0: ACPI CPU on acpi0
acpi_button0: Power Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
agp0: VIA 8377 (Apollo KT400/KT400A/KT600) host to PCI bridge mem 
0xf000-0xf7ff at device 0.0 on pci0
pcib1: ACPI PCI-PCI bridge at device 1.0 on pci0
pci1: ACPI PCI bus on pcib1
pci1: display, VGA at device 0.0 (no driver attached)
pci1: display at device 0.1 (no driver attached)
bfe0: Broadcom BCM4401 Fast Ethernet mem 0xd600-0xd6001fff irq 18 at 
device 9.0 on pci0
miibus0: MII bus on bfe0
bmtphy0: BCM4401 10/100baseTX PHY on miibus0
bmtphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
bfe0: Ethernet address: 00:e0:18:a1:31:f0
ral0: Ralink Technology RT2500 mem 0xd580-0xd5801fff irq 17 at device 
14.0 on pci0
ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
ral0: Ethernet address: 00:0e:2e:5c:2d:0f
uhci0: VIA 83C572 USB controller port 0xb800-0xb81f at device 16.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: VIA 83C572 USB controller 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
uhci1: VIA 83C572 USB controller port 0xb400-0xb41f at device 16.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: VIA 83C572 USB controller 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
uhci2: VIA 83C572 USB controller port 0xb000-0xb01f at device 16.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: VIA 83C572 USB controller on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0: VIA VT6202 USB 2.0 

Re: Disk Activity Causes Video Stuttering

2006-06-25 Thread Simon Morgan
On Sun, Jun 25, 2006 at 12:00:28PM +0100, Simon Morgan wrote:
 I'm having trouble with mplayer that seems to be highlighting a bug or general
 inefficiency in the ata driver when used with the VIA VT8235 chipset used in
 the ASUS A7V8X motherboard.
 
 The problem is that whenever a video is being played and there is any
 reasonable amount of disk activity (e.g dd if=/dev/urandom of=test), the video
 skips and the mplayer status shows that it's had to drop frames to keep the
 video and audio in sync.

I've made some discoveries that discredit my previous assertion that the ata
driver is to blame. I created a memory disk using mdconfig and copied a video to
it and still got dropped frames when when performing the above command.

I had somebody who owns a different motherboard but which uses the same IDE
chipset to perform the same steps and he didn't experience any dropped frames.

-- 
Never let your schooling interfere with your education.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Stuttery Video Playback

2006-06-24 Thread Simon Morgan
Help me, Obi-Wan Kenobi. You're my only hope!

Ok, so I'm having real trouble playing videos under either FreeBSD or OpenBSD.
Playback on OpenBSD is really choppy/stuttery, FreeBSD is a lot better but still
enough to be annoying. I only have access to a FreeBSD installation right now so
I'll stick with that.

It's worth mentioning that the machine in question is more than up to the task
of playing video:

CPU: AMD Athlon(TM) XP 2000+ (1658.54-MHz 686-class CPU)
real memory  = 1073725440 (1023 MB)
avail memory = 1041784832 (993 MB)

This is backed up by the fact that I don't get this problem under Linux.

The closest I can come to a test case is running:

  dd if=/dev/urandom of=blah

while a video is playing. Under FreeBSD this causes the video to freeze for a
second and the dropped frame counter to increase by a varying number of frames.
Linux, however, just keeps ticking along nicely.

I've tried swapping the video card between an ATI 9200 and NVIDIA GeForce 4 and
swapping the sound card between a VIA VT8235 and a CMedia CMI8738 but neither
helped.

I'm pretty sure that nobody that reads this will be able to reproduce this
problem but at least it means I have a way of easily testing things if somebody
is kind enough to help me try and resolve this problem.

Thanks for your time.

-- 
One man's theology is another man's belly laugh.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cannot ssh to machine on lan when it has no internet connection

2005-08-27 Thread Simon Morgan
On 8/26/05, Adi Pircalabu [EMAIL PROTECTED] wrote:

 You could also search your /etc/hosts.allow for the following line:
 ALL : PARANOID : RFC931 20 : deny

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


Re: cannot ssh to machine on lan when it has no internet connection

2005-08-26 Thread Simon Morgan
On 8/25/05, Ben Pratt [EMAIL PROTECTED] wrote:
 I'm not sure if this will work or not but try setting up /etc/hosts to
 reflect your LAN. I had a friend who had issues when, even though he was
 connected to the Internet, he had DNS messed up on his FreeBSD system.
 I'm thinking the SSH server is trying to do some DNS lookups and if you
 set your hosts file to have the information about the client machine
 that may be resolved.

Just to let you know I tried your suggestion and unfortunately it didn't work.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


cannot ssh to machine on lan when it has no internet connection

2005-08-25 Thread Simon Morgan
When I try to SSH to a machine on my LAN when its Internet connection
is down I get the following:

OpenSSH_3.9p1 Debian-1ubuntu2, OpenSSL 0.9.7e 25 Oct 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
snip
debug1: Next authentication method: keyboard-interactive
a couple of minutes of nothing
Connection closed by 82.71.120.78

In the remote machines /var/log/auth.log I see:

Aug 25 10:37:10 bollo sshd[465]: fatal: Timeout before authentication
for 82.71.120.74

The resolv.conf on the remote machine has a single entry which points
to the machine itself which is running dnscache.

Any ideas? Could this be construed as being a bug?

Please CC me on any replies.

Thanks.

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


Re: cannot ssh to machine on lan when it has no internet connection

2005-08-25 Thread Simon Morgan
On 8/25/05, Ben Pratt [EMAIL PROTECTED] wrote:
 I'm not sure if this will work or not but try setting up /etc/hosts to
 reflect your LAN. I had a friend who had issues when, even though he was
 connected to the Internet, he had DNS messed up on his FreeBSD system.
 I'm thinking the SSH server is trying to do some DNS lookups and if you
 set your hosts file to have the information about the client machine
 that may be resolved.

Thanks for the reply. That would probably fix it but ideally I'd like to fix the
root of the problem. Not being able to resolve the IP of a client really
shouldn't stop them from connecting using SSH and if there's a bug
in there somewhere I'd like to get it fixed so that it doesn't bite
anybody else.

I'm thinking dnscache would probably have to timeout on all the
root servers before sending a response to SSH saying it couldn't
resolve the hostname which might be the cause of the problem, but
that shouldn't affect SSH which should timeout waiting for a
response from dnscache. The authentication timeout in auth.log
appears to indicate that SSH is counting any delay in name
resolution towards that of authentication which seems to me to
be very broken behaviour considering that SSH isn't accepting
any form of authentication, at least not keyboard-interactive.

Basically I'm waiting for somebody to tell me that I've made some
stupid mistake otherwise I'll file a bug.

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


sendmail stalling during boot

2005-08-18 Thread Simon Morgan
When my system boots it freezes for an extremely long time at a certain
point in the boot process. Hitting CTRL-C at this point I'm informed
that the loading of sendmail has been cancelled which obviously indicates
that it's what is responsible.

Looking into the issue I've seen a number of people experiencing the same
problem and being told to fix their DNS setup. The machine that sendmail
is running on has an internet routable IP that resolves to a hostname:

 host 82.71.120.75
75.120.71.82.in-addr.arpa domain name pointer
82-71-120-75.dsl.in-addr.zen.co.uk.

but the hostname I have set is fake and resolves to nothing:

 hostname
naboo.localdomain
 host naboo.localdomain
Host naboo.localdomain not found: 3(NXDOMAIN)

However, it does so almost instantly and so I fail to see what is causing
sendmail to hang.

Can anybody help? I would appreciate a CC on any replies as I'm not
subscribed to the list.

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


Re: sendmail stalling during boot

2005-08-18 Thread Simon Morgan
On 8/18/05, Chuck Swiger [EMAIL PROTECTED] wrote:
 You really, really want to give your machine a real hostname, which is in the
 DNS, reverses properly, and has MX records for the domains it handles mail for
 set up, if you want to run sendmail and do mail correctly.
 
 If you are only relaying mail to another smart host which will do all of your
 relaying for you (commonly your ISP's SMTP server will do so), and you do not
 need sendmail to do DNS lookups, consider FEATURE(nocanonify).

I should have mentioned that I only want sendmail to deliver local mail. Surely
there must be a way to do this without doing all of the above?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]