Hardware


RAID: Read/Write Policy

Dateigroessenlimit bei USB-Sticks

Ein 16GB USB-Stick hat ein Dateigroessenlimit von 4294967295 Byte.

Da hilft bei großen Dateien nur der Befehl split.

Beispielsweise kann man das Problem so umgehen.

In diesem Beispiel soll die Datei CentOS-5.3-x86_64-bin-DVD.iso per USB-Stick transportiert werden.

Datei auf den USB-Stick laden:

sha512sum CentOS-5.3-x86_64-bin-DVD.iso | tee /media/usb1/centos/CentOS-5.3-x86_64-bin-DVD.sha256
44b4e0e6cbdde6831ebfa4c9a59dd66524e712d8cfebecf33a17ff55010f9fff  CentOS-5.3-x86_64-bin-DVD.iso
split -b 4294967295 CentOS-5.3-x86_64-bin-DVD.iso /media/usb1/centos/CentOS-5.3-x86_64-bin-DVD.iso.

Datei vom USB-Stick runterlesen:

cat /media/usb1/centos/CentOS-5.3-x86_64-bin-DVD.iso.* > CentOS-5.3-x86_64-bin-DVD.iso

Und das vergleichen der Quersummen nicht vergessen, die müssen identisch sein, sonst ist die Datei beschädigt:

sha512sum CentOS-5.3-x86_64-bin-DVD.iso
44b4e0e6cbdde6831ebfa4c9a59dd66524e712d8cfebecf33a17ff55010f9fff  CentOS-5.3-x86_64-bin-DVD.iso
cat /media/usb1/centos/CentOS-5.3-x86_64-bin-DVD.sha256
44b4e0e6cbdde6831ebfa4c9a59dd66524e712d8cfebecf33a17ff55010f9fff  CentOS-5.3-x86_64-bin-DVD.iso

Wichtige CPU-Flags

  • ht - Hyper-Threading bzw. Hyper-Transport
  • htt - Hyper-Threading
  • lm - 64-Bit-CPU
  • vmx - Intels Hardware-Virtualisierung
  • svm - AMDs Hardware-Virtualisierung

Hyper-Threading und Hyper-Transport werden durch die selbe Flag-Abkürzung gekennzeichnet! Manchmal wird Hyper-Threading auch durch das Kürzel htt (Hyper-Threading-Technology) gekennzeichnet.

Leider kann man deshalb nicht eindeutig sagen, dass eine bestimmte CPU Hyper-Threading unterstützt oder nicht.

Nur wenn man in der Datei /proc/cpuinfo mehr als einen CPU-Block findet, bei denen die physical id gleich sind und bei denen auch die core id gleich sind.

Mit dem folgenden Kommando wird genau das für die ID 0 gemacht. Gewöhnlich verursacht Hyper-Threading nur das doppelte zählen eines CPU-Kernes, deshalb sollte das folgende Kommando bei Hyper-Threading-Unterstützung immer eine „2“ liefern. Sollte in der Zukunft Hyper-Threading mal zu einem Hyper-Hyper-Threading werden und dadurch das mehrfache (z.B. 3 oder 4) zählen eines CPU-Kernes verursachen, dann sollte hier eine größere Zahl als „2“ erscheinen.

awk -v alt='^$' -v neu='#' '{sub(alt, neu)} /physical id|core id|#/ && /0$|#/ {print $NF}' /proc/cpuinfo | uniq -c | awk '!/#|1 0/' | wc -l
2

Die folgende Kommandozeile schreibt im Klartext, ob Hyper-Threading aktiv ist oder nicht:

awk -v alt='^$' -v neu='#' '{sub(alt, neu)} /physical id|core id|#/ && /0$|#/ {print $NF}' /proc/cpuinfo | uniq -c | awk '!/#|1 0/' | wc -l | awk '{$1 > 1}' && echo "Hyper-Threading geht" || echo "kein Hyper-Threading"
Hyper-Threading geht

Mogelpackung

Diese Ausgabe zeigt 16 CPUs…

cat /proc/cpuinfo
processor     : 0
vendor_id     : GenuineIntel
cpu family    : 6
model         : 26
model name    : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping      : 5
cpu MHz               : 2926.105
cache size    : 8192 KB
physical id   : 1
siblings      : 8
core id               : 0
cpu cores     : 4
apicid                : 16
initial apicid        : 16
fpu           : yes
fpu_exception : yes
cpuid level   : 11
wp            : yes
flags         : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips      : 5852.21
clflush size  : 64
cache_alignment       : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor     : 1
vendor_id     : GenuineIntel
cpu family    : 6
model         : 26
model name    : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping      : 5
cpu MHz               : 2926.105
cache size    : 8192 KB
physical id   : 0
siblings      : 8
core id               : 0
cpu cores     : 4
apicid                : 0
initial apicid        : 0
fpu           : yes
fpu_exception : yes
cpuid level   : 11
wp            : yes
flags         : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips      : 5851.93
clflush size  : 64
cache_alignment       : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor     : 2
vendor_id     : GenuineIntel
cpu family    : 6
model         : 26
model name    : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping      : 5
cpu MHz               : 2926.105
cache size    : 8192 KB
physical id   : 1
siblings      : 8
core id               : 1
cpu cores     : 4
apicid                : 18
initial apicid        : 18
fpu           : yes
fpu_exception : yes
cpuid level   : 11
wp            : yes
flags         : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips      : 5851.96
clflush size  : 64
cache_alignment       : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor     : 3
vendor_id     : GenuineIntel
cpu family    : 6
model         : 26
model name    : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping      : 5
cpu MHz               : 2926.105
cache size    : 8192 KB
physical id   : 0
siblings      : 8
core id               : 1
cpu cores     : 4
apicid                : 2
initial apicid        : 2
fpu           : yes
fpu_exception : yes
cpuid level   : 11
wp            : yes
flags         : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips      : 5851.98
clflush size  : 64
cache_alignment       : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor     : 4
vendor_id     : GenuineIntel
cpu family    : 6
model         : 26
model name    : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping      : 5
cpu MHz               : 2926.105
cache size    : 8192 KB
physical id   : 1
siblings      : 8
core id               : 2
cpu cores     : 4
apicid                : 20
initial apicid        : 20
fpu           : yes
fpu_exception : yes
cpuid level   : 11
wp            : yes
flags         : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips      : 5851.93
clflush size  : 64
cache_alignment       : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor     : 5
vendor_id     : GenuineIntel
cpu family    : 6
model         : 26
model name    : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping      : 5
cpu MHz               : 2926.105
cache size    : 8192 KB
physical id   : 0
siblings      : 8
core id               : 2
cpu cores     : 4
apicid                : 4
initial apicid        : 4
fpu           : yes
fpu_exception : yes
cpuid level   : 11
wp            : yes
flags         : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips      : 5851.98
clflush size  : 64
cache_alignment       : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor     : 6
vendor_id     : GenuineIntel
cpu family    : 6
model         : 26
model name    : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping      : 5
cpu MHz               : 2926.105
cache size    : 8192 KB
physical id   : 1
siblings      : 8
core id               : 3
cpu cores     : 4
apicid                : 22
initial apicid        : 22
fpu           : yes
fpu_exception : yes
cpuid level   : 11
wp            : yes
flags         : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips      : 5851.95
clflush size  : 64
cache_alignment       : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor     : 7
vendor_id     : GenuineIntel
cpu family    : 6
model         : 26
model name    : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping      : 5
cpu MHz               : 2926.105
cache size    : 8192 KB
physical id   : 0
siblings      : 8
core id               : 3
cpu cores     : 4
apicid                : 6
initial apicid        : 6
fpu           : yes
fpu_exception : yes
cpuid level   : 11
wp            : yes
flags         : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips      : 5851.99
clflush size  : 64
cache_alignment       : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor     : 8
vendor_id     : GenuineIntel
cpu family    : 6
model         : 26
model name    : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping      : 5
cpu MHz               : 2926.105
cache size    : 8192 KB
physical id   : 1
siblings      : 8
core id               : 0
cpu cores     : 4
apicid                : 17
initial apicid        : 17
fpu           : yes
fpu_exception : yes
cpuid level   : 11
wp            : yes
flags         : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips      : 5851.95
clflush size  : 64
cache_alignment       : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor     : 9
vendor_id     : GenuineIntel
cpu family    : 6
model         : 26
model name    : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping      : 5
cpu MHz               : 2926.105
cache size    : 8192 KB
physical id   : 0
siblings      : 8
core id               : 0
cpu cores     : 4
apicid                : 1
initial apicid        : 1
fpu           : yes
fpu_exception : yes
cpuid level   : 11
wp            : yes
flags         : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips      : 5851.95
clflush size  : 64
cache_alignment       : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor     : 10
vendor_id     : GenuineIntel
cpu family    : 6
model         : 26
model name    : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping      : 5
cpu MHz               : 2926.105
cache size    : 8192 KB
physical id   : 1
siblings      : 8
core id               : 1
cpu cores     : 4
apicid                : 19
initial apicid        : 19
fpu           : yes
fpu_exception : yes
cpuid level   : 11
wp            : yes
flags         : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips      : 5851.95
clflush size  : 64
cache_alignment       : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor     : 11
vendor_id     : GenuineIntel
cpu family    : 6
model         : 26
model name    : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping      : 5
cpu MHz               : 2926.105
cache size    : 8192 KB
physical id   : 0
siblings      : 8
core id               : 1
cpu cores     : 4
apicid                : 3
initial apicid        : 3
fpu           : yes
fpu_exception : yes
cpuid level   : 11
wp            : yes
flags         : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips      : 5851.97
clflush size  : 64
cache_alignment       : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor     : 12
vendor_id     : GenuineIntel
cpu family    : 6
model         : 26
model name    : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping      : 5
cpu MHz               : 2926.105
cache size    : 8192 KB
physical id   : 1
siblings      : 8
core id               : 2
cpu cores     : 4
apicid                : 21
initial apicid        : 21
fpu           : yes
fpu_exception : yes
cpuid level   : 11
wp            : yes
flags         : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips      : 5851.96
clflush size  : 64
cache_alignment       : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor     : 13
vendor_id     : GenuineIntel
cpu family    : 6
model         : 26
model name    : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping      : 5
cpu MHz               : 2926.105
cache size    : 8192 KB
physical id   : 0
siblings      : 8
core id               : 2
cpu cores     : 4
apicid                : 5
initial apicid        : 5
fpu           : yes
fpu_exception : yes
cpuid level   : 11
wp            : yes
flags         : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips      : 5851.95
clflush size  : 64
cache_alignment       : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor     : 14
vendor_id     : GenuineIntel
cpu family    : 6
model         : 26
model name    : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping      : 5
cpu MHz               : 2926.105
cache size    : 8192 KB
physical id   : 1
siblings      : 8
core id               : 3
cpu cores     : 4
apicid                : 23
initial apicid        : 23
fpu           : yes
fpu_exception : yes
cpuid level   : 11
wp            : yes
flags         : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips      : 5851.96
clflush size  : 64
cache_alignment       : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor     : 15
vendor_id     : GenuineIntel
cpu family    : 6
model         : 26
model name    : Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
stepping      : 5
cpu MHz               : 2926.105
cache size    : 8192 KB
physical id   : 0
siblings      : 8
core id               : 3
cpu cores     : 4
apicid                : 7
initial apicid        : 7
fpu           : yes
fpu_exception : yes
cpuid level   : 11
wp            : yes
flags         : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips      : 5851.96
clflush size  : 64
cache_alignment       : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

… leider ist das aber bei genauerem hinsehen eine “Mogelpackung“!

Die oben gezeigte Ausgabe stammt von einem Dual-Quad-Core mit Hyper-Threading-Technology. Also sind es nur zwei CPUs mit je vier Kernen, die über erweiterte Register verfühgt wodurch der einzelne Kern zwischen zwei Pipes schneller hin und her springen kann.

Hyper-Threading-Technology bringt nur einen Geschwindigkeitsvorteil, wenn man mehr Prozesse laufen lassen möchte als sich CPU-Kerne im System befinden! An sonsten werden z.B. die ersten beiden Prozesse auf die ersten beiden virtuellen CPUs gestartet, wobei das aber der selbe Kern (mit Hyper-Threading) ist und alle anderen CPU-Kerne haben nix zu tun.

Deshalb sollte man HTT (Hyper-Threading-Technology) im BIOS nur dann aktivieren, wenn man viele Prozesse fährt.

CPU's

Wenn es ums Strom sparen geht, denkt man als erstes an Intel's Atom N270, der bei 1,6 GHz nur ca. 5 Watt verbraucht.

Es gibt aber noch jemanden, der das sogar noch besser kann!

Es handelt sich um die, für besonders Strom sparende CPU's bekannte „ARM“-Architektur. Der ARM's Cortex-A9 verbraucht bei 800 MHz nur 0,5 Watt und liefert die gleiche Rechenleistung wie Intel's Atom N270!

Vergleichstabelle:

Hersteller CPU Modell Tacktfrequenz Rechenleistung Leistungsaufnahme DIE-Größe Erscheinungsjahr
Intel Atom N270 1600 MHz 4000 DMIPS 5 Watt 24,18 mm² 2008
Intel Atom N270/Z530 1600 MHz 1904 DMIPS 2,5 Watt (durchschnittlich) 24,18 mm² 2008
ARM Cortex A5 480 MHz 754 DMIPS 0,058 Watt 0,27 mm² 2009
ARM Cortex A5 1000 MHz 1570 DMIPS 0,08 Watt ~0,27 mm² 2009
ARM Cortex A8 1100 MHz 2200 DMIPS 0,5 Watt 3,0 mm² 2005
ARM Cortex A9 800 MHz 4000 DMIPS 0,5 Watt (Aktivmodus) 6,7 mm² 2009
ARM Cortex A9 2000 MHz ~10000 DMIPS 2,5 Watt (Aktivmodus) 6,7 mm² 2009
ARM Cortex A9 2000 MHz ~10000 DMIPS 1,9 Watt (Aktivmodus) 4,9 mm² 2010

Die Angaben zur Energieaufnahme schwanken stark, manchmal wird für den N270 seine Durchschnittliche Leistungsaufnahme angegeben (die zwischen 2 und 5 Watt schwanken), manchmal wird seine maximale Leistungsaufnahme (8 Watt) angegeben.

 
Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht:GNU Free Documentation License 1.2
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki