Warum ist mein Bandlaufwerk so langsam?

734
FUZxxl

Ich habe ein gebrauchtes Quantum Ultrium LTO-4-Bandlaufwerk gekauft und an einen HP Smart Array P400-SAS-Controller in meinem HP ProLiant N54l angeschlossen. Ich benutze FreeBSD 11 als mein Betriebssystem.

Jetzt habe ich ein Band eingelegt und den Benchmark von Baculas btapeBefehl ausgeführt:

$ btape /dev/nsa0 Tape block granularity is 1024 bytes. btape: butil.c:291-0 Using device: "/dev/nsa0" for writing. btape: btape.c:471-0 open device "LTO-4" (/dev/nsa0): OK *rewind btape: btape.c:576-0 Rewound "LTO-4" (/dev/nsa0) *speed btape: btape.c:1055-0 Test with zero data, should give the maximum throughput. btape: btape.c:904-0 Begin writing 3 files of 1.073 GB with raw blocks of 64512 bytes. ++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=1.073 GB. Write rate = 2.182 MB/s +++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=1.073 GB. Write rate = 4.511 MB/s +++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=1.073 GB. Write rate = 1.835 MB/s btape: btape.c:379-0 Total Volume bytes=3.221 GB. Total Write rate = 2.449 MB/s 

Dies (und einige andere Tests) bestätigen eine Schreibrate von etwa 2 MB / s, was unangemessen langsam ist. Warum ist das so? Was kann ich tun, um die Schreibgeschwindigkeit auf die erwartete Geschwindigkeit (z. B. 100 MB / s) zu erhöhen?

Bearbeiten

Es scheint, dass mit dem Controller etwas nicht stimmt. Nach einem Neustart war es mir möglich, Daten mit hoher Geschwindigkeit zu übertragen, bis eine Reihe von PCI-Fehlern auftraten und die Geschwindigkeit zu einem Crawlen führte:

ciss0: *** PCI-E LL correctable errors, count=10546, LLErrStatus=0x80000004 ciss0: *** PCI-E LL correctable errors, count=20570, LLErrStatus=0x80000004 ciss0: *** PCI-E LL correctable errors, count=30995, LLErrStatus=0x80000004 ciss0: *** PCI-E LL correctable errors, count=41101, LLErrStatus=0x80000004 ciss0: *** PCI-E LL correctable errors, count=51400, LLErrStatus=0x80000004 ciss0: *** PCI-E LL correctable errors, count=61729, LLErrStatus=0x80000004 

Vielleicht sitzt die Karte falsch oder ähnliches.

1
Welches Bandlaufwerk-Modell hast du? Adam Silenko vor 7 Jahren 0
@AdamSilenko TC-L42AN / BRSLA-0703-DC FUZxxl vor 7 Jahren 0
Versuchen Sie es mit `dd`? psusi vor 7 Jahren 0
@psusi Ich habe das Bandlaufwerk mit verschiedenen Programmen getestet. Es scheint, dass ich unabhängig vom verwendeten Programm immer eine konstante Anzahl von Lese- oder Schreibaufforderungen pro Sekunde an das Bandlaufwerk senden kann. Die Größe einer Anfrage ist jedoch auf 128 kB begrenzt, was zu einer sehr schlechten Leistung führt. Ich weiß nicht, was dieses Problem verursacht. FUZxxl vor 7 Jahren 0
Stecken Sie die Karte in einen anderen PCIe-Steckplatz Adam Silenko vor 6 Jahren 0
Dies ist wahrscheinlich ein Hardwareproblem ... Ersetzen Sie das SAS-Kabel. Sie können auch PCie-Kartenpunkte bereinigen. Fehler können auftreten, wenn einige Kondensatoren beschädigt sind oder die Stromversorgung unterbrochen wurde. Wenn nicht, haben Sie den MB- oder SAS-Controller beschädigt Adam Silenko vor 6 Jahren 0
@AdamSilenko Danke. Ich werde versuchen, den PCIe-Stecker an diesem Wochenende zu säubern, er saß zwei Jahre lang ungenutzt und ist wahrscheinlich voller Staub, der eine Verbindung verhindert (also die Busfehler). Ich habe auch ein Ersatz-SAS-Kabel gekauft und werde es versuchen. Leider kann ich keinen anderen PCIe-Steckplatz testen, da der einzige andere Steckplatz zu kurz ist (das Aufsägen ist keine Option, da sich hinter ihm ein Haufen Müll befindet). FUZxxl vor 6 Jahren 0

2 Antworten auf die Frage

0
Adam Silenko

Minimale und maximale Lese- und Schreibgeschwindigkeiten sind vom Laufwerk abhängig.
Maximale unkomprimierte Geschwindigkeit in 120 MBit / s für LTO-4.
Quantum LTO-4 HH-Bandlaufwerke verfügen über komprimierte Übertragungsraten von bis zu 576 GB / h. Eine 2: 1-Komprimierung wird vorausgesetzt.
Die tatsächliche Höchstgeschwindigkeit dieses Laufwerks beträgt: 576 GB / h / 2 = 288 * 1024 MB / 3600 s = 81,92 MBit / s. Von der Antriebsspezifikation:

Datenratenabgleichbereich: 33 bis 80 MB / s nativ

Sie erhalten also niemals 100 MB / s

Bearbeiten:
Lesen Sie mehr über das Testen Ihres Bandlaufwerks mit Bacula .
Stellen Sie die Datei bacula-sd.conf ein und vergewissern Sie sich, dass Bacula (der Storage-Daemon) nicht aktiv ist oder dass Sie das zum Testen zu verwendende Laufwerk ausgehängt haben.

Dies ist zwar richtig (und mir bekannt), aber eine Geschwindigkeit von 2 MB / s ist unangemessen langsam. Ich vermute, es gibt ein Problem, das verhindert, dass der Benchmark Daten mit einer angemessenen Geschwindigkeit an das Laufwerk sendet. FUZxxl vor 7 Jahren 0
Verwenden Sie ein sauberes neues LTO-4-Band zum Testen? Adam Silenko vor 7 Jahren 0
Das für meine Tests verwendete Band wurde noch nie verwendet, bevor ich mit dem Testen des Bandlaufwerks begonnen habe. FUZxxl vor 7 Jahren 0
0
FUZxxl

Ich habe den HP SmartArray P400 SAS-Controller gegen einen LSI 3041E SAS-Controller ausgetauscht. Dies löste meine Leistungsprobleme, ich kann jetzt bequem mit hoher Geschwindigkeit sichern (in der Praxis kann ich etwa 70 MB / s erreichen). Nachfolgend finden Sie die Ausgabe des zuvor verwendeten Leistungstests:

$ btape /dev/nsa0 Tape block granularity is 1024 bytes. btape: butil.c:291-0 Using device: "/dev/nsa0" for writing. btape: btape.c:471-0 open device "LTO-4" (/dev/nsa0): OK *rewind btape: btape.c:576-0 Rewound "LTO-4" (/dev/nsa0) *speed btape: btape.c:1055-0 Test with zero data, should give the maximum throughput. btape: btape.c:904-0 Begin writing 3 files of 1.073 GB with raw blocks of 64512 bytes. ++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=1.073 GB. Write rate = 71.58 MB/s +++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=1.073 GB. Write rate = 119.3 MB/s +++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=1.073 GB. Write rate = 134.2 MB/s btape: btape.c:379-0 Total Volume bytes=3.221 GB. Total Write rate = 100.6 MB/s  btape: btape.c:904-0 Begin writing 3 files of 2.147 GB with raw blocks of 64512 bytes. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=2.147 GB. Write rate = 143.1 MB/s +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=2.147 GB. Write rate = 153.3 MB/s ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=2.147 GB. Write rate = 143.1 MB/s btape: btape.c:379-0 Total Volume bytes=6.442 GB. Total Write rate = 146.4 MB/s  btape: btape.c:904-0 Begin writing 3 files of 4.294 GB with raw blocks of 64512 bytes. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=4.295 GB. Write rate = 165.1 MB/s +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=4.295 GB. Write rate = 165.1 MB/s +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=4.295 GB. Write rate = 165.1 MB/s btape: btape.c:379-0 Total Volume bytes=12.88 GB. Total Write rate = 165.1 MB/s  btape: btape.c:1067-0 Test with random data, should give the minimum throughput. btape: btape.c:904-0 Begin writing 3 files of 1.073 GB with raw blocks of 64512 bytes. ++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=1.073 GB. Write rate = 53.69 MB/s +++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=1.073 GB. Write rate = 51.13 MB/s +++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=1.073 GB. Write rate = 53.69 MB/s btape: btape.c:379-0 Total Volume bytes=3.221 GB. Total Write rate = 52.80 MB/s  btape: btape.c:904-0 Begin writing 3 files of 2.147 GB with raw blocks of 64512 bytes. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=2.147 GB. Write rate = 59.65 MB/s +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=2.147 GB. Write rate = 58.04 MB/s ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=2.147 GB. Write rate = 58.04 MB/s btape: btape.c:379-0 Total Volume bytes=6.442 GB. Total Write rate = 58.56 MB/s  btape: btape.c:904-0 Begin writing 3 files of 4.294 GB with raw blocks of 64512 bytes. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=4.295 GB. Write rate = 60.49 MB/s +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=4.295 GB. Write rate = 70.41 MB/s +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=4.295 GB. Write rate = 69.27 MB/s btape: btape.c:379-0 Total Volume bytes=12.88 GB. Total Write rate = 66.41 MB/s  btape: btape.c:1081-0 Test with zero data and bacula block structure. btape: btape.c:959-0 Begin writing 3 files of 1.073 GB with blocks of 64512 bytes. +++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=1.073 GB. Write rate = 71.58 MB/s +++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=1.073 GB. Write rate = 76.70 MB/s +++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=1.073 GB. Write rate = 71.58 MB/s btape: btape.c:379-0 Total Volume bytes=3.221 GB. Total Write rate = 73.21 MB/s  btape: btape.c:959-0 Begin writing 3 files of 2.147 GB with blocks of 64512 bytes. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=2.147 GB. Write rate = 93.37 MB/s +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=2.147 GB. Write rate = 85.90 MB/s ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=2.147 GB. Write rate = 89.48 MB/s btape: btape.c:379-0 Total Volume bytes=6.442 GB. Total Write rate = 89.48 MB/s  btape: btape.c:959-0 Begin writing 3 files of 4.294 GB with blocks of 64512 bytes. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=4.295 GB. Write rate = 97.61 MB/s +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=4.295 GB. Write rate = 99.88 MB/s ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=4.295 GB. Write rate = 97.61 MB/s btape: btape.c:379-0 Total Volume bytes=12.88 GB. Total Write rate = 98.35 MB/s  btape: btape.c:1093-0 Test with random data, should give the minimum throughput. btape: btape.c:959-0 Begin writing 3 files of 1.073 GB with blocks of 64512 bytes. +++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=1.073 GB. Write rate = 41.30 MB/s +++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=1.073 GB. Write rate = 39.77 MB/s +++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=1.073 GB. Write rate = 41.30 MB/s btape: btape.c:379-0 Total Volume bytes=3.221 GB. Total Write rate = 40.77 MB/s  btape: btape.c:959-0 Begin writing 3 files of 2.147 GB with blocks of 64512 bytes. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=2.147 GB. Write rate = 45.69 MB/s +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=2.147 GB. Write rate = 44.74 MB/s ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=2.147 GB. Write rate = 44.74 MB/s btape: btape.c:379-0 Total Volume bytes=6.442 GB. Total Write rate = 45.05 MB/s  btape: btape.c:959-0 Begin writing 3 files of 4.294 GB with blocks of 64512 bytes. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=4.295 GB. Write rate = 45.69 MB/s +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=4.295 GB. Write rate = 49.94 MB/s ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ btape: btape.c:606-0 Wrote 1 EOF to "LTO-4" (/dev/nsa0) btape: btape.c:405-0 Volume bytes=4.295 GB. Write rate = 51.13 MB/s btape: btape.c:379-0 Total Volume bytes=12.88 GB. Total Write rate = 48.80 MB/s  *quit 

Ich bin mir ziemlich sicher, dass diese Reihe von SAS-Controllern Bandlaufwerke im Allgemeinen nicht mag, wie die folgenden Tests zeigen, die ich durchgeführt habe:

  • Ich habe den SmartArray P400 gegen einen anderen Controller der gleichen Art ausgetauscht, mit gleichen Ergebnissen PCI-E LL correctable errors.
  • Ich habe das Kabel gegen ein anderes ausgetauscht, dasselbe Ergebnis.
  • Ich habe ein Festplattenlaufwerk an die SmartArray P400-Karte angeschlossen, es funktionierte ohne Probleme.