File server

33 41174
[ 2692.866640] ata1: link is slow to respond, please be patient (ready=0)
[ 2693.586384] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 2693.592523] ata1.00: supports DRM functions and may not be fully accessible
[ 2693.598663] ata1.00: ATA-9: Samsung SSD 840 EVO 120GB, EXT0BB6Q, max UDMA/133
[ 2693.604320] ata1.00: 234441648 sectors, multi 1: LBA48 NCQ (depth 31/32)
[ 2693.611102] ata1.00: supports DRM functions and may not be fully accessible
[ 2693.614351] ata1.00: configured for UDMA/133
[ 2693.616356] ata1: EH complete
[ 2693.623855] scsi 0:0:0:0: Direct-Access     ATA      Samsung SSD 840  EXT0 PQ: 0 ANSI: 5
[ 2693.632289] sd 0:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/111 GiB)
[ 2693.639160] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[ 2693.645821] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[ 2693.651472] sd 0:0:0:0: [sda] Write Protect is off
[ 2693.658006] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[ 2693.664598] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[ 2693.668795] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 2693.675496] platform reg-20-cs-buck2: Driver reg-20-cs-buck2 requests probe deferral
[ 2693.682567] platform reg-20-cs-buck3: Driver reg-20-cs-buck3 requests probe deferral
[ 2693.691893] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 2693.696040]  sda: sda1
[ 2693.700975] sd 0:0:0:0: [sda] Attached SCSI disk
[ 2693.713184] sd 0:0:0:0: Attached scsi generic sg0 type 0

Can somebody please check the speed of a connected SATA drive with the following commands:

write: dd if=/dev/zero of=/media/hdd/test.tmp bs=500K count=1024
read:  dd if=/media/hdd/test.tmp of=/dev/null bs=500K count=1024

Please adapt the path to fit to your mounted sata drive.

Post Last Edited by superpippo82xxx at 2014-7-15 03:40

Reply 22# shv

This is the output:

    pi@lemaker / $ sudo dd if=/dev/zero of=/media/a49478be-d7c7-49d5-a8fc-82d3ca38d1d9/test.tmp bs=500K count=1024
1024+0 records in
1024+0 records out
524288000 bytes (524 MB) copied, 12.4642 s, 42.1 MB/s
pi@lemaker / $ sudo dd if=/media/a49478be-d7c7-49d5-a8fc-82d3ca38d1d9/test.tmp of=/dev/null bs=500K count=1024
1024+0 records in
1024+0 records out
524288000 bytes (524 MB) copied, 3.78863 s, 138 MB/s
pi@lemaker / $

PS: i'm using Hitachi 750GB 7200rpm DISK

Reply 22# shv

$ sudo dd if=/dev/zero of=/mnt/kkk.tmp bs=500K count=10241024+0 records in
1024+0 records out
524288000 bytes (524 MB) copied, 13.1785 s, 39.8 MB/s
$ sudo dd if=/mnt/kkk.tmp of=/dev/null bs=500K count=1024
1024+0 records in
1024+0 records out
524288000 bytes (524 MB) copied, 1.95606 s, 268 MB/s

I'm using arch linux and ST750LM022 750GB disk

Post Last Edited by myworld at 2014-7-16 06:10

If i interpret this the right way, theres a limitation in the TLB. It seems like he has lot of lookups in the page table, in case too big page sizes.

But unfortunately i'm no expert :-( Please correct me in case of terrible missunderstanding.

If this would be true, there is a simple solution to format the file system to block sizes around 500KiB.

anybody who actually completed their file server with a good performance ? i've build server with vsftpd but i cant get more than 12mb/s .. i am on a 1gib/s connection ...

Oh .. it was my fault .. i managed to find the error ... my ethernet cable was broken or something ... i dont know .. anyway .. i just replaced my ethernet cable and now its over 33mb/s

Post Last Edited by PiJohn at 2014-7-27 02:00

Hi all,
could you check what is the performance when you format the filesystem with high cluster size, i.e. 512KB or something? myworld might be right. I'm thinking about using Banana Pi as file server, but don't want to spend 50$ if it's that slow. You might also test different filesystems (ext2, ext4) to see how they work.
And one more question: Is the SATA driver in Banana PI able to put the disk on sleep mode, like this:
  1. hdparm -y /dev/sdX
Copy the Code

Post Last Edited by rv48 at 2014-7-30 03:12

I saw an article where it's said that the ethernet port is limitated to 266Mb/s ( 32MB/s ) so it can explain your speed limitation. That can explain your same speed with USB and SATA because the Ethernet is the thing which limit the speed not the USB or SATA.
Despite your HDD through SATA can deliver 268MB/s, you can't have a faster NAS. But that mean that the SATA port is good to be used locally at full speed.
Now the question is why we can't use the Gigabit Ethernet at full speed? Bad controller?
Source: ... tier-than-raspberry

Can you please explain how you did this?

I'm limited by my 100/10 switch, so the BananaPi's speed is good enough for me

You have to log in before you can reply Login | Sign Up

Points Rules