Welcome! Log In Create A New Profile

Advanced

Slow file copy speed on Debian Zyxel NSA325 v2

Posted by andsol 
Slow file copy speed on Debian Zyxel NSA325 v2
November 24, 2015 09:31AM
Gyus any adeas where to dig?

I have latest uBoot and latest linux-4.2.0-kirkwood-tld-1-bodhi kernel.
I had all versions of kernels and uBoots it was slow on all of them.

Two hard drive inside ext4 file copy from one to another 8 MB/s, during copy 100% cpu load.
I remember when I had stock firmare and OS it was aprox 60 MB/s.

root@nas:~# hdparm -tT /dev/sdb
/dev/sdb:
 Timing cached reads:   608 MB in  2.00 seconds = 303.74 MB/sec
 Timing buffered disk reads: 382 MB in  3.01 seconds = 126.75 MB/sec
root@nas:~# hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   592 MB in  2.00 seconds = 295.91 MB/sec
 Timing buffered disk reads: 256 MB in  3.02 seconds =  84.73 MB/sec

UUID= /media/toshiba ext4 rw,noatime,discard,data=ordered 0 2
UUID= /media/wd ext4 rw,noatime,discard,data=ordered 0 2



Edited 4 time(s). Last edit at 11/24/2015 10:29AM by andsol.
Re: Slow file copy speed on Debian Zyxel NSA325 v2
November 30, 2015 03:58PM
andsol Wrote:
-------------------------------------------------------
> Gyus any adeas where to dig?
>
> I have latest uBoot and latest
> linux-4.2.0-kirkwood-tld-1-bodhi kernel.
> I had all versions of kernels and uBoots it was
> slow on all of them.
>
> Two hard drive inside ext4 file copy from one to
> another 8 MB/s, during copy 100% cpu load.
> I remember when I had stock firmare and OS it was
> aprox 60 MB/s.
>
>
> root@nas:~# hdparm -tT /dev/sdb
> /dev/sdb:
>  Timing cached reads:   608 MB in  2.00 seconds =
> 303.74 MB/sec
>  Timing buffered disk reads: 382 MB in  3.01
> seconds = 126.75 MB/sec
> root@nas:~# hdparm -tT /dev/sda
> 
> /dev/sda:
>  Timing cached reads:   592 MB in  2.00 seconds =
> 295.91 MB/sec
>  Timing buffered disk reads: 256 MB in  3.02
> seconds =  84.73 MB/sec
>
>
>
> UUID= /media/toshiba ext4
> rw,noatime,discard,data=ordered 0 2
> UUID= /media/wd ext4
> rw,noatime,discard,data=ordered 0 2
> 
>

I forgot about your post before. When I can take my nsa325v2 offline, I will try it.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Slow file copy speed on Debian Zyxel NSA325 v2
November 30, 2015 10:19PM
Thanks bodhi. Let me know please.
Re: Slow file copy speed on Debian Zyxel NSA325 v2
December 04, 2015 12:41AM
@andsol,

I've tried it today, and did not see the slow speed you have seen.

/dev/sda1 on / type ext3 (rw,noatime,errors=remount-ro,user_xattr,acl,barrier=1,data=ordered)
/dev/sdb1 on /media/ROOTFS type ext4 (rw,noatime,data=ordered)

hdparm -tT /dev/sdb
/dev/sdb:
 Timing cached reads:   704 MB in  2.00 seconds = 351.79 MB/sec
 Timing buffered disk reads: 342 MB in  3.02 seconds = 113.38 MB/sec
hdparm -tT /dev/sda
/dev/sda:
 Timing cached reads:   626 MB in  2.00 seconds = 312.28 MB/sec
 Timing buffered disk reads: 316 MB in  3.00 seconds = 105.32 MB/sec


Copying a 1.9GB file from one HDD to the other: one direction got about 50MB/s, the other direction was about 60MB/s (my 2HDDs are of different Seagate models).

BTW, close to 100% CPU is actually a good thing (if you box is responsive to other tasks that you do in parallel, there is no problem with that fact). Actually, if it does not consume close 100% CPU while doing this task only, then we'd be worried that something is not right!

What dmesg info about your 2 HDDs look like?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Slow file copy speed on Debian Zyxel NSA325 v2
December 05, 2015 01:28AM
@bodhi, Hello. Thank you, that you did a test for me.

Here it is:
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.2.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Aug 31 23:12:00 PDT 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: ZyXEL NSA325
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c089f6fc, node_mem_map dfbf9000
[    0.000000]   DMA zone: 1024 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 131072 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 rootfstype=ext3 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 503488K/524288K available (6019K kernel code, 571K rwdata, 1988K rodata, 284K init, 312K bss, 20800K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc07da1b4   (8009 kB)
      .init : 0xc07db000 - 0xc0822000   ( 284 kB)
      .data : 0xc0822000 - 0xc08b0e24   ( 572 kB)
       .bss : 0xc08b0e24 - 0xc08ff1a4   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000006] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000381] Console: colour dummy device 80x30
[    0.000408] Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)
[    0.090069] pid_max: default: 32768 minimum: 301
[    0.090180] Security Framework initialized
[    0.090252] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090269] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090916] Initializing cgroup subsys blkio
[    0.090944] Initializing cgroup subsys devices
[    0.090966] Initializing cgroup subsys freezer
[    0.090993] Initializing cgroup subsys net_cls
[    0.091071] CPU: Testing write buffer coherency: ok
[    0.091443] Setting up static identity map for 0x8200 - 0x8258
[    0.091704] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.094756] devtmpfs: initialized
[    0.099918] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.100370] prandom: seed boundary self test passed
[    0.103177] prandom: 100 self tests passed
[    0.103196] pinctrl core: initialized pinctrl subsystem
[    0.104406] NET: Registered protocol family 16
[    0.104761] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130087] cpuidle: using governor ladder
[    0.160085] cpuidle: using governor menu
[    0.160455] Feroceon L2: Enabling L2
[    0.160493] Feroceon L2: Cache support initialised.
[    0.160828] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.165231] No ATAGs?
[    0.191300] vgaarb: loaded
[    0.191605] usbcore: registered new interface driver usbfs
[    0.191672] usbcore: registered new interface driver hub
[    0.191725] usbcore: registered new device driver usb
[    0.192638] clocksource: Switched to clocksource orion_clocksource
[    0.237012] NET: Registered protocol family 2
[    0.237559] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.237617] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.237669] TCP: Hash tables configured (established 4096 bind 4096)
[    0.237720] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.237741] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.237914] NET: Registered protocol family 1
[    0.238252] RPC: Registered named UNIX socket transport module.
[    0.238262] RPC: Registered udp transport module.
[    0.238268] RPC: Registered tcp transport module.
[    0.238274] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.238293] PCI: CLS 0 bytes, default 32
[    0.238503] Unpacking initramfs...
[    0.722637] Freeing initrd memory: 6976K (df448000 - dfb18000)
[    0.722812] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.723738] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.723766] Initialise system trusted keyring
[    0.723864] audit: initializing netlink subsys (disabled)
[    0.723910] audit: type=2000 audit(0.720:1): initialized
[    0.724470] zpool: loaded
[    0.724484] zbud: loaded
[    0.724723] VFS: Disk quotas dquot_6.6.0
[    0.724777] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.725266] NFS: Registering the id_resolver key type
[    0.725300] Key type id_resolver registered
[    0.725307] Key type id_legacy registered
[    0.725329] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.725342] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.725525] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.725945] Key type big_key registered
[    0.741730] Key type asymmetric registered
[    0.741751] Asymmetric key parser 'x509' registered
[    0.741827] bounce: pool size: 64 pages
[    0.741894] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.741908] io scheduler noop registered
[    0.741918] io scheduler deadline registered
[    0.741967] io scheduler cfq registered (default)
[    0.743110] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.743664] irq: Cannot allocate irq_descs @ IRQ33, assuming pre-allocated
[    0.743988] irq: Cannot allocate irq_descs @ IRQ65, assuming pre-allocated
[    0.744619] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    0.744635] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.744648] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.744659] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.744668] pci_bus 0000:00: scanning bus
[    0.744692] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    0.744730] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x40
[    0.744931] pci_bus 0000:00: fixups for bus
[    0.744944] PCI: bus0: Fast back to back transfers disabled
[    0.744956] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    0.744965] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.744977] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    0.745086] pci_bus 0000:01: scanning bus
[    0.745126] pci 0000:01:00.0: [1033:0194] type 00 class 0x0c0330
[    0.745186] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
[    0.745256] pci 0000:01:00.0: calling pci_fixup_ide_bases+0x0/0x40
[    0.745311] pci 0000:01:00.0: PME# supported from D0 D3hot
[    0.745325] pci 0000:01:00.0: PME# disabled
[    0.745554] pci_bus 0000:01: fixups for bus
[    0.745570] PCI: bus1: Fast back to back transfers disabled
[    0.745580] pci_bus 0000:01: bus scan returning with max=01
[    0.745592] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.745604] pci_bus 0000:00: bus scan returning with max=01
[    0.745616] pci 0000:00:01.0: fixup irq: got 0
[    0.745625] pci 0000:00:01.0: assigning IRQ 00
[    0.745671] pci 0000:01:00.0: fixup irq: got 83
[    0.745681] pci 0000:01:00.0: assigning IRQ 83
[    0.745714] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    0.745729] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    0.745754] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.745767] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.745845] pci 0000:01:00.0: calling quirk_usb_early_handoff+0x0/0x630
[    0.745862] pci 0000:00:01.0: enabling device (0140 -> 0142)
[    0.745878] pci 0000:00:01.0: enabling bus mastering
[    0.745891] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    0.746128] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.783171] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.823174] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.823353] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.863159] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.903160] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.903564] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.904695] console [ttyS0] disabled
[    0.904751] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    1.607213] console [ttyS0] enabled
[    1.611785] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[    1.618197] nand: Eon NAND 128MiB 3,3V 8-bit
[    1.622486] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.630108] Scanning device for bad blocks
[    1.639051] Bad eraseblock 100 at 0x000000c80000
[    1.648470] Bad eraseblock 200 at 0x000001900000
[    1.690249] Bad eraseblock 979 at 0x000007a60000
[    1.697006] 4 cmdlinepart partitions found on MTD device orion_nand
[    1.703315] Creating 4 MTD partitions on "orion_nand":
[    1.708476] 0x000000000000-0x000000100000 : "u-boot"
[    1.714345] 0x000000100000-0x000000500000 : "uImage"
[    1.720127] 0x000000500000-0x000002500000 : "rootfs"
[    1.726007] 0x000002500000-0x000008000000 : "data"
[    1.732567] libphy: Fixed MDIO Bus: probed
[    1.736993] libphy: orion_mdio_bus: probed
[    1.745185] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.752477] mv643xx_eth: Set the PHY to fix link down
[    1.757982] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 5c:f4:ab:2f:f9:95
[    1.767219] xhci_hcd 0000:01:00.0: enabling bus mastering
[    1.767235] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.772496] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    1.780292] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    1.788730] xhci_hcd 0000:01:00.0: enabling Mem-Wr-Inval
[    1.788928] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.795783] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.803062] usb usb1: Product: xHCI Host Controller
[    1.807961] usb usb1: Manufacturer: Linux 4.2.0-kirkwood-tld-1 xhci-hcd
[    1.814620] usb usb1: SerialNumber: 0000:01:00.0
[    1.819829] hub 1-0:1.0: USB hub found
[    1.823667] hub 1-0:1.0: 2 ports detected
[    1.828132] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.833430] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    1.840931] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.849185] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    1.856026] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.863294] usb usb2: Product: xHCI Host Controller
[    1.868189] usb usb2: Manufacturer: Linux 4.2.0-kirkwood-tld-1 xhci-hcd
[    1.874847] usb usb2: SerialNumber: 0000:01:00.0
[    1.880024] hub 2-0:1.0: USB hub found
[    1.883856] hub 2-0:1.0: 2 ports detected
[    1.888377] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.895005] ehci-pci: EHCI PCI platform driver
[    1.899525] ehci-orion: EHCI orion driver
[    1.903739] orion-ehci f1050000.ehci: EHCI Host Controller
[    1.909269] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 3
[    1.917110] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    1.942669] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    1.948862] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    1.955699] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.962964] usb usb3: Product: EHCI Host Controller
[    1.967859] usb usb3: Manufacturer: Linux 4.2.0-kirkwood-tld-1 ehci_hcd
[    1.974517] usb usb3: SerialNumber: f1050000.ehci
[    1.979774] hub 3-0:1.0: USB hub found
[    1.983744] hub 3-0:1.0: 1 port detected
[    1.988382] mousedev: PS/2 mouse device common for all mice
[    1.994338] i2c /dev entries driver
[    1.998479] rtc-pcf8563 0-0051: chip found, driver version 0.4.4
[    2.010359] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    2.019000] hidraw: raw HID events driver (C) Jiri Kosina
[    2.024751] drop_monitor: Initializing network drop monitor service
[    2.031247] NET: Registered protocol family 17
[    2.035835] Key type dns_resolver registered
[    2.040811] Loading compiled-in X.509 certificates
[    2.045733] registered taskstats version 1
[    2.049891] zswap: loading zswap
[    2.053157] zswap: using zbud pool
[    2.056581] zswap: using lzo compressor
[    2.067525] Key type encrypted registered
[    2.073328] rtc-pcf8563 0-0051: setting system clock to 2015-12-05 07:57:15 UTC (1449302235)
[    2.082935] PM: Hibernation image not present or could not be loaded.
[    2.083990] Freeing unused kernel memory: 284K (c07db000 - c0822000)
[    2.153366] systemd-udevd[84]: starting version 215
[    2.159841] random: systemd-udevd urandom read with 4 bits of entropy available
[    2.300780] SCSI subsystem initialized
[    2.304665] usb 3-1: new high-speed USB device number 2 using orion-ehci
[    2.357700] libata version 3.00 loaded.
[    2.359259] sata_mv f1080000.sata: version 1.28
[    2.359519] sata_mv f1080000.sata: slots 32 ports 2
[    2.398851] scsi host0: sata_mv
[    2.414100] scsi host1: sata_mv
[    2.417537] ata1: SATA max UDMA/133 irq 32
[    2.421648] ata2: SATA max UDMA/133 irq 32
[    2.464508] usb 3-1: New USB device found, idVendor=05e3, idProduct=0608
[    2.471267] usb 3-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.483606] usb 3-1: Product: USB2.0 Hub
[    2.488741] hub 3-1:1.0: USB hub found
[    2.492866] hub 3-1:1.0: 4 ports detected
[    2.772664] usb 3-1.2: new high-speed USB device number 3 using orion-ehci
[    2.884614] usb 3-1.2: New USB device found, idVendor=125f, idProduct=dc5a
[    2.891527] usb 3-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.898897] usb 3-1.2: Product: ADATA USB Flash Drive
[    2.903983] usb 3-1.2: Manufacturer: ADATA
[    2.908093] usb 3-1.2: SerialNumber: 2350308150030180
[    2.921277] usb-storage 3-1.2:1.0: USB Mass Storage device detected
[    2.927944] scsi host2: usb-storage 3-1.2:1.0
[    2.933809] usbcore: registered new interface driver usb-storage
[    2.942303] usbcore: registered new interface driver uas
[    2.962702] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    2.982892] ata1.00: ATA-9: WDC WD30EZRX-00D8PB0, 80.00A80, max UDMA/133
[    2.989626] ata1.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    3.012874] ata1.00: configured for UDMA/133
[    3.032951] scsi 0:0:0:0: Direct-Access     ATA      WDC WD30EZRX-00D 0A80 PQ: 0 ANSI: 5
[    3.552672] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    3.572869] ata2.00: ATA-9: WDC WD30EZRX-00D8PB0, 80.00A80, max UDMA/133
[    3.579604] ata2.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    3.602864] ata2.00: configured for UDMA/133
[    3.622916] scsi 1:0:0:0: Direct-Access     ATA      WDC WD30EZRX-00D 0A80 PQ: 0 ANSI: 5
[    3.642076] sd 0:0:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[    3.653418] sd 1:0:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[    3.661208] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    3.667597] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    3.673184] sd 0:0:0:0: [sda] Write Protect is off
[    3.678003] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    3.678242] sd 1:0:0:0: [sdb] Write Protect is off
[    3.683156] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.693222] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    3.693355] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.764695]  sda: sda1
[    3.768526] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.163191] scsi 2:0:0:0: Direct-Access     ADATA    USB Flash Drive  1100 PQ: 0 ANSI: 4
[    4.175924] sd 2:0:0:0: [sdc] 31162368 512-byte logical blocks: (15.9 GB/14.8 GiB)
[    4.185729] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    4.191788] sd 2:0:0:0: [sdc] Write Protect is off
[    4.196735] sd 1:0:0:0: Attached scsi generic sg1 type 0
[    4.202229] sd 2:0:0:0: [sdc] Mode Sense: 43 00 00 00
[    4.202574] sd 2:0:0:0: Attached scsi generic sg2 type 0
[    4.208157] sd 2:0:0:0: [sdc] No Caching mode page found
[    4.217491] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[    4.233104]  sdc: sdc1
[    4.243162] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[    4.281658]  sdb: sdb1
[    4.287496] sd 1:0:0:0: [sdb] Attached SCSI disk
[   19.582571] EXT3-fs (sdc1): recovery required on readonly filesystem
[   19.589046] EXT3-fs (sdc1): write access will be enabled during recovery
[   24.161745] random: nonblocking pool is initialized
[   75.977002] kjournald starting.  Commit interval 5 seconds
[   75.988526] EXT3-fs (sdc1): recovery complete
[   75.992943] EXT3-fs (sdc1): mounted filesystem with ordered data mode
[   77.029263] systemd-udevd[298]: starting version 215
[   77.261324] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   77.457099] orion_wdt: Initial timeout 21 sec
[   79.137814] EXT3-fs (sdc1): using internal journal
[   81.056121] mv643xx_eth: Set the PHY back to auto-negotiation mode
[   81.391965] NET: Registered protocol family 10
[   81.397469] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   84.650912] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   84.660844] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   89.719433] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
[   89.732766] NFSD: starting 90-second grace period (net c0896740)
[  993.541959] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 1003.298466] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)

I bought second 3TB WD30EZRX drive yesterday. Took out small 1TB 2,5 Toshiba drive (This one had inproper block positioning).
My results are better now: 40MB/sec From one 3TB to another same model 3TB drive, but not which you have .

Main issue was with wrong block allignment on Toshiba.

Im thinking to set LVM on both hardrives as one space. What do you think about this? Pro/Cons on NAS?



Edited 1 time(s). Last edit at 12/05/2015 01:31AM by andsol.
Re: Slow file copy speed on Debian Zyxel NSA325 v2
December 05, 2015 02:13AM
andsol,

> Main issue was with wrong block allignment on
> Toshiba.

OK so the problem is solved.

>
> Im thinking to set LVM on both hardrives as one
> space. What do you think about this? Pro/Cons on
> NAS?

I don't really have an opinion on this one way or the other!

The speed of 3TB HDDs usually is slower than the smaller HDDs. So 40MB/s is not bad. My HDDs are 1TB and 750GB Seagate.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Slow file copy speed on Debian Zyxel NSA325 v2
December 05, 2015 08:31AM
@bodhi, one more question, Im trying to setup rootfs on new 3TB disk.
I use GPT, it looks like uBoot cant recognize it. Is that true? I get this:

U-Boot 2015.10-tld-1 (Nov 06 2015 - 16:09:38 -0800)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB (ECC not enabled)
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
No link on egiga0
ping failed; host 192.168.0.2 is not alive
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Unknown command 'mmc' - try 'help'

Reset IDE: Bus 0: OK Bus 1: OK
  Device 0: Model: WDC WD30EZRX-00D8PB0 Firm: 80.00A80 Ser#:  WD-WCC4N5SZ6555
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
  Device 1: Model: WDC WD30EZRX-00D8PB0 Firm: 80.00A80 Ser#:  WD-WMC4N0L4555
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)

no USB devices available
Unknown command 'mmc' - try 'help'

Partition Map for IDE device 0  --   Partition Type: EFI

Part    Start LBA       End LBA         Name
        Attributes
        Type GUID
        Partition GUID
  1     0x00000800      0x03b9afff      "rootfs"
        attrs:  0x0000000000000000
        type:   c12a7328-f81f-11d2-ba4b-00a0c95555
        guid:   a61dcfc6-55d2-4db7-8d41-64aa8f45555


Partition Map for IDE device 1  --   Partition Type: EFI

Part    Start LBA       End LBA         Name
        Attributes
        Type GUID
        Partition GUID
  1     0x00000800      0x15d50a38e     ""
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8455555
        guid:   c21b2048-869c-46dd-a627-cb6c0bd4555
loading envs from ide 0 ...
** File not found /boot/uEnv.txt **
** Bad device usb 0 **
** Bad device usb 0 **
** Bad device usb 0 **
Wrong Image Format for bootm command
Error occured, error code = 112
ERROR: can't get kernel image!

Here is details:

Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: CA0C12B1-0E44-468B-8842-DF79AC90555

Device     Start      End  Sectors  Size Type
/dev/sda1   2048 62500863 62498555 29.8G EFI System


root@nas:~# parted /dev/sda print
Model: ATA WDC WD30EZRX-00D (scsi)
Disk /dev/sda: 3001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name    Flags
 1      1049kB  32.0GB  32.0GB  ext3         rootfs  boot, esp
Re: Slow file copy speed on Debian Zyxel NSA325 v2
December 05, 2015 02:49PM
andsol,

GPT should work fine (it has been since the first u-boot version that I released). You could try to prepare the disk with Linux gdisk to make sure it is formatted correctly.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Slow file copy speed on Debian Zyxel NSA325 v2
December 06, 2015 12:40AM
Removed...



Edited 2 time(s). Last edit at 12/06/2015 01:53AM by andsol.
Re: Slow file copy speed on Debian Zyxel NSA325 v2
December 06, 2015 01:02AM
I found wat was the problem: Wrong environment settings in uBoot, I had non standart sesstions on old hardrive.

Could you add somewhre in FAQ that if you have set in env settings, rootfs load by label, it wont work on GPT.



Edited 5 time(s). Last edit at 12/06/2015 01:53AM by andsol.
Re: Slow file copy speed on Debian Zyxel NSA325 v2
December 06, 2015 11:03PM
andsol,

> Could you add somewhre in FAQ that if you have set
> in env settings, rootfs load by label, it wont
> work on GPT.

No, GPT partition table does not have anything to do with the roots label in bootargs that you use for booting :)

Based on what you've said, it seems your u-boot envs or setup configuration still has problem. If you want to troubleshoot it:

- make sure the rootfs partition is labeled rootfs.
- in serial console, get the listing of u-boot envs and post here.
- let it boot all the way and capture the boot log and post here.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 12/06/2015 11:04PM by bodhi.
the nsa is not bad. your windows operating system from from yourcomputer is not ok, especially win7.
I had the same problem, slow speed between 2 - 9 Mbps.

If you start playzone > file browser
(http://yourip/r51009,/playzone,/)
and see 50MBPS IN FTP, so ... I sugest to use pyload and file browser from nsa, not wondows explorer...
Author:

Your Email:


Subject:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 4 plus 17?
Message: