| id | CPU Family | CPU (cpu x core x thread) | RAM | Res shell | Res |
|---|---|---|---|---|---|
| elbrus | Elbrus | 4C 1891ВМ8Я 800 MHz 4x4x1 | DDR3 1600 | 12910 | 28710 |
| boris | Yorkfield | Core 2 Quad Q8300 2.5GHz 1x4x1 | DDR3 1333 | 105420 | 221796 |
| alpha | Ivy Bridge | i5-3570K 3.40GHz 1x4x1 | DDR3 1600 (2 channels) | 172413 | 410515 |
| anton | Sandy Bridge E | i7-3820 3.60GHz 1x4x2 | DDR3 1600 (4 сhannels) | 185185 | 459399 |
| thinker | Haswell | i5-4590 3.30GHz 1x4x1 | DDR3 1600 (2 channels) | 357143 | 653885 |
| ibm | Haswell | i3-4160 3.60GHz 1x2x2 | ???? | 357142 | |
| rabbit | Kaby Lake | i3-7100 3.90GHz 1x2x2 | DDR4 2133 (2 channels) | 476190 | 830651 |
| Threads | 1000 Msgs/sec | Miss L1 % | Miss LLC % | BMiss | IPC |
|---|---|---|---|---|---|
| 4000 | 350 | 6.7 | 54 | 0.38 | 1.34 |
| 2000 | 400 | 6.3 | 49 | 0.44 | 1.39 |
| 1000 | 400 | 6.4 | 31 | 0.35 | 1.51 |
| 500 | 450 | 6.6 | 14 | 0.34 | 1.64 |
| 200 | 490 | 6.2 | 10 | 0.40 | 1.72 |
| 100 | 510 | 7.5 | 6.6 | 0.5 | 1.70 |
| 32 | 510 | 7.3 | 7 | 0.5 | 1.70 |
| 8 | 550 | 6.5 | 6.2 | 0.5 | 1.70 |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Общая статистика: | |
| ``` | |
| sudo perf stat -g -- ./dgemm | |
| 40002.711133 cpu-clock (msec) # 4.000 CPUs utilized | |
| 430,879 context-switches # 0.011 M/sec | |
| 3,104 cpu-migrations # 0.078 K/sec | |
| 9,119 page-faults # 0.228 K/sec | |
| 59,508,881,346 cycles # 1.488 GHz | |
| 43,869,839,589 instructions # 0.74 insn per cycle <-- Менее 1 при полной загрузке всех ядер!! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| process_flag(sensitive, true) - Stack back-traces cannot be displayed for the process. In crash dumps, the stack, messages, and the process dictionary are omitted. | |
| process_flag(error_handler, Module) - set new error handler | |
| process_flag(message_queue_data, MQD) - +hmqd off_heap|on_heap (default on_heap) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1> l(dyntrace). | |
| {module,dyntrace} | |
| 2> erlang:trace_pattern({'_','_','_'}, [{'_', [], [{return_trace}]}], [local]). %% For function_call info | |
| 3> erlang:trace_pattern({'_','_','_'}, [{'_', [], [{exception_trace}]}], [local]). %% For exception info | |
| 4> erlang:trace(all, true, [call,'receive', send, {tracer,dyntrace,[]}]). %% Trace function calls with dyntrace (i.e. LTTng) and messaging | |
| 26 | |
| 5> erlang:now(). %% Or whatever function call you want to trace. See the traces coming in LTTng log. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt-get install sysstat | |
| while true; do | |
| mpstat -u -I SUM,SCPU -P ON | |
| echo '---------------------------------------------------------------------------------' | |
| echo | |
| vmstat -w | |
| echo '---------------------------------------------------------------------------------' | |
| echo | |
| vmstat -wd | |
| echo '---------------------------------------------------------------------------------' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {module, aa}. %% version = 0 | |
| {exports, [{aa,1}, | |
| {bb,1}, | |
| {get1,2}, | |
| {get2,2}, | |
| {module_info,0}, | |
| {module_info,1}, | |
| {new1,0}, | |
| {new2,0}]}. |