Skip to content

Instantly share code, notes, and snippets.

@lucaspiller
Created February 9, 2017 11:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucaspiller/10d2aac9b4ad079df40ff56019653863 to your computer and use it in GitHub Desktop.
Save lucaspiller/10d2aac9b4ad079df40ff56019653863 to your computer and use it in GitHub Desktop.
Disk encryption benchmarks:
$ cryptsetup benchmark
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1 352344 iterations per second
PBKDF2-sha256 196215 iterations per second
PBKDF2-sha512 156784 iterations per second
PBKDF2-ripemd160 237449 iterations per second
PBKDF2-whirlpool 73470 iterations per second
# Algorithm | Key | Encryption | Decryption
aes-cbc 128b 73.4 MiB/s 86.7 MiB/s
serpent-cbc 128b 36.2 MiB/s 98.2 MiB/s
twofish-cbc 128b 83.3 MiB/s 107.5 MiB/s
aes-cbc 256b 58.5 MiB/s 66.2 MiB/s
serpent-cbc 256b 40.0 MiB/s 97.5 MiB/s
twofish-cbc 256b 87.3 MiB/s 106.7 MiB/s
aes-xts 256b 81.9 MiB/s 84.2 MiB/s
serpent-xts 256b 91.3 MiB/s 93.2 MiB/s
twofish-xts 256b 100.1 MiB/s 99.1 MiB/s
aes-xts 512b 62.2 MiB/s 64.2 MiB/s
serpent-xts 512b 91.3 MiB/s 92.6 MiB/s
twofish-xts 512b 99.0 MiB/s 98.4 MiB/s
CPU. It's fine for running low-CPU VMs, but no AMD-Vi for PCI-passthrough.
$ cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 16
model : 6
model name : AMD Turion(tm) II Neo N40L Dual-Core Processor
stepping : 3
microcode : 0x10000c8
cpu MHz : 800.000
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid eagerfpu pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr hw_pstate vmmcall npt lbrv svm_lock nrip_save
bugs : tlb_mmatch apic_c1e fxsave_leak sysret_ss_attrs null_seg
bogomips : 2995.04
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
processor : 1
vendor_id : AuthenticAMD
cpu family : 16
model : 6
model name : AMD Turion(tm) II Neo N40L Dual-Core Processor
stepping : 3
microcode : 0x10000c8
cpu MHz : 800.000
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid eagerfpu pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr hw_pstate vmmcall npt lbrv svm_lock nrip_save
bugs : tlb_mmatch apic_c1e fxsave_leak sysret_ss_attrs null_seg
bogomips : 2995.09
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
2x Kingston KVR16E11/8 RAM 8 GB 1600 MHz DDR3 ECC CL11 DIMM, 240-Pin. If you want ECC, it needs to be
UDIMM which is $$$. Although 16GB isn't officially supported it worked out of the box for me.
$ dmidecode --type memory
# dmidecode 2.12
SMBIOS 2.6 present.
Handle 0x0014, DMI type 16, 15 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: Single-bit ECC
Maximum Capacity: 8 GB
Error Information Handle: Not Provided
Number Of Devices: 2
Handle 0x0016, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x0014
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 8192 MB
Form Factor: DIMM
Set: None
Locator: DIMM0
Bank Locator: BANK0
Type: Other
Type Detail: Synchronous
Speed: 1333 MHz
Manufacturer: Manufacturer00
Serial Number: SerNum00
Asset Tag: Not Specified
Part Number: ModulePartNumber00
Rank: Unknown
Handle 0x0018, DMI type 17, 28 bytes
Memory Device
Array Handle: 0x0014
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 8192 MB
Form Factor: DIMM
Set: None
Locator: DIMM1
Bank Locator: BANK1
Type: Other
Type Detail: Synchronous
Speed: 1333 MHz
Manufacturer: Manufacturer01
Serial Number: SerNum01
Asset Tag: Not Specified
Part Number: ModulePartNumber01
Rank: Unknown
Temperatures (room 20c):
$ sensors
jc42-i2c-0-18
Adapter: SMBus PIIX4 adapter port 0 at 0b00
RAM1 Temp: +33.1°C (low = +0.0°C)
(high = +60.0°C, hyst = +54.0°C)
(crit = +70.0°C, hyst = +64.0°C)
jc42-i2c-0-19
Adapter: SMBus PIIX4 adapter port 0 at 0b00
RAM2 Temp: +30.2°C (low = +0.0°C)
(high = +60.0°C, hyst = +54.0°C)
(crit = +70.0°C, hyst = +64.0°C)
w83795adg-i2c-1-2f
Adapter: SMBus PIIX4 adapter port 2 at 0b00
Vcore: +0.78 V (min = +0.50 V, max = +1.40 V)
Vdimm: +1.51 V (min = +1.42 V, max = +1.57 V)
+3.3V: +3.27 V (min = +2.96 V, max = +3.63 V)
3VSB: +3.25 V (min = +2.96 V, max = +3.63 V)
System Fan: 533 RPM (min = 329 RPM)
CPU Temp: +45.5°C (high = +109.0°C, hyst = +109.0°C)
(crit = +109.0°C, hyst = +109.0°C) sensor = thermal diode
NB Temp: +40.8°C (high = +105.0°C, hyst = +105.0°C)
(crit = +105.0°C, hyst = +105.0°C) sensor = thermal diode
MB Temp: +21.0°C (high = +39.0°C, hyst = +39.0°C)
(crit = +44.0°C, hyst = +44.0°C) sensor = thermistor
k10temp-pci-00c3
Adapter: PCI adapter
CPU Temp: +48.5°C (high = +70.0°C)
(crit = +100.0°C, hyst = +95.0°C)
Power usage when idle (2x HDD, 1x SSD, 1x PCI ethernet, no optical): 40w.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment