Überprüfen Sie die Diskette auf Probleme mit Debian Lenny

1229
Equ

Ich habe gerade ein VPS-Hosting mit Debian Lenny gekauft (ich bin neu auf der ganzen Welt). Ich konnte alles installieren und einrichten, was ich brauche. Meine Test-Website funktioniert wie erwartet schnell, ist jedoch manchmal sehr langsam (Reaktionszeit beträgt etwa 5-10 Sekunden). Ich habe alles überprüft und es scheint, dass es Probleme mit der Festplatte gibt.

Wie kann ich die Festplatte auf Probleme / Leistung überprüfen? Was könnte ein solches Verhalten sonst noch verursachen?

Vielen Dank!

0

1 Antwort auf die Frage

1
David Spillett

You can't check for hardware disk problems/performance as your system is a VM and you are "shielded" from the real hardware.

You are most likely correct in assuming that there is a disk related problem though. The most common cause of bad performance from a VPS is I/O contention between all the VMs that run on a given host. Under normal circumstances only one or two of the VMs are performing heavy I/O activity so everything seems to run at a decent pace. But every now and than a lot of the VMs will need a create of I/O activity at the same time at which point the drive heads are thrashing about like nobody's business and performance drops significantly for all tasks that are performing I/O (entirely in memory tasks are most likely unaffected, unless the host is over-committed and some of your VM's memory is really in swap in disk).

Some cheap VPS hosts oversell their resources so badly that there is always significant I/O contention simply because the shear number of VMs actively running means that at any given time quite a few are performing I/O heavy operations, but even on a good VPS host you will see bad I/O contention from time to time.

You could run disk/filesystem benchmarks (bonnie++, copying from the raw device to /dev/null to test bulk read speed, copying from /dev/zero to the disk to see bulk write speed, ...) to check the performance you are currently getting, but this will be frowned upon by your host as any such benchmark obviously imposes a high I/O load of its own.

CPU contention is another common cause of irregular performance results, but with modern CPUs the I/O sub-system is usually the bottleneck rather than the CPU(s).