Langsamere Dateierstellung auf einem schnelleren Server. Warum?

369
Steffen Heil

Ich habe zwei Server. Der alte hat 24 GB RAM, i7-950 @ 3,0 GHz, 2x 1,5 TB SATA HDD (ST31500341AS).

Das neue Gerät verfügt über 32 GB RAM, i7-3770 @ 3,4 GHz, 2x 3,0 TB SATA-Festplatte (ST3000DM001-9YN166).

Jetzt ist mir aufgefallen, dass das Erstellen einer neuen virtuellen Maschine auf dem neuen Host etwa doppelt so lange dauert wie auf dem alten Host, auch wenn die neue CPU um 66% schneller sein sollte als die alte und sie über mehr Speicher verfügt. Auch die Festplatten waren beim ersten Raid-Sync schneller, aber ich habe keine Zahlen dazu.

Also hatte ich den Verdacht, dass die Festplatten der limitierende Faktor sind, und ich habe auf beiden Systemen bonnie ++ ausgeführt.

Beide Systeme laufen unter Ubuntu 12.04 und die Tests fanden auf einem LVM-Volume statt, das mit xfs formatiert wurde, Lazy-Counter aktiviert.

Ergebnisse des alten Servers: (der gleichzeitig mit der Verwaltung von 10 produktiven Xen-VMs beschäftigt war.)

Version 1.96 ------Sequential Output------ --Sequential Input- --Random- Concurrency 8 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP 1432M 499 97 57940 11 36990 10 657 98 64289 9 195.1 6 Latency 31917us 35567us 340ms 40027us 162ms 445ms Version 1.96 ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 256 6232 26 12543 19 5888 23 4247 17 317 0 368 1 Latency 1199ms 95254us 1804ms 2313ms 1183ms 12470ms 

Ergebnisse des neuen Servers: (Der zur gleichen Zeit nicht mit der Verwaltung einer inaktiven Sicherungs-VM beschäftigt war.)

Version 1.96 ------Sequential Output------ --Sequential Input- --Random- Concurrency 8 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP 11G 447 96 93517 14 59222 18 644 97 144128 21 310.6 11 Latency 58753us 299ms 575ms 45753us 292ms 238ms Version 1.96 ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 256 4838 16 321243 100 4927 12 4601 16 309249 99 405 1 Latency 3598ms 466us 8146ms 2342ms 58us 13765ms 

Ich denke, das zeigt deutlich, dass die Lese- / Schreibleistung auf dem neuen Server tatsächlich viel besser ist als auf dem alten Server. (Möglicherweise aufgrund von schnelleren Festplatten oder aufgrund der Belastung des alten Servers). Das Erstellen und Löschen von Dateien ist jedoch viel langsamer.

Was kann ich tun, um dies zu verbessern oder zu analysieren?

Dies ist die lspciAusgabe des alten Servers:

00:00.0 Host bridge: Intel Corporation 5520/5500/X58 I/O Hub to ESI Port (rev 13) 00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 13) 00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 13) 00:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 13) 00:14.0 PIC: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers (rev 13) 00:14.1 PIC: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 13) 00:14.2 PIC: Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 13) 00:14.3 PIC: Intel Corporation 5520/5500/X58 I/O Hub Throttle Registers (rev 13) 00:1a.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4 00:1a.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5 00:1a.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6 00:1a.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2 00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1 00:1c.4 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 5 00:1d.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1 00:1d.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2 00:1d.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3 00:1d.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90) 00:1f.0 ISA bridge: Intel Corporation 82801JIR (ICH10R) LPC Interface Controller 00:1f.2 SATA controller: Intel Corporation 82801JI (ICH10 Family) SATA AHCI Controller 00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller 02:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RV620 LE [Radeon HD 3450] 02:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI RV620 HDMI Audio [Radeon HD 3400 Series] 07:00.0 Ethernet controller: Intel Corporation 82541PI Gigabit Ethernet Controller (rev 05) ff:00.0 Host bridge: Intel Corporation Xeon 5500/Core i7 QuickPath Architecture Generic Non-Core Registers (rev 05) ff:00.1 Host bridge: Intel Corporation Xeon 5500/Core i7 QuickPath Architecture System Address Decoder (rev 05) ff:02.0 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Link 0 (rev 05) ff:02.1 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Physical 0 (rev 05) ff:03.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller (rev 05) ff:03.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Target Address Decoder (rev 05) ff:03.4 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Test Registers (rev 05) ff:04.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Control Registers (rev 05) ff:04.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Address Registers (rev 05) ff:04.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Rank Registers (rev 05) ff:04.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Thermal Control Registers (rev 05 ) ff:05.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Control Registers (rev 05) ff:05.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Address Registers (rev 05) ff:05.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Rank Registers (rev 05) ff:05.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Thermal Control Registers (rev 05 ) ff:06.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Control Registers (rev 05) ff:06.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Address Registers (rev 05) ff:06.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Rank Registers (rev 05) ff:06.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Thermal Control Registers (rev 05 ) 

Und das ist die lspciAusgabe des neuen Servers:

00:00.0 Host bridge: Intel Corporation Ivy Bridge DRAM Controller (rev 09) 00:01.0 PCI bridge: Intel Corporation Ivy Bridge PCI Express Root Port (rev 09) 00:02.0 VGA compatible controller: Intel Corporation Ivy Bridge Graphics Controller (rev 09) 00:14.0 USB controller: Intel Corporation Panther Point USB xHCI Host Controller (rev 04) 00:16.0 Communication controller: Intel Corporation Panther Point MEI Controller #1 (rev 04) 00:1a.0 USB controller: Intel Corporation Panther Point USB Enhanced Host Controller #2 (rev 04) 00:1c.0 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 1 (rev c4) 00:1c.4 PCI bridge: Intel Corporation Panther Point PCI Express Root Port 5 (rev c4) 00:1d.0 USB controller: Intel Corporation Panther Point USB Enhanced Host Controller #1 (rev 04) 00:1f.0 ISA bridge: Intel Corporation Panther Point LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation Panther Point 6 port SATA Controller [AHCI mode] (rev 04) 00:1f.3 SMBus: Intel Corporation Panther Point SMBus Controller (rev 04) 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 09) 
1
Cross-Post bitte nicht an mehrere Stack Exchange-Standorte. Es reicht aus, auf der am besten geeigneten Website zu posten. Michael Hampton vor 11 Jahren 0
Ja, ich habe es zuerst hier veröffentlicht, weil ich nicht an serverfault.com dachte. Kurz darauf las ich eine Frage mit einem Hinweis darauf und dachte mir, dass dies die passendere Seite ist, also habe ich sie dort veröffentlicht. Ich glaube, ich kann keine Fragen verschieben, oder? Steffen Heil vor 11 Jahren 0
Da Sie es bereits dort gepostet haben, könnten Sie dieses löschen, nehme ich an. Michael Hampton vor 11 Jahren 0
Für alle, die an dieser Frage interessiert sind: Siehe http://serverfault.com/questions/501170/slower-file-create-on-faster-server-why Steffen Heil vor 11 Jahren 0

0 Antworten auf die Frage