Hey all, i'm trying to put some finishing tuning on a mythTV installation i've got. I've gone through a few threads here and the tuning section of the Wiki but want to get another couple pairs of eyes on this and see what i'm missing.
<br><br>Two questions I have with the stuff below is: Am I mounting NFS correctly for good performance without being too agressive with the settings?, and is my PCI Latency ok for my card vs. my network, vs. my drives?<br>
<br>System Information follows from here down.<br><br>--Douglas Wagner<br>-------------------------------------------------------------------------------------------------------<br><br>System: Shared Frontend/Backend/Database (all on one server) Fedora Core 5
<br>Storage: NAS Box (100 base T networked), 250g pata and 320g sata and part of an 80g pata. The 80 and 250 are on the built in controller, the SATA is on a Promice SATA 300 TX card, and there is one other card in there providing a raid 1 mirror to the rest of the house which isn't used by my PVR at all. The /video directory has video1 and video2 under it, all of these are NFS mounted from my NAS.
<br>MythTV: 0.20<br>Kernel: 2.6.17-1.2139<br>CPU: 2.8ghz HT Processor<br>Memory: 1G<br>Video Type: ATSC (HDTV) OTA.<br><br>So, first things first i'm running the database optimization script nightly through cron.<br><br>ALL video storage areas are NFS mounted from my NAS which is running across a 100bt line to a 100bt switch. NFS options are:
<br><br>snip from /etc/exports from the NAS System:<br>/mnt/varchive <a href="http://192.168.100.0/24(rw,async,no_root_squash)">192.168.100.0/24(rw,async,no_root_squash)</a><br>/mnt/video1
<a href="http://192.168.100.0/24(rw,async,no_root_squash)">192.168.100.0/24(rw,async,no_root_squash)</a><br>/mnt/video2 <a href="http://192.168.100.0/24(rw,async,no_root_squash)">192.168.100.0/24(rw,async,no_root_squash)
</a><br><br>snip from /etc/fstab from the mythtv box:<br>nas:/mnt/varchive /video nfs rsize=8192,wsize=8192,hard,intr,nfsvers=3,actimeo=0,bg,tcp 0 0<br>nas:/mnt/video1 /video/video1 nfs rsize=8192,wsize=8192,hard,intr,nfsvers=3,actimeo=0,bg,tcp 0 0
<br>nas:/mnt/video2 /video/video2 nfs rsize=8192,wsize=8192,hard,intr,nfsvers=3,actimeo=0,bg,tcp 0 0<br><br>On PVR the Directory structure is:<br> /video (mounted nas:/mnt/varchive)<br>
--> /video1 (Mount nas:/mnt/video1)<br> --> /video2 (Mount nas:/mnt/video2)<br><br>IFConfig on the PVR shows me:<br>eth0 Link encap:Ethernet HWaddr 00:0C:76:AC:81:CF<br> inet addr:<a href="http://192.168.100.25">
192.168.100.25</a> Bcast:<a href="http://192.168.100.255">192.168.100.255</a> Mask:<a href="http://255.255.255.0">255.255.255.0</a><br> inet6 addr: fe80::20c:76ff:feac:81cf/64 Scope:Link<br> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
<br> RX packets:11410318 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:10763819 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:100<br> RX bytes:2650825943 (2.4
GiB) TX bytes:2026306859 (1.8 GiB)<br> Base address:0xbc00 Memory:f3de0000-f3e00000<br><br>[root@<pvr box> ~]# ethtool eth0<br>Settings for eth0:<br> Supported ports: [ TP ]<br> Supported link modes: 10baseT/Half 10baseT/Full
<br> 100baseT/Half 100baseT/Full<br> 1000baseT/Full<br> Supports auto-negotiation: Yes<br> Advertised link modes: 10baseT/Half 10baseT/Full<br> 100baseT/Half 100baseT/Full
<br> 1000baseT/Full<br> Advertised auto-negotiation: Yes<br> Speed: 100Mb/s<br> Duplex: Full<br> Port: Twisted Pair<br> PHYAD: 0<br> Transceiver: internal
<br> Auto-negotiation: on<br> Supports Wake-on: umbg<br> Wake-on: g<br> Current message level: 0x00000007 (7)<br> Link detected: yes<br><br>And on the NAS:<br>eth0 Link encap:Ethernet HWaddr 00:03:47:16:F8:DD
<br> inet addr:<a href="http://192.168.100.6">192.168.100.6</a> Bcast:<a href="http://192.168.100.255">192.168.100.255</a> Mask:<a href="http://255.255.255.0">255.255.255.0</a><br> inet6 addr: fe80::203:47ff:fe16:f8dd/64 Scope:Link
<br> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:11036558 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:11690472 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:1000
<br> RX bytes:2253743222 (2.0 GiB) TX bytes:2863372217 (2.6 GiB)<br><br>[root@<nas box> ~]# ethtool eth0<br>Settings for eth0:<br> Supported ports: [ TP MII ]<br> Supported link modes: 10baseT/Half 10baseT/Full
<br> 100baseT/Half 100baseT/Full<br> Supports auto-negotiation: Yes<br> Advertised link modes: 10baseT/Half 10baseT/Full<br> 100baseT/Half 100baseT/Full
<br> Advertised auto-negotiation: Yes<br> Speed: 100Mb/s<br> Duplex: Full<br> Port: MII<br> PHYAD: 1<br> Transceiver: internal<br> Auto-negotiation: on<br> Supports Wake-on: g
<br> Wake-on: g<br> Current message level: 0x00000007 (7)<br> Link detected: yes<br><br>The only other thing listed for tuning (which might need some work) is the PCI Latency. As i'm not sure if any of this will trigger something i'm including the majority of it here.
<br><br>On the PVR Box:<br><br>00:03.0 PCI bridge: Intel Corporation 82875P/E7210 Processor to PCI to CSA Bridge (rev 02) (prog-if 00 [Normal decode])<br> Flags: bus master, 66MHz, fast devsel, latency 32<br> Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
<br> I/O behind bridge: 0000b000-0000bfff<br> Memory behind bridge: f3d00000-f3dfffff<br><br>00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2) (prog-if 00 [Normal decode])<br> Flags: bus master, fast devsel, latency 0
<br> Bus: primary=00, secondary=03, subordinate=03, sec-latency=32<br> I/O behind bridge: 0000c000-0000cfff<br> Memory behind bridge: f3e00000-f7efffff<br><br>00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
<br> Flags: bus master, medium devsel, latency 0<br><br>00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02) (prog-if 8a [Master SecP PriP])<br> Subsystem: Micro-Star International Co., Ltd. MSI 875P
<br> Flags: bus master, medium devsel, latency 0, IRQ 169<br> I/O ports at <unassigned><br> I/O ports at <unassigned><br> I/O ports at <unassigned><br> I/O ports at <unassigned>
<br> I/O ports at fc00 [size=16]<br> Memory at 50000000 (32-bit, non-prefetchable) [size=1K]<br><br>00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)<br> Subsystem: Micro-Star International Co., Ltd. Unknown device 7580
<br> Flags: medium devsel, IRQ 10<br> I/O ports at 0c00 [size=32]<br><br>02:01.0 Ethernet controller: Intel Corporation 82547EI Gigabit Ethernet Controller (LOM)<br> Subsystem: Micro-Star International Co., Ltd. Unknown device 758c
<br> Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 169<br> Memory at f3de0000 (32-bit, non-prefetchable) [size=128K]<br> I/O ports at bc00 [size=32]<br> Capabilities: [dc] Power Management version 2
<br><br>03:05.0 Multimedia video controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)<br> Subsystem: pcHDTV pcHDTV HD3000 HDTV<br> Flags: bus master, medium devsel, latency 32, IRQ 185<br>
Memory at f5000000 (32-bit, non-prefetchable) [size=16M]<br> Capabilities: [44] Vital Product Data<br> Capabilities: [4c] Power Management version 2<br><br>03:05.2 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] (rev 05)
<br> Subsystem: pcHDTV pcHDTV HD3000 HDTV<br> Flags: bus master, medium devsel, latency 32, IRQ 185<br> Memory at f6000000 (32-bit, non-prefetchable) [size=16M]<br> Capabilities: [4c] Power Management version 2
<br><br>And on the NAS:<br><br>00:1e.0 PCI bridge: Intel Corporation 82801AA PCI Bridge (rev 02) (prog-if 00 [Normal decode])<br> Flags: bus master, fast devsel, latency 0<br> Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
<br> I/O behind bridge: 0000d000-0000dfff<br> Memory behind bridge: ff400000-ff8fffff<br> Prefetchable memory behind bridge: f6a00000-f6afffff<br><br>00:1f.0 ISA bridge: Intel Corporation 82801AA ISA Bridge (LPC) (rev 02)
<br> Flags: bus master, medium devsel, latency 0<br><br>00:1f.1 IDE interface: Intel Corporation 82801AA IDE (rev 02) (prog-if 80 [Master])<br> Subsystem: Intel Corporation 82801AA IDE<br> Flags: bus master, medium devsel, latency 0
<br> I/O ports at ffa0 [size=16]<br><br>00:1f.3 SMBus: Intel Corporation 82801AA SMBus (rev 02)<br> Subsystem: Intel Corporation 82801AA SMBus<br> Flags: medium devsel, IRQ 10<br> I/O ports at efa0 [size=16]
<br><br>01:01.0 Ethernet controller: Intel Corporation 82557/8/9 [Ethernet Pro 100] (rev 08)<br> Subsystem: Intel Corporation 82559 Fast Ethernet LAN on Motherboard<br> Flags: bus master, medium devsel, latency 32, IRQ 3
<br> Memory at ff8fe000 (32-bit, non-prefetchable) [size=4K]<br> I/O ports at df00 [size=64]<br> Memory at ff700000 (32-bit, non-prefetchable) [size=1M]<br> [virtual] Expansion ROM at f6a00000 [disabled] [size=1M]
<br> Capabilities: [dc] Power Management version 2<br><br>01:08.0 RAID bus controller: Triones Technologies, Inc. HPT374 (rev 07)<br> Subsystem: Triones Technologies, Inc. Unknown device 0001<br> Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 11
<br> I/O ports at dfa0 [size=8]<br> I/O ports at df9c [size=4]<br> I/O ports at df90 [size=8]<br> I/O ports at df98 [size=4]<br> I/O ports at d000 [size=256]<br> Expansion ROM at ff400000 [disabled] [size=128K]
<br> Capabilities: [60] Power Management version 2<br><br>01:08.1 RAID bus controller: Triones Technologies, Inc. HPT374 (rev 07)<br> Subsystem: Triones Technologies, Inc. Unknown device 0001<br> Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 11
<br> I/O ports at dff0 [size=8]<br> I/O ports at dfe4 [size=4]<br> I/O ports at dfa8 [size=8]<br> I/O ports at dfe0 [size=4]<br> I/O ports at d400 [size=256]<br> Capabilities: [60] Power Management version 2
<br><br>01:0a.0 Mass storage controller: Promise Technology, Inc. PDC20718 (SATA 300 TX4) (rev 02)<br> Subsystem: Promise Technology, Inc. PDC20718 (SATA 300 TX4)<br> Flags: bus master, 66MHz, medium devsel, latency 72, IRQ 9
<br> I/O ports at dc00 [size=128]<br> I/O ports at d800 [size=256]<br> Memory at ff8ff000 (32-bit, non-prefetchable) [size=4K]<br> Memory at ff8c0000 (32-bit, non-prefetchable) [size=128K]<br> Expansion ROM at ff420000 [disabled] [size=32K]
<br> Capabilities: [60] Power Management version 2<br><br>Note: I am getting syncronization problems playing both live TV and played back live TV. For many of the evening prime time shows (at least on ABC) the audio and video are massively (2s +) out of sync. This doesn't happen on other Digital (but not HD) channels. I mention this so that people understand that there COULD be problems, i'm not just tuning it with a perfectly working system.
<br><br>--Douglas Wagner<br>