Really slow ethernet connection
#1
Hi there I have a problem with my XBMCBuntu machine.

I have a XBMCBuntu machine that holds all my HDD's and is connected to my TV.
If I move a 120MB file to my wifes machine it will take about 5sec ~11MB/s
If I move the same file from my machine to my XBMCBuntu machine it takes about 5min ~500KB/s
If I copy that same file from the XBMCBuntu machine it takes about 10sec ~6MB/s
This is a test I did 2days ago.
And I have mapped the drives of the XBMCBuntu machine in my computer, and it sometimes take a long time
to look trough the folders.

All machines are connected to a 10/100/1000 switch, and all the machines (3 of them) should be 10/100/1000 capable

If I download a ~200MB video trough utorrent I will get the video in few minutes, but it will stay at 99.9% for a long time
or until i've stopped it, force checked, rinse and repeat it couple of times.

I used a program called Lan speed test (lite) to check the connection.
I made a 100MB package to send to the XBMCBuntu machine, yesterday it went to 53MB of the package in few secs, then the speed dropped and
it took few minutes to send the rest of the package.
Just earlier I did it again, 100MB file, it jump right to 11MB then about 2 min later it stopped around 18MB and gave me the error "Error while writing data to test file!"

I restarted the machine and send the same package with the Lan program, waited for like 15 minutes until the program stopped responding.
I tried it again and used just a 20mb file, it got written in just 2sec. then the Lan program stops responding and
shows the status "Writing Data...Done: Waiting for the file to close"

This problem only started to occur maybe 2 weeks ago, and it's been slowly getting worse and worse, now I
cant move files to it, because it takes for ever.

Any one that could help me with this problem?

Usage on my disk's
Code:
playman@xbmc:~$ df -Th
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda1     ext4    144G  4.6G  132G   4% /
udev      devtmpfs    1.8G  4.0K  1.8G   1% /dev
tmpfs        tmpfs    703M  660K  703M   1% /run
none         tmpfs    5.0M     0  5.0M   0% /run/lock
none         tmpfs    1.8G     0  1.8G   0% /run/shm
/dev/sdb1  fuseblk    932G  684G  248G  74% /media/1Tb
/dev/sdc1  fuseblk    1.9T  1.3T  594G  69% /media/2Tb

Ethernet information
Code:
playman@xbmc:~$ sudo ethtool eth0
[sudo] password for playman:
Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: Unknown
        Supports Wake-on: pg
        Wake-on: g
        Current message level: 0x0000003f (63)
                               drv probe link timer ifdown ifup
        Link detected: yes
playman@xbmc:~$


Edit:
The Lan program just finished and this is the output of the 20MB file transfer.
Code:
Version 1.3.0
OS Version: Windows 7
Date: 07/31/2013
Time: 08:45:10
Program Parameters: 0
High Performance Timer: 0.0000003019

Test File: \\XBMC\XBMC-Live\2Tb\Incomplete\NW_SpeedTest.dat
Write Time = 367.6365809 Seconds
Write Speed = 0.4352160 Mbps
Read Time = 4.7653567 Seconds
Read Speed = 33.5756640 Mbps
Reply
#2
Issue writing a lot of data to the hard drive rather than an ethernet problem?
I would try an extended read/write stress test on your hard drive to see.
Reply
#3
(2013-07-31, 11:21)mayoman Wrote: Issue writing a lot of data to the hard drive rather than an ethernet problem?
I would try an extended read/write stress test on your hard drive to see.
Thank you for the reply.

How would I do that on a linux machine?

But which HDD should I test?
as I have 3 of them
1 for the system
and 2 for storage

And i'm getting poor transfer speed on both storage disk's, about the same speed, so it
can't be HDD problem? right?
Reply
#4
Mmmmm yes, less likely to be HDD if both storage drives are affected. I'm not a Linux expert so could be miles off, but given that smaller files seem to be unaffected I wonder if it is swapfile related? i.e. for larger file buffers the system is attempting to buffer to a swapfile but failing. In that case the problem would be with your OS drive (assuming that is where the swapfile is located) or your swap setup.
Either way, this link should give you enough help to be able rule it out.

Don't have knowledge of Linux specific HDD testers. I would typically use a Hirens boot CD and something like HD tune to test hard drives.
Reply
#5
If you want to test network speed a program called iperf can do that. Packages are available for Windows and Linux.

Linux: http://sourceforge.net/projects/iperf/ (Though it's very popular and might be available through your typical package manager like apt-get)

Windows: http://www.iperfwindows.com/


For testing drives speed on Linux, hdparm is one option.

Linux: http://sourceforge.net/projects/hdparm/ (Again, check with your package manager first as this is also very popular)

How-to: http://www.cyberciti.biz/tips/how-fast-i...-disk.html

I would test all drives.

(2013-07-31, 14:43)mayoman Wrote: Mmmmm yes, less likely to be HDD if both storage drives are affected.
It could be the controller, or even the file system used. It is less likely, but not unlikely so should not be ruled out.
Reply
#6
Couple things:

a) check for packet loss...that'll cripple a TCP connection. Try pinging router or something else on the network that is pingable.

'sudo ping -A <router_ip> -c 10000'

b) does 'dmesg' say anything on your Linux box?
If I helped out pls give me a +

A bunch of XBMC instances, big-ass screen in the basement + a 20TB FreeBSD, ZFS server.
Reply
#7
Getting the quickest one done first.
(2013-07-31, 18:09)thethirdnut Wrote: Couple things:

a) check for packet loss...that'll cripple a TCP connection. Try pinging router or something else on the network that is pingable.

'sudo ping -A <router_ip> -c 10000'

b) does 'dmesg' say anything on your Linux box?

a) gives me
Code:
--- 192.168.1.254 ping statistics ---
10000 packets transmitted, 9770 received, 2% packet loss, time 7414ms
rtt min/avg/max/mdev = 0.143/0.272/2.918/0.094 ms, ipg/ewma 0.741/0.276 ms
Pinged my machine also
Code:
--- 192.168.1.2 ping statistics ---
10000 packets transmitted, 9703 received, 2% packet loss, time 9304ms
rtt min/avg/max/mdev = 0.067/0.373/2.912/0.154 ms, ipg/ewma 0.930/0.601 ms

b) gives me
Code:
[    0.933085] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    1.266276] isapnp: No Plug & Play device found
[    1.294359] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    1.294660] Linux agpgart interface v0.103
[    1.295581] brd: module loaded
[    1.295938] loop: module loaded
[    1.296092] pata_acpi 0000:00:14.1: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    1.296318] Fixed MDIO Bus: probed
[    1.296334] PPP generic driver version 2.4.2
[    1.296358] tun: Universal TUN/TAP device driver, 1.6
[    1.296359] tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
[    1.296412] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.296420] ehci_hcd 0000:00:12.2: PCI INT B -> GSI 17 (level, low) -> IRQ 17
[    1.296430] ehci_hcd 0000:00:12.2: EHCI Host Controller
[    1.296454] ehci_hcd 0000:00:12.2: new USB bus registered, assigned bus number 1
[    1.296461] ehci_hcd 0000:00:12.2: applying AMD SB700/SB800/Hudson-2/3 EHCI dummy qh workaround
[    1.296480] ehci_hcd 0000:00:12.2: debug port 1
[    1.296507] ehci_hcd 0000:00:12.2: irq 17, io mem 0xfe02c000
[    1.308043] ehci_hcd 0000:00:12.2: USB 2.0 started, EHCI 1.00
[    1.308183] hub 1-0:1.0: USB hub found
[    1.308186] hub 1-0:1.0: 6 ports detected
[    1.308247] ehci_hcd 0000:00:13.2: PCI INT B -> GSI 19 (level, low) -> IRQ 19
[    1.308263] ehci_hcd 0000:00:13.2: EHCI Host Controller
[    1.308287] ehci_hcd 0000:00:13.2: new USB bus registered, assigned bus number 2
[    1.308295] ehci_hcd 0000:00:13.2: applying AMD SB700/SB800/Hudson-2/3 EHCI dummy qh workaround
[    1.308313] ehci_hcd 0000:00:13.2: debug port 1
[    1.308339] ehci_hcd 0000:00:13.2: irq 19, io mem 0xfe029000
[    1.320042] ehci_hcd 0000:00:13.2: USB 2.0 started, EHCI 1.00
[    1.320176] hub 2-0:1.0: USB hub found
[    1.320179] hub 2-0:1.0: 6 ports detected
[    1.320238] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.320253] ohci_hcd 0000:00:12.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    1.320268] ohci_hcd 0000:00:12.0: OHCI Host Controller
[    1.320293] ohci_hcd 0000:00:12.0: new USB bus registered, assigned bus number 3
[    1.320325] ohci_hcd 0000:00:12.0: irq 16, io mem 0xfe02e000
[    1.380133] hub 3-0:1.0: USB hub found
[    1.380139] hub 3-0:1.0: 3 ports detected
[    1.380193] ohci_hcd 0000:00:12.1: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    1.380209] ohci_hcd 0000:00:12.1: OHCI Host Controller
[    1.380237] ohci_hcd 0000:00:12.1: new USB bus registered, assigned bus number 4
[    1.380253] ohci_hcd 0000:00:12.1: irq 16, io mem 0xfe02d000
[    1.440137] hub 4-0:1.0: USB hub found
[    1.440143] hub 4-0:1.0: 3 ports detected
[    1.440198] ohci_hcd 0000:00:13.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[    1.440214] ohci_hcd 0000:00:13.0: OHCI Host Controller
[    1.440240] ohci_hcd 0000:00:13.0: new USB bus registered, assigned bus number 5
[    1.440271] ohci_hcd 0000:00:13.0: irq 18, io mem 0xfe02b000
[    1.500139] hub 5-0:1.0: USB hub found
[    1.500145] hub 5-0:1.0: 3 ports detected
[    1.500201] ohci_hcd 0000:00:13.1: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[    1.500217] ohci_hcd 0000:00:13.1: OHCI Host Controller
[    1.500241] ohci_hcd 0000:00:13.1: new USB bus registered, assigned bus number 6
[    1.500257] ohci_hcd 0000:00:13.1: irq 18, io mem 0xfe02a000
[    1.560140] hub 6-0:1.0: USB hub found
[    1.560146] hub 6-0:1.0: 3 ports detected
[    1.560202] ohci_hcd 0000:00:14.5: PCI INT C -> GSI 18 (level, low) -> IRQ 18
[    1.560218] ohci_hcd 0000:00:14.5: OHCI Host Controller
[    1.560243] ohci_hcd 0000:00:14.5: new USB bus registered, assigned bus number 7
[    1.560260] ohci_hcd 0000:00:14.5: irq 18, io mem 0xfe028000
[    1.620137] hub 7-0:1.0: USB hub found
[    1.620144] hub 7-0:1.0: 2 ports detected
[    1.620201] uhci_hcd: USB Universal Host Controller Interface driver
[    1.620262] i8042: PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
[    1.620264] i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
[    1.620403] serio: i8042 KBD port at 0x60,0x64 irq 1
[    1.620464] mousedev: PS/2 mouse device common for all mice
[    1.620542] rtc_cmos 00:05: RTC can wake from S4
[    1.620614] rtc_cmos 00:05: rtc core: registered rtc_cmos as rtc0
[    1.620646] rtc0: alarms up to one month, 242 bytes nvram, hpet irqs
[    1.620696] device-mapper: uevent: version 1.0.3
[    1.620741] device-mapper: ioctl: 4.20.0-ioctl (2011-02-02) initialised: [email protected]
[    1.620760] EISA: Probing bus 0 at eisa.0
[    1.620761] EISA: Cannot allocate resource for mainboard
[    1.620763] Cannot allocate resource for EISA slot 1
[    1.620765] Cannot allocate resource for EISA slot 2
[    1.620766] Cannot allocate resource for EISA slot 3
[    1.620767] Cannot allocate resource for EISA slot 4
[    1.620768] Cannot allocate resource for EISA slot 5
[    1.620769] Cannot allocate resource for EISA slot 6
[    1.620770] Cannot allocate resource for EISA slot 7
[    1.620771] Cannot allocate resource for EISA slot 8
[    1.620773] EISA: Detected 0 cards.
[    1.620780] cpufreq-nforce2: No nForce2 chipset.
[    1.620781] cpuidle: using governor ladder
[    1.620782] cpuidle: using governor menu
[    1.620784] EFI Variables Facility v0.08 2004-May-17
[    1.620961] TCP cubic registered
[    1.621048] NET: Registered protocol family 10
[    1.621429] NET: Registered protocol family 17
[    1.621438] Registering the dns_resolver key type
[    1.621452] Using IPI No-Shortcut mode
[    1.621496] PM: Hibernation image not present or could not be loaded.
[    1.621503] registered taskstats version 1
[    1.630357]   Magic number: 5:454:322
[    1.630382] misc mcelog: hash matches
[    1.630386] tty tty47: hash matches
[    1.630452] rtc_cmos 00:05: setting system clock to 2013-07-31 08:20:43 UTC (1375258843)
[    1.630458] powernow-k8: Found 1 AMD Athlon(tm) II X2 255 Processor (2 cpu cores) (version 2.20.00)
[    1.630485] powernow-k8:    0 : pstate 0 (3100 MHz)
[    1.630487] powernow-k8:    1 : pstate 1 (2400 MHz)
[    1.630488] powernow-k8:    2 : pstate 2 (1900 MHz)
[    1.630489] powernow-k8:    3 : pstate 3 (800 MHz)
[    1.630610] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[    1.630611] EDD information not available.
[    1.630720] Freeing unused kernel memory: 724k freed
[    1.630943] Write protecting the kernel text: 5536k
[    1.630993] Write protecting the kernel read-only data: 2244k
[    1.630994] NX-protecting the kernel data: 4704k
[    1.641831] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
[    1.649764] udevd[82]: starting version 173
[    1.677005] scsi0 : pata_atiixp
[    1.680901] scsi1 : pata_atiixp
[    1.681334] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xfa00 irq 14
[    1.681336] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xfa08 irq 15
[    1.690378] atl1c 0000:02:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[    1.690387] atl1c 0000:02:00.0: setting latency timer to 64
[    1.698071] wmi: Mapper loaded
[    1.816511] atl1c 0000:02:00.0: version 1.0.1.0-NAPI
[    1.828046] usb 3-1: new low speed USB device number 2 using ohci_hcd
[    1.836047] Refined TSC clocksource calibration: 3120.726 MHz.
[    1.836058] Switching to clocksource tsc
[    1.860056] ahci 0000:00:11.0: version 3.0
[    1.860079] ahci 0000:00:11.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[    1.860178] ahci 0000:00:11.0: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0xf impl SATA mode
[    1.860181] ahci 0000:00:11.0: flags: 64bit ncq sntf ilck pm led clo pmp pio slum part ccc
[    1.861012] scsi2 : ahci
[    1.861127] scsi3 : ahci
[    1.861179] scsi4 : ahci
[    1.861233] scsi5 : ahci
[    1.861320] ata3: SATA max UDMA/133 abar m1024@0xfe02f000 port 0xfe02f100 irq 22
[    1.861323] ata4: SATA max UDMA/133 abar m1024@0xfe02f000 port 0xfe02f180 irq 22
[    1.861326] ata5: SATA max UDMA/133 abar m1024@0xfe02f000 port 0xfe02f200 irq 22
[    1.861329] ata6: SATA max UDMA/133 abar m1024@0xfe02f000 port 0xfe02f280 irq 22
[    2.352055] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    2.352084] ata5: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    2.352108] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    2.352126] ata6: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    2.353744] ata3.00: ATA-8: WDC WD1600AAJS-22L7A0, 01.03E01, max UDMA/133
[    2.353747] ata3.00: 312581808 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[    2.354621] ata3.00: configured for UDMA/133
[    2.354804] scsi 2:0:0:0: Direct-Access     ATA      WDC WD1600AAJS-2 01.0 PQ: 0 ANSI: 5
[    2.354952] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    2.355048] sd 2:0:0:0: [sda] 312581808 512-byte logical blocks: (160 GB/149 GiB)
[    2.355107] sd 2:0:0:0: [sda] Write Protect is off
[    2.355109] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    2.355132] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.356694] ata5.00: ATA-8: WDC WD20EARS-00MVWB0, 51.0AB51, max UDMA/133
[    2.356697] ata5.00: 3907029168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[    2.357735] ata4.00: ATA-8: SAMSUNG HD103SJ, 1AJ10001, max UDMA/133
[    2.357738] ata4.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[    2.361697] ata5.00: configured for UDMA/133
[    2.363455] ata4.00: configured for UDMA/133
[    2.363618] scsi 3:0:0:0: Direct-Access     ATA      SAMSUNG HD103SJ  1AJ1 PQ: 0 ANSI: 5
[    2.363758] sd 3:0:0:0: Attached scsi generic sg1 type 0
[    2.363828] sd 3:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[    2.363845] scsi 4:0:0:0: Direct-Access     ATA      WDC WD20EARS-00M 51.0 PQ: 0 ANSI: 5
[    2.363856] sd 3:0:0:0: [sdb] Write Protect is off
[    2.363858] sd 3:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    2.363894] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.363934] sd 4:0:0:0: Attached scsi generic sg2 type 0
[    2.363982] sd 4:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[    2.364022] sd 4:0:0:0: [sdc] Write Protect is off
[    2.364024] sd 4:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[    2.364037] sd 4:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.366934]  sdb: sdb1
[    2.367122] sd 3:0:0:0: [sdb] Attached SCSI disk
[    2.372692] ata6.00: ATA-8: SAMSUNG HD501LJ, CR100-10, max UDMA7
[    2.372695] ata6.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[    2.374724] ata6.00: configured for UDMA/133
[    2.374874] scsi 5:0:0:0: Direct-Access     ATA      SAMSUNG HD501LJ  CR10 PQ: 0 ANSI: 5
[    2.375010] sd 5:0:0:0: Attached scsi generic sg3 type 0
[    2.375029] sd 5:0:0:0: [sdd] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[    2.375058] sd 5:0:0:0: [sdd] Write Protect is off
[    2.375061] sd 5:0:0:0: [sdd] Mode Sense: 00 3a 00 00
[    2.375073] sd 5:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.377395]  sdc: sdc1
[    2.377637] sd 4:0:0:0: [sdc] Attached SCSI disk
[    2.380050] usb 6-3: new full speed USB device number 2 using ohci_hcd
[    2.383002]  sdd: sdd1
[    2.383190] sd 5:0:0:0: [sdd] Attached SCSI disk
[    2.397050]  sda: sda1 sda2 < sda5 >
[    2.397283] sd 2:0:0:0: [sda] Attached SCSI disk
[    2.409291] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:12.0/usb3/3-1/3-1:1.0/input/input3
[    2.409378] generic-usb 0003:046D:C501.0001: input,hidraw0: USB HID v1.10 Mouse [Logitech USB Receiver] on usb-0000:00:12.0-1/input0
[    2.409394] usbcore: registered new interface driver usbhid
[    2.409395] usbhid: USB HID core driver
[    2.554218] input: USB Sound Device         as /devices/pci0000:00/0000:00:13.1/usb6/6-3/6-3:1.3/input/input4
[    2.554301] generic-usb 0003:0D8C:0102.0002: input,hidraw1: USB HID v1.00 Device [USB Sound Device        ] on usb-0000:00:13.1-3/input3
[    3.686107] vesafb: mode is 1024x768x32, linelength=4096, pages=0
[    3.686110] vesafb: scrolling: redraw
[    3.686113] vesafb: Truecolor: size=0:8:8:8, shift=0:16:8:0
[    3.686553] vesafb: framebuffer at 0xd0000000, mapped to 0xf8500000, using 3072k, total 3072k
[    3.686670] Console: switching to colour frame buffer device 128x48
[    3.686690] fb0: VESA VGA frame buffer device
[    3.831271] Btrfs loaded
[    3.835953] xor: automatically using best checksumming function: pIII_sse
[    3.852009]    pIII_sse  : 12861.000 MB/sec
[    3.852011] xor: using function: pIII_sse (12861.000 MB/sec)
[    3.852386] device-mapper: dm-raid45: initialized v0.2594b
[    4.477162] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[    4.477166] EXT4-fs (sda1): write access will be enabled during recovery
[    4.747047] EXT4-fs (sda1): recovery complete
[    4.749064] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[    6.610072] Adding 3665916k swap on /dev/sda5.  Priority:-1 extents:1 across:3665916k
[    6.718576] udevd[395]: starting version 173
[    7.290535] type=1400 audit(1375258849.155:2): apparmor="STATUS" operation="profile_load" name="/sbin/dhclient" pid=553 comm="apparmor_parser"
[    7.290553] type=1400 audit(1375258849.155:3): apparmor="STATUS" operation="profile_replace" name="/sbin/dhclient" pid=580 comm="apparmor_parser"
[    7.290823] type=1400 audit(1375258849.155:4): apparmor="STATUS" operation="profile_load" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=553 comm="apparmor_parser"
[    7.290848] type=1400 audit(1375258849.155:5): apparmor="STATUS" operation="profile_replace" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=580 comm="apparmor_parser"
[    7.290990] type=1400 audit(1375258849.155:6): apparmor="STATUS" operation="profile_load" name="/usr/lib/connman/scripts/dhclient-script" pid=553 comm="apparmor_parser"
[    7.291017] type=1400 audit(1375258849.155:7): apparmor="STATUS" operation="profile_replace" name="/usr/lib/connman/scripts/dhclient-script" pid=580 comm="apparmor_parser"
[    8.043777] atl1c 0000:02:00.0: irq 41 for MSI/MSI-X
[    8.043872] atl1c 0000:02:00.0: atl1c: eth0 NIC Link is Up<1000 Mbps Full Duplex>
[    8.328476] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[    8.634327] fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
[    8.634331] Disabling lock debugging due to kernel taint
[    8.688851] ACPI: resource piix4_smbus [io  0x0b00-0x0b07] conflicts with ACPI region SOR1 [io 0xb00-0xb0f]
[    8.688854] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[    8.692856] [fglrx] Maximum main memory to use for locked dma buffers: 3360 MBytes.
[    8.692909] [fglrx]   vendor: 1002 device: 9616 count: 1
[    8.693256] [fglrx] ioport: bar 1, base 0xee00, size: 0x100
[    8.693266] pci 0000:01:05.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[    8.693270] pci 0000:01:05.0: setting latency timer to 64
[    8.693593] [fglrx] Kernel PAT support is enabled
[    8.693607] [fglrx] module loaded - fglrx 8.91.4 [Oct 25 2011] with 1 minors
[    8.951183] SP5100 TCO timer: SP5100 TCO WatchDog Timer Driver v0.01
[    8.951250] SP5100 TCO timer: mmio address 0xfec000f0 already in use
[    9.080435] lp: driver loaded but no devices found
[    9.114200] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[    9.827211] HDA Intel 0000:00:14.2: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[   10.080211] usbcore: registered new interface driver snd-usb-audio
[   11.990318] EXT4-fs (sdd1): Unrecognized mount option "default" or missing value
[   17.390021] type=1400 audit(1375258859.255:8): apparmor="STATUS" operation="profile_replace" name="/sbin/dhclient" pid=987 comm="apparmor_parser"
[   17.390376] type=1400 audit(1375258859.255:9): apparmor="STATUS" operation="profile_replace" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=987 comm="apparmor_parser"
[   17.390580] type=1400 audit(1375258859.255:10): apparmor="STATUS" operation="profile_replace" name="/usr/lib/connman/scripts/dhclient-script" pid=987 comm="apparmor_parser"
[   17.423212] type=1400 audit(1375258859.287:11): apparmor="STATUS" operation="profile_load" name="/usr/lib/lightdm/lightdm-guest-session-wrapper" pid=986 comm="apparmor_parser"
[   17.452418] type=1400 audit(1375258859.319:12): apparmor="STATUS" operation="profile_load" name="/usr/sbin/tcpdump" pid=988 comm="apparmor_parser"
[   18.311828] lirc_dev: IR Remote Control driver registered, major 249
[   18.349601] init: failsafe main process (915) killed by TERM signal
[   18.488029] eth0: no IPv6 routers present
[   18.974295] init: xbmcbuntu-wait (ubiquity) main process (1094) killed by TERM signal
[   18.976610] init: xbmcbuntu-wait (lightdm) main process (1093) killed by TERM signal
[   22.345987] [fglrx] GART Table is not in FRAME_BUFFER range
[   22.346171] [fglrx] Could not enable MSI; System prevented initialization
[   22.346612] [fglrx] Firegl kernel thread PID: 1178
[   22.346652] [fglrx] Firegl kernel thread PID: 1179
[   22.346731] [fglrx] Firegl kernel thread PID: 1180
[   22.346863] [fglrx] IRQ 18 Enabled
[   23.504113] [fglrx] Gart USWC size:1100 M.
[   23.504116] [fglrx] Gart cacheable size:435 M.
[   23.504120] [fglrx] Reserved FB block: Shared offset:0, size:1000000
[   23.504122] [fglrx] Reserved FB block: Unshared offset:1fffb000, size:5000
[   23.666620] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro,commit=0
[   29.295537] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro,commit=0
playman@xbmc:~$
Reply
#8
2% packet loss is not good.

Try moving things around for that connection. Try different network cables, try switching the cables to different router ports, etc. See if you can narrow down if it's a bad piece of equipment in the path.
Reply
#9
+1 to Scottes

Your 2% packet loss sounds like a small number but it is definitely NOT doing you any favours..in the past I've seen it cause severe throughput degradation since it can mess up your TCP windowing and throughput due to retransmissions, etc.

http://en.wikipedia.org/wiki/Packet_loss...acket_loss

I don't see anything obvious in dmesg.
If I helped out pls give me a +

A bunch of XBMC instances, big-ass screen in the basement + a 20TB FreeBSD, ZFS server.
Reply
#10
(2013-07-31, 14:49)Scottes Wrote: If you want to test network speed a program called iperf can do that. Packages are available for Windows and Linux.

Linux: http://sourceforge.net/projects/iperf/ (Though it's very popular and might be available through your typical package manager like apt-get)

Windows: http://www.iperfwindows.com/


For testing drives speed on Linux, hdparm is one option.

Linux: http://sourceforge.net/projects/hdparm/ (Again, check with your package manager first as this is also very popular)

How-to: http://www.cyberciti.biz/tips/how-fast-i...-disk.html

I would test all drives.

(2013-07-31, 14:43)mayoman Wrote: Mmmmm yes, less likely to be HDD if both storage drives are affected.
It could be the controller, or even the file system used. It is less likely, but not unlikely so should not be ruled out.

hdparm results
Code:
root@xbmc:/home/playman# sudo hdparm -tT /dev/sda

/dev/sda:
Timing cached reads:   1374 MB in  2.00 seconds = 686.22 MB/sec
Timing buffered disk reads: 294 MB in  3.01 seconds =  97.65 MB/sec

root@xbmc:/home/playman# sudo hdparm -tT /dev/sdb

/dev/sdb:
Timing cached reads:   1316 MB in  2.00 seconds = 658.07 MB/sec
Timing buffered disk reads: 414 MB in  3.01 seconds = 137.39 MB/sec

root@xbmc:/home/playman# sudo hdparm -tT /dev/sdc

/dev/sdc:
Timing cached reads:   1298 MB in  2.00 seconds = 648.77 MB/sec
Timing buffered disk reads: 358 MB in  3.02 seconds = 118.62 MB/sec

I checked that iperf link and it costs for windows 199$..................................Huh is that supposed to be funny?
luckily I was able to find it on softpedia for free.

I used this tutorial http://www.youtube.com/watch?v=zQYu2HH5s6U

My machine
Code:
C:\Users\HaCkEd-AgAiN\Desktop\New folder>iperf.exe -c 192.168.1.3
------------------------------------------------------------
Client connecting to 192.168.1.3, TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.2 port 54865 connected with 192.168.1.3 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-13.0 sec  2.38 MBytes  1.53 Mbits/sec

C:\Users\HaCkEd-AgAiN\Desktop\New folder>iperf.exe -c 192.168.1.3
------------------------------------------------------------
Client connecting to 192.168.1.3, TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.2 port 54871 connected with 192.168.1.3 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.5 sec  2.50 MBytes  2.00 Mbits/sec

C:\Users\HaCkEd-AgAiN\Desktop\New folder>iperf.exe -c 192.168.1.3 -t 20
------------------------------------------------------------
Client connecting to 192.168.1.3, TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.2 port 54886 connected with 192.168.1.3 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-22.7 sec  3.88 MBytes  1.43 Mbits/sec

C:\Users\HaCkEd-AgAiN\Desktop\New folder>iperf.exe -c 192.168.1.3 -t 40
------------------------------------------------------------
Client connecting to 192.168.1.3, TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.2 port 54922 connected with 192.168.1.3 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-42.1 sec  11.5 MBytes  2.29 Mbits/sec

XBMCBuntu machine
Code:
root@xbmc:/home/playman# iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  4] local 192.168.1.3 port 5001 connected with 192.168.1.2 port 54865
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-13.0 sec  2.38 MBytes  1.53 Mbits/sec
[  5] local 192.168.1.3 port 5001 connected with 192.168.1.2 port 54871
[  4] local 192.168.1.3 port 5001 connected with 192.168.1.2 port 54886
[  4]  0.0-86.5 sec  3.88 MBytes   376 Kbits/sec
[  6] local 192.168.1.3 port 5001 connected with 192.168.1.2 port 54922
^CWaiting for server threads to complete. Interrupt again to force quit.

My machine UDP
Code:
C:\Users\HaCkEd-AgAiN\Desktop\New folder>iperf.exe -c 192.168.1.3 -u -b 2M
------------------------------------------------------------
Client connecting to 192.168.1.3, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size: 64.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.2 port 54599 connected with 192.168.1.3 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  2.39 MBytes  2.00 Mbits/sec
[  3] Sent 1702 datagrams
[  3] Server Report:
[  3]  0.0-10.0 sec  2.18 MBytes  1.83 Mbits/sec   0.034 ms  145/ 1701 (8.5%)
[  3]  0.0-10.0 sec  1 datagrams received out-of-order

C:\Users\HaCkEd-AgAiN\Desktop\New folder>iperf.exe -c 192.168.1.3 -u -b 2M -t 40

------------------------------------------------------------
Client connecting to 192.168.1.3, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size: 64.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.2 port 58097 connected with 192.168.1.3 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-40.0 sec  9.54 MBytes  2.00 Mbits/sec
[  3] Sent 6804 datagrams
[  3] Server Report:
[  3]  0.0-40.0 sec  8.74 MBytes  1.83 Mbits/sec   0.027 ms  567/ 6803 (8.3%)
[  3]  0.0-40.0 sec  1 datagrams received out-of-order
My XBMCBuntu machine UDP
Code:
^Croot@xbmc:/home/playman# iperf -s -u
------------------------------------------------------------
Server listening on UDP port 5001
Receiving 1470 byte datagrams
UDP buffer size:  112 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.3 port 5001 connected with 192.168.1.2 port 54599
[ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
[  3]  0.0-10.0 sec  2.18 MBytes  1.83 Mbits/sec   0.034 ms  145/ 1701 (8.5%)
[  3]  0.0-10.0 sec  1 datagrams received out-of-order
[  4] local 192.168.1.3 port 5001 connected with 192.168.1.2 port 58097
[  4]  0.0-40.0 sec  8.74 MBytes  1.83 Mbits/sec   0.028 ms  567/ 6803 (8.3%)
[  4]  0.0-40.0 sec  1 datagrams received out-of-order
Reply
#11
iperf is FREE for all platforms.

Your UDP tests are showing losses too...I'd focus on your network troubleshooting. If no bum cables or switches,etc also look for Duplex mismatch...some machine full-duplex,other half-duplex,etc.
If I helped out pls give me a +

A bunch of XBMC instances, big-ass screen in the basement + a 20TB FreeBSD, ZFS server.
Reply
#12
(2013-07-31, 22:19)xplayman Wrote: I checked that iperf link and it costs for windows 199$..................................Huh is that supposed to be funny?
Heck no. As said by thirdnut, iperf is free - I had no though that someone would charge for it. And as you found, it is available for free.
Reply
#13
(2013-07-31, 22:19)xplayman Wrote: I checked that iperf link and it costs for windows 199$..................................Huh

Some cheekAngry Thankfully they set the price so ridiculously high (hopefully) nobody will ever fall for it.
Bad results for iperf - you definitely have a network problem...
Reply
#14
Well it say's here in the link that was posted here earlyer it's 199$ http://www.iperfwindows.com/order.htm
and no download link there, atleast that I saw.
But enough of that.

I took the XBMC caple from the switch and plugged it into my router, so far i've received no packet losses and was able to download a
video with out a hassle.

Pinging router
Code:
--- 192.168.1.254 ping statistics ---
10000 packets transmitted, 10000 received, 0% packet loss, time 5262ms
rtt min/avg/max/mdev = 0.140/0.283/2.369/0.103 ms, ipg/ewma 0.526/0.267 ms

Pinging my machine
Code:
--- 192.168.1.2 ping statistics ---
10000 packets transmitted, 10000 received, 0% packet loss, time 7260ms
rtt min/avg/max/mdev = 0.114/0.423/3.273/0.220 ms, ipg/ewma 0.726/0.639 ms

Lan speed Test program 200MB packet.
Code:
Version 1.3.0
OS Version: Windows 7
Date: 07/31/2013
Time: 21:50:24
Program Parameters: 0
High Performance Timer: 0.0000003019

Test File: \\XBMC\XBMC-Live\2Tb\Incomplete\NW_SpeedTest.dat
Write Time = 25.2957669 Seconds
Write Speed = 63.2516880 Mbps
Read Time = 18.3790182 Seconds
Read Speed = 87.0557920 Mbps
And finally a 500MB packet
Code:
Version 1.3.0
OS Version: Windows 7
Date: 07/31/2013
Time: 21:55:36
Program Parameters: 0
High Performance Timer: 0.0000003019

Test File: \\XBMC\XBMC-Live\2Tb\Incomplete\NW_SpeedTest.dat
Write Time = 69.6290924 Seconds
Write Speed = 57.4472480 Mbps
Read Time = 46.7765346 Seconds
Read Speed = 85.5129600 Mbps

Thank you all for the help Big Grin
could it be that the port on the switch is broken?
And how do I know if the router has a gigabyte port?
Reply
#15
Often an orange link light will indicate gig, but the router may show a green link light for gig. If I saw orange I'd bet on gig, but if I saw green it still might be gig. Google the model number for specs or manual, but it's best to see what the connected system says it's getting. Something like ethtool will tell you the speed the port is at. Better this way since a wonky cable can make a gig connection fail and drop it lower, so try different cables and ports.
Reply

Logout Mark Read Team Forum Stats Members Help
Really slow ethernet connection0