Festplatten im Homeserver allesamt zu langsam

bra-tak

Lt. Junior Grade
Registriert
Apr. 2009
Beiträge
449
Hallo, ich habe gerade mal mir hd-parm meine Festplattengeschwindigkeiten in meinem kleinen Homeserver gemessen, und bin total erschrocken...

Code:
root@HomeServer:~# sudo hdparm -tT --direct /dev/sda

/dev/sda:
 Timing O_DIRECT cached reads:    48 MB in  2.00 seconds =  23.99 MB/sec
 Timing O_DIRECT disk reads: 108 MB in  3.01 seconds =  35.85 MB/sec
root@HomeServer:~# sudo hdparm -tT --direct /dev/sdb

/dev/sdb:
 Timing O_DIRECT cached reads:    70 MB in  2.00 seconds =  34.98 MB/sec
 Timing O_DIRECT disk reads: 102 MB in  3.01 seconds =  33.88 MB/sec
root@HomeServer:~# sudo hdparm -tT --direct /dev/sdc

/dev/sdc:
 Timing O_DIRECT cached reads:    58 MB in  2.00 seconds =  29.00 MB/sec
 Timing O_DIRECT disk reads:  68 MB in  3.34 seconds =  20.35 MB/sec
root@HomeServer:~# sudo hdparm -tT --direct /dev/sdd

/dev/sdd:
 Timing O_DIRECT cached reads:    66 MB in  2.01 seconds =  32.90 MB/sec
 Timing O_DIRECT disk reads: 100 MB in  3.01 seconds =  33.26 MB/sec
root@HomeServer:~# sudo hdparm -tT --direct /dev/disk/by-uuid/a1e214e9-0069-4ee9-99f4-b2d673ae6af5

/dev/disk/by-uuid/a1e214e9-0069-4ee9-99f4-b2d673ae6af5:
 Timing O_DIRECT cached reads:    60 MB in  2.02 seconds =  29.72 MB/sec
 Timing O_DIRECT disk reads:  98 MB in  3.00 seconds =  32.65 MB/sec
hier mal die Festplattentypen:
- sda = SSD via SATAII
- sdb = 3,5"HD via USB 2.0
- sdc = 2,5"HD via SATAII
- sdd = 3,5"HD via USB 2.0
- by-uuid... = sda

kann mir einer erklären, was da los ist? Hab ich da grundlegend étwas falsch konfiguriert?
 
USB 2 ist langsam, welche Platten hast du denn verbaut?
 
Für USB 2.0 finde ich die Werte sogar echt gut. Bei der 2,5'' Platte müsste man mal das Modell wissen. Die älteren sind durchaus recht langsam.
 
evilbaschdi schrieb:
USB 2 ist langsam, welche Platten hast du denn verbaut?
lesen, steht dort alles!

HaZu schrieb:
Für USB 2.0 finde ich die Werte sogar echt gut. Bei der 2,5'' Platte müsste man mal das Modell wissen. Die älteren sind durchaus recht langsam.

Code:
root@HomeServer:~# hwinfo --disk
> hal.1: read hal dataprocess 10579: arguments to dbus_move_error() were incorrect, assertion "(dest) == NULL || !dbus_error_is_set ((dest))" failed in file ../../dbus/dbus-errors.c line 282.
This is normally a bug in some application using the D-Bus library.
libhal.c 3483 : Error unsubscribing to signals, error=The name org.freedesktop.Hal was not provided by any .service files
16: IDE 00.0: 10600 Disk
  [Created at block.243]
  Unique ID: 3OOL.8CEYyDFPma2
  Parent ID: w7Y8.i7o0VTodD44
  SysFS ID: /class/block/sda
  SysFS BusID: 0:0:0:0
  SysFS Device Link: /devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0
  Hardware Class: disk
  Model: "A SP800"
  Vendor: "ADATA"
  Device: "SP800"
  Revision: "5.0."
  Serial ID: "03314125500100000136"
  Driver: "ahci", "sd"
  Driver Modules: "ahci"
  Device File: /dev/sda
  Device Files: /dev/sda, /dev/disk/by-id/ata-ADATA_SP800_03314125500100000136, /dev/disk/by-id/scsi-SATA_ADATA_SP800_03314125500100000136, /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0
  Device Number: block 8:0-8:15
  Geometry (Logical): CHS 3892/255/63
  Size: 62533296 sectors a 512 bytes
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #13 (SATA controller)

17: SCSI 400.0: 10600 Disk
  [Created at block.243]
  Unique ID: wkjR.CdO9YkSOyzE
  Parent ID: 5YuN.UCBpAWV6Y_9
  SysFS ID: /class/block/sdb
  SysFS BusID: 4:0:0:0
  SysFS Device Link: /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0/host4/target4:0:0/4:0:0:0
  Hardware Class: disk
  Model: "SAMSUNG HD154UI"
  Vendor: usb 0x0c0b "SAMSUNG"
  Device: usb 0xb159 "HD154UI"
  Serial ID: "00EFDC04"
  Driver: "usb-storage", "sd"
  Driver Modules: "usb_storage"
  Device File: /dev/sdb (/dev/sg1)
  Device Files: /dev/sdb, /dev/disk/by-id/usb-SAMSUNG_HD154UI_00EFDC04-0:0, /dev/disk/by-path/pci-0000:00:1d.7-usb-0:5:1.0-scsi-0:0:0:0
  Device Number: block 8:16-8:31 (char 21:1)
  Geometry (Logical): CHS 182401/255/63
  Size: 2930277168 sectors a 512 bytes
  Speed: 480 Mbps
  Module Alias: "usb:v0C0BpB159d0112dc00dsc00dp00ic08isc06ip50in00"
  Driver Info #0:
    Driver Status: usb_storage is active
    Driver Activation Cmd: "modprobe usb_storage"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #10 (USB Controller)

18: IDE 100.0: 10600 Disk
  [Created at block.243]
  Unique ID: _kuT.nqWbecooCoB
  Parent ID: w7Y8.i7o0VTodD44
  SysFS ID: /class/block/sdc
  SysFS BusID: 1:0:0:0
  SysFS Device Link: /devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0
  Hardware Class: disk
  Model: "WDC WD2500BEVS-2"
  Vendor: "WDC"
  Device: "WD2500BEVS-2"
  Revision: "01.0"
  Serial ID: "WD-WXCX07559214"
  Driver: "ahci", "sd"
  Driver Modules: "ahci"
  Device File: /dev/sdc
  Device Files: /dev/sdc, /dev/disk/by-id/ata-WDC_WD2500BEVS-22UST0_WD-WXCX07559214, /dev/disk/by-id/scsi-SATA_WDC_WD2500BEVS-_WD-WXCX07559214, /dev/disk/by-id/wwn-0x50014ee255f82bb3, /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0
  Device Number: block 8:32-8:47
  Geometry (Logical): CHS 30401/255/63
  Size: 488397168 sectors a 512 bytes
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #13 (SATA controller)

19: SCSI 500.0: 10600 Disk
  [Created at block.243]
  Unique ID: MtLc.exE+3mNmsOA
  Parent ID: 5YuN.UCBpAWV6Y_9
  SysFS ID: /class/block/sdd
  SysFS BusID: 5:0:0:0
  SysFS Device Link: /devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/host5/target5:0:0/5:0:0:0
  Hardware Class: disk
  Model: "DMI HD154UI"
  Vendor: usb 0x13fd "DMI"
  Device: usb 0x1e40 "HD154UI"
  Revision: "1.06"
  Serial ID: "S1XWJ9DZC00205"
  Driver: "usb-storage", "sd"
  Driver Modules: "usb_storage"
  Device File: /dev/sdd (/dev/sg3)
  Device Files: /dev/sdd, /dev/disk/by-id/ata-SAMSUNG_HD154UI_S1XWJ9DZC00205, /dev/disk/by-id/scsi-SDMI_HD154UI_S1XWJ9DZC00205, /dev/disk/by-id/wwn-0x50024e92040e82b8, /dev/disk/by-path/pci-0000:00:1d.7-usb-0:6:1.0-scsi-0:0:0:0
  Device Number: block 8:48-8:63 (char 21:3)
  Geometry (Logical): CHS 182401/255/63
  Size: 2930277168 sectors a 512 bytes
  Speed: 480 Mbps
  Module Alias: "usb:v13FDp1E40d0106dc00dsc00dp00ic08isc02ip50in00"
  Driver Info #0:
    Driver Status: usb_storage is active
    Driver Activation Cmd: "modprobe usb_storage"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #10 (USB Controller)

die 2,5" Platte ist demnach von WD. Und so alt ist die auch noch nicht.
 
Bei der SSD (sda)könnte es am Aligment liegen. Kannst du da mal einen "fdisk -cul" machen.

Die USB-Platten sind ok. und die sdc ist ggf. wirklich langsam
 
sdb, c und d passen.

sda ist ungewöhnlich langsam, am alignment kann das nicht liegen. AHCI eingeschaltet? Sehr komisch.

Grüße
gt
 
Ich würde denken, die Datenmenge ist viel zu klein, um da was zu messen. HDDs haben einen Durchsatz zw. 100-130MB/s. Ich würde versuchen 10 Sekunden bzw. ca. 1GB auszulesen.
 
GrandTheft schrieb:
sdb, c und d passen.

sda ist ungewöhnlich langsam, am alignment kann das nicht liegen. AHCI eingeschaltet? Sehr komisch.

Grüße
gt
ist sdc nicht auch viel zu lahm? 30mb/s bei einer SATAII Platte...
AHCI steht da ja drin, also gehe ich von eingeschaltet aus.
 
Mach mal jeweils ein
dd if=disk of=/dev/null BS=4096 count=100k
Oder auch count=1M
Damit liest du von den platten. Vielleicht sehen die Werte dann anders aus.
Wäre auch gut zu wissen was sonst an HW im Rechner steckt.
 
O_DIRECT (Since Linux 2.4.10)
Try to minimize cache effects of the I/O to and from this file. In
general this will degrade performance, but it is useful in special
situations, such as when applications do their own caching. File I/O
is done directly to/from user space buffers. The O_DIRECT flag on its
own makes at an effort to transfer data synchronously, but does not
give the guarantees of the O_SYNC that data and necessary metadata are
transferred. To guarantee synchronous I/O the O_SYNC must be used in
addition to O_DIRECT. See NOTES below for further discussion.

läuft neben hdparm alles bei dir im O_DIRECT modus ?

das ist eben der Preis für die Datenintegrität, wobei der Durchsatz mit der SSD schon dürftig ist :/


auch interessant:

http://www.thomas-krenn.com/de/wiki/Direct_und_synchronized_I/O_unter_Linux


wie schnell läuft das ganze denn ohne O_DIRECT ? - dann hast du deinen Anhalt, ob irgendwas limitiert wird,

falls nicht ist es wohl so langsam (wäre besonders bezogen auf die SSD gut zu wissen)


lässt sich die Leistung optimieren, wenn es wirklich auf Datenintegrität ankommt ?

kenne mich damit noch nicht so aus


momentan setze ich vorwiegend nur auf Dateisysteme mit Prüfsummen (btrfs ,ZFS)

und demnächst auf dem Server auf ZFS + ECC Speicher


ein Kompromiss wäre ja, Caches zu erhalten aber möglichst klein zu machen
 
Zuletzt bearbeitet:
Da die Messwerte der 4 doch sehr unterschiedlichen Platten nahezu gleich sind, sind die Platten selbst offenbar nicht der begrenzenden Faktor. Mangels weiterer Infos kann man zur Ursache nur orakeln.

Sannyboy111985 schrieb:
Wäre auch gut zu wissen was sonst an HW im Rechner steckt.
Eben. Dazu noch die Bootmeldung des Kernels, um zu sehen, ob beim Start der Treiber für die Plattencontroller irgendwelche Merkwürdigkeiten gemeldet werden.
 
sobald ich morgen wieder zu hause bin, melde ich alles.
Der Server ist ein Intel DN2800MT.
 
Zurück
Oben