Re: Music + NFS == skipping?

2010-07-10 Thread Nick Holland
On 07/10/10 01:04, Corey J. Bukolt wrote:
 On Fri, 2010-07-09 at 16:01 +0200, Jan Stary wrote:
 On Jul 09 04:56:38, Corey J. Bukolt wrote:
  On Mon, 2010-07-05 at 08:28 +0200, Alexandre Ratchov wrote:
   On Sat, Jul 03, 2010 at 02:53:01AM -0400, Corey J. Bukolt wrote:
Hi list,

So far I have been able to get OpenBSD running nicely as my primary 
desktop
with the only hitch being my NFS mounted music skips occasionally.  I'm
pretty sure it's not the NFS server since my Linux laptop has the same 
setup
and doesn't skip.  I'm using mpd to play the music, with a gigbit 
connection
leading to a dedicated file server which has practically no load.  
Already
gone over mount_nfs(8) and tried a whole bunch of different options 
with no 
luck. 
 
 What NFS server is it?
 How exactly is the NFS share exported on the server side?
 How exactly is the share mounted on your clients?
 
 The NFS server is FreeNAS (FreeBSD 7.2).
 
 Exports line:
 /mnt/tank/main/home/corey/media/music -alldirs,ro -maproot=root -network 
 192.168.0.250 -mask 255.255.255.255
 
 Linux client fstab entry:
 fileserver:/mnt/tank/main/home/corey/media/music /mnt/music nfs user 0 0
 
 OpenBSD client fstab entry:
 fileserver:/mnt/tank/main/home/corey/media/music /mnt/music nfs 
 ro,noexec,nodev,nosuid 0 0
 
 The OpenBSD client is 4.7-stable AMD64 GENERIC.MP

You have some local debugging to do.
I've run music over NFS for close to ten years, with servers (all
OpenBSD)  ranging from 133MHz P-I to 1GHz P3, workstations running from
266MHz PIIs to 2.3GHz AMD64x3 processors.  Never had gigabit links.
Early on, it was probably a 100mbps hub, maybe even 10mbps (can't
remember when I installed my 100mbps infrastructure, or when I went to
switches, I do remember ripping CDs directly on my 166MHz server because
it was faster than alternatives).  Audio devices ranged from old ISA
devices to quite modern hardware.

No NFS-related problems here.  Therefore, I conclude that it isn't an
intrinsic OpenBSD problem (and I'm pretty sure you and I aren't the only
ones running mp3 files over NFS).  There's either something about your
PARTICULAR system (which you STILL refuse to describe, please go smack
your hand with a ruler), or something wrong with your infrastructure.

Go get yourself an old three-digit clock speed machine with 128m of RAM
or more, put OpenBSD on it, put some mp3 files on it, set up NFS, put it
on a different switch and different wires than you are currently using
and see if it works.  If so, look over everything else.  If not, provide
a useful problem report (which is NOT what you have been doing).

Nick.

Hint, this works:
OpenBSD 4.7-current (GENERIC.MP) #94: Wed Jul  7 01:22:26 MDT 2010
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

(note that I didn't stop here...)

real mem = 3486384128 (3324MB)
avail mem = 3379736576 (3223MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0100 (46 entries)
bios0: vendor Award Software International, Inc. version FB date
03/03/2009
bios0: Gigabyte Technology Co., Ltd. GA-MA74GM-S2
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP SSDT HPET MCFG APIC
acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3)
USB5(S3) USB6(S3) SBAZ(S4) P2P_(S5) PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4)
PCE6(S4) PCE7(S4) PCE8(S4) PS2M(S5) PS2K(S5) PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Phenom(tm) 8650 Triple-Core Processor, 2316.66 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully
associative
cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully
associative
cpu0: apic clock running at 201MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Phenom(tm) 8650 Triple-Core Processor, 2316.33 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully
associative
cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully
associative
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD Phenom(tm) 8650 Triple-Core Processor, 2316.33 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu2: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu2: ITLB 32 4KB entries fully associative, 16 

Re: Music + NFS == skipping?

2010-07-10 Thread Jan Stary
On Jul 10 01:04:35, Corey J. Bukolt wrote:
 On Fri, 2010-07-09 at 16:01 +0200, Jan Stary wrote:
 On Jul 09 04:56:38, Corey J. Bukolt wrote:
   On Mon, 2010-07-05 at 08:28 +0200, Alexandre Ratchov wrote:
On Sat, Jul 03, 2010 at 02:53:01AM -0400, Corey J. Bukolt wrote:
 Hi list,
 
 So far I have been able to get OpenBSD running nicely as my primary 
 desktop
 with the only hitch being my NFS mounted music skips occasionally.  
 I'm
 pretty sure it's not the NFS server since my Linux laptop has the 
 same setup
 and doesn't skip.  I'm using mpd to play the music, with a gigbit 
 connection
 leading to a dedicated file server which has practically no load.  
 Already
 gone over mount_nfs(8) and tried a whole bunch of different options 
 with no 
 luck. 
  
  What NFS server is it?
  How exactly is the NFS share exported on the server side?
  How exactly is the share mounted on your clients?
 
 The NFS server is FreeNAS (FreeBSD 7.2).
 
 Exports line:
 /mnt/tank/main/home/corey/media/music -alldirs,ro -maproot=root -network 
 192.168.0.250 -mask 255.255.255.255
 
 Linux client fstab entry:
 fileserver:/mnt/tank/main/home/corey/media/music /mnt/music nfs user 0 0
 
 OpenBSD client fstab entry:
 fileserver:/mnt/tank/main/home/corey/media/music /mnt/music nfs 
 ro,noexec,nodev,nosuid 0 0

The output of 'mount -v' would be more useful.
Have you tried using noatime or the -r option? Why not?

 The OpenBSD client is 4.7-stable AMD64 GENERIC.MP



Re: Music + NFS == skipping?

2010-07-10 Thread Corey J. Bukolt
On Sat, 2010-07-10 at 08:45 -0400, Nick Holland wrote:
On 07/10/10 01:04, Corey J. Bukolt wrote:
  On Fri, 2010-07-09 at 16:01 +0200, Jan Stary wrote:
  On Jul 09 04:56:38, Corey J. Bukolt wrote:
   On Mon, 2010-07-05 at 08:28 +0200, Alexandre Ratchov wrote:
On Sat, Jul 03, 2010 at 02:53:01AM -0400, Corey J. Bukolt wrote:
 Hi list,
 
 So far I have been able to get OpenBSD running nicely as my primary 
 desktop
 with the only hitch being my NFS mounted music skips occasionally.  
 I'm
 pretty sure it's not the NFS server since my Linux laptop has the 
 same setup
 and doesn't skip.  I'm using mpd to play the music, with a gigbit 
 connection
 leading to a dedicated file server which has practically no load.  
 Already
 gone over mount_nfs(8) and tried a whole bunch of different options 
 with no 
 luck. 
  
  What NFS server is it?
  How exactly is the NFS share exported on the server side?
  How exactly is the share mounted on your clients?
  
  The NFS server is FreeNAS (FreeBSD 7.2).
  
  Exports line:
  /mnt/tank/main/home/corey/media/music -alldirs,ro -maproot=root -network 
  192.168.0.250 -mask 255.255.255.255
  
  Linux client fstab entry:
  fileserver:/mnt/tank/main/home/corey/media/music /mnt/music nfs user 0 0
  
  OpenBSD client fstab entry:
  fileserver:/mnt/tank/main/home/corey/media/music /mnt/music nfs 
  ro,noexec,nodev,nosuid 0 0
  
  The OpenBSD client is 4.7-stable AMD64 GENERIC.MP
 
 You have some local debugging to do.
 I've run music over NFS for close to ten years, with servers (all
 OpenBSD)  ranging from 133MHz P-I to 1GHz P3, workstations running from
 266MHz PIIs to 2.3GHz AMD64x3 processors.  Never had gigabit links.
 Early on, it was probably a 100mbps hub, maybe even 10mbps (can't
 remember when I installed my 100mbps infrastructure, or when I went to
 switches, I do remember ripping CDs directly on my 166MHz server because
 it was faster than alternatives).  Audio devices ranged from old ISA
 devices to quite modern hardware.
 
 No NFS-related problems here.  Therefore, I conclude that it isn't an
 intrinsic OpenBSD problem (and I'm pretty sure you and I aren't the only
 ones running mp3 files over NFS).  There's either something about your
 PARTICULAR system (which you STILL refuse to describe, please go smack
 your hand with a ruler), or something wrong with your infrastructure.


Hand has been smacked, dmesg added.
 
 Go get yourself an old three-digit clock speed machine with 128m of RAM
 or more, put OpenBSD on it, put some mp3 files on it, set up NFS, put it
 on a different switch and different wires than you are currently using
 and see if it works.  If so, look over everything else.  If not, provide
 a useful problem report (which is NOT what you have been doing).

Will do, thanks for your help.

OpenBSD 4.7 (GENERIC.MP) #0: Sat May 22 05:06:02 CDT 2010
co...@salvation.bukolt.lan:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3486384128 (3324MB)
avail mem = 3386621952 (3229MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0100 (56 entries)
bios0: vendor Award Software International, Inc. version F3 date 09/16/2009
bios0: Gigabyte Technology Co., Ltd. GA-MA785GMT-UD2H
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP SSDT HPET MCFG TAMG APIC
acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5(S3) 
USB6(S3) SBAZ(S4) P2P_(S5) PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) 
PCE7(S4) PCE9(S4) PCEA(S4) PCEB(S4) PCEC(S4) PS2M(S5) PS2K(S5) PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Phenom(tm) II X4 B55 Processor, 3214.97 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Phenom(tm) II X4 B55 Processor, 3214.55 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD Phenom(tm) II X4 B55 Processor, 3214.55 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu2: 64KB 64b/line 

Re: Music + NFS == skipping?

2010-07-10 Thread Corey J. Bukolt
On Sat, 2010-07-10 at 20:54 +0200, Jan Stary wrote:
On Jul 10 01:04:35, Corey J. Bukolt wrote:
  On Fri, 2010-07-09 at 16:01 +0200, Jan Stary wrote:
  On Jul 09 04:56:38, Corey J. Bukolt wrote:
On Mon, 2010-07-05 at 08:28 +0200, Alexandre Ratchov wrote:
 On Sat, Jul 03, 2010 at 02:53:01AM -0400, Corey J. Bukolt wrote:
  Hi list,
  
  So far I have been able to get OpenBSD running nicely as my primary 
  desktop
  with the only hitch being my NFS mounted music skips occasionally.  
  I'm
  pretty sure it's not the NFS server since my Linux laptop has the 
  same setup
  and doesn't skip.  I'm using mpd to play the music, with a gigbit 
  connection
  leading to a dedicated file server which has practically no load.  
  Already
  gone over mount_nfs(8) and tried a whole bunch of different options 
  with no 
  luck. 
   
   What NFS server is it?
   How exactly is the NFS share exported on the server side?
   How exactly is the share mounted on your clients?
  
  The NFS server is FreeNAS (FreeBSD 7.2).
  
  Exports line:
  /mnt/tank/main/home/corey/media/music -alldirs,ro -maproot=root -network 
  192.168.0.250 -mask 255.255.255.255
  
  Linux client fstab entry:
  fileserver:/mnt/tank/main/home/corey/media/music /mnt/music nfs user 0 0
  
  OpenBSD client fstab entry:
  fileserver:/mnt/tank/main/home/corey/media/music /mnt/music nfs 
  ro,noexec,nodev,nosuid 0 0
 
 The output of 'mount -v' would be more useful.

fileserver:/mnt/tank/main/home/corey/media/music on /mnt/music type nfs (nodev,
noexec, nosuid, read-only, ctime=Sat Jul 10 18:43:56 2010, v3, udp, hard,
wsize=8192, rsize=8192, rdirsize=8192, timeo=100, retrans=101,
maxgrouplist=16, readahead=1, acregmin=5, acregmax=60, acdirmin=5,
acdirmax=60)

 Have you tried using noatime or the -r option? Why not?

Yes, tried both, neither help.



Re: Music + NFS == skipping?

2010-07-09 Thread Corey J. Bukolt
On Mon, 2010-07-05 at 08:28 +0200, Alexandre Ratchov wrote:
 On Sat, Jul 03, 2010 at 02:53:01AM -0400, Corey J. Bukolt wrote:
  Hi list,
  
  So far I have been able to get OpenBSD running nicely as my primary desktop
  with the only hitch being my NFS mounted music skips occasionally.  I'm
  pretty sure it's not the NFS server since my Linux laptop has the same setup
  and doesn't skip.  I'm using mpd to play the music, with a gigbit connection
  leading to a dedicated file server which has practically no load.  Already
  gone over mount_nfs(8) and tried a whole bunch of different options with no 
  luck. 
  
  One point of interest is that it seems the longer I keep the share mounted,
  the worse it gets starting with mildy iritating (0-1 skips per song) to very
  annoying (4 or more skips per song) and after remounting it resets for about
  an hour.
  
  The obvious solution would be to just copy my music locally, but I would
  very much rather not.
  
 
 I use NFS for music since years it always worked, but the
 server is running OpenBSD in my case.
 
 I guess your NFS server makes short pauses that cause the
 player to not produce audio samples fast enough.

If this is it true, how could my Linux clients be unaffected? 

 
 could you try using mpg321 and/or ogg123 on NFS
 mounted files to see if skips occur? If so, does using
 aucat in server mode help ?
 

Using both mpg321 and ogg123 still result in skipping.  I have always
used aucat in server mode.  Using mpg321/ogg123/mpd without aucat
results in less skipping, but still enough to be pretty annoying.


(Apologies for taking so long to reply, real world distractions along
with a shitty ISP have made checking my email impossible.)

--
Corey



Re: Music + NFS == skipping?

2010-07-09 Thread Jan Stary
On Jul 09 04:56:38, Corey J. Bukolt wrote:
 On Mon, 2010-07-05 at 08:28 +0200, Alexandre Ratchov wrote:
  On Sat, Jul 03, 2010 at 02:53:01AM -0400, Corey J. Bukolt wrote:
   Hi list,
   
   So far I have been able to get OpenBSD running nicely as my primary 
   desktop
   with the only hitch being my NFS mounted music skips occasionally.  I'm
   pretty sure it's not the NFS server since my Linux laptop has the same 
   setup
   and doesn't skip.  I'm using mpd to play the music, with a gigbit 
   connection
   leading to a dedicated file server which has practically no load.  Already
   gone over mount_nfs(8) and tried a whole bunch of different options with 
   no 
   luck. 

What NFS server is it?
How exactly is the NFS share exported on the server side?
How exactly is the share mounted on your clients?



Re: Music + NFS == skipping?

2010-07-09 Thread Theo de Raadt
  I guess your NFS server makes short pauses that cause the
  player to not produce audio samples fast enough.
 
 If this is it true, how could my Linux clients be unaffected? 

Why don't you figure that out.



Re: Music + NFS == skipping?

2010-07-09 Thread Corey J. Bukolt
  I guess your NFS server makes short pauses that cause the
   player to not produce audio samples fast enough.
  
  If this is it true, how could my Linux clients be unaffected? 
 
 Why don't you figure that out.
 

Indeed, it feels like I'm missing something obvious



Re: Music + NFS == skipping?

2010-07-09 Thread Corey J. Bukolt
On Fri, 2010-07-09 at 16:01 +0200, Jan Stary wrote:
On Jul 09 04:56:38, Corey J. Bukolt wrote:
  On Mon, 2010-07-05 at 08:28 +0200, Alexandre Ratchov wrote:
   On Sat, Jul 03, 2010 at 02:53:01AM -0400, Corey J. Bukolt wrote:
Hi list,

So far I have been able to get OpenBSD running nicely as my primary 
desktop
with the only hitch being my NFS mounted music skips occasionally.  I'm
pretty sure it's not the NFS server since my Linux laptop has the same 
setup
and doesn't skip.  I'm using mpd to play the music, with a gigbit 
connection
leading to a dedicated file server which has practically no load.  
Already
gone over mount_nfs(8) and tried a whole bunch of different options 
with no 
luck. 
 
 What NFS server is it?
 How exactly is the NFS share exported on the server side?
 How exactly is the share mounted on your clients?

The NFS server is FreeNAS (FreeBSD 7.2).

Exports line:
/mnt/tank/main/home/corey/media/music -alldirs,ro -maproot=root -network 
192.168.0.250 -mask 255.255.255.255

Linux client fstab entry:
fileserver:/mnt/tank/main/home/corey/media/music /mnt/music nfs user 0 0

OpenBSD client fstab entry:
fileserver:/mnt/tank/main/home/corey/media/music /mnt/music nfs 
ro,noexec,nodev,nosuid 0 0

The OpenBSD client is 4.7-stable AMD64 GENERIC.MP



Re: Music + NFS == skipping?

2010-07-05 Thread Alexandre Ratchov
On Sat, Jul 03, 2010 at 02:53:01AM -0400, Corey J. Bukolt wrote:
 Hi list,
 
 So far I have been able to get OpenBSD running nicely as my primary desktop
 with the only hitch being my NFS mounted music skips occasionally.  I'm
 pretty sure it's not the NFS server since my Linux laptop has the same setup
 and doesn't skip.  I'm using mpd to play the music, with a gigbit connection
 leading to a dedicated file server which has practically no load.  Already
 gone over mount_nfs(8) and tried a whole bunch of different options with no 
 luck. 
 
 One point of interest is that it seems the longer I keep the share mounted,
 the worse it gets starting with mildy iritating (0-1 skips per song) to very
 annoying (4 or more skips per song) and after remounting it resets for about
 an hour.
 
 The obvious solution would be to just copy my music locally, but I would
 very much rather not.
 

I use NFS for music since years it always worked, but the
server is running OpenBSD in my case.

I guess your NFS server makes short pauses that cause the
player to not produce audio samples fast enough.

could you try using mpg321 and/or ogg123 on NFS
mounted files to see if skips occur? If so, does using
aucat in server mode help ?

-- Alexandre



Music + NFS == skipping?

2010-07-03 Thread Corey J. Bukolt
Hi list,

So far I have been able to get OpenBSD running nicely as my primary desktop
with the only hitch being my NFS mounted music skips occasionally.  I'm
pretty sure it's not the NFS server since my Linux laptop has the same setup
and doesn't skip.  I'm using mpd to play the music, with a gigbit connection
leading to a dedicated file server which has practically no load.  Already
gone over mount_nfs(8) and tried a whole bunch of different options with no 
luck. 

One point of interest is that it seems the longer I keep the share mounted,
the worse it gets starting with mildy iritating (0-1 skips per song) to very
annoying (4 or more skips per song) and after remounting it resets for about
an hour.

The obvious solution would be to just copy my music locally, but I would
very much rather not.

Any help would be apprecated.

4.7 AMD64 GENERIC.MP 
Fileserver is FreeNAS

Corey

--
Please don't CC: me, I'm subscribed. Thanks!