Skip to content

Instantly share code, notes, and snippets.

View strike's full-sized avatar

Alexander Zubarev strike

  • Avride
  • Tel Aviv
View GitHub Profile
@tpruvot
tpruvot / xorg.conf
Last active October 20, 2020 10:29
Fake plugged monitor to allow coolbits on maxwell and pascal cards
# To allow nvidia powermizer settings, we need to define dummy monitors for each card
# Edit the PCI BusId for each cards (lspci | grep VGA)
# Also, you need to dump an EDID file from your monitor
# Here is my dell.edid (2560x1440)
# it's stored in text, hexdump -C format, not binary:
# 00 ff ff ff ff ff ff 00 10 ac 7e 40 4c 54 41 41
# 15 17 01 03 80 3c 22 78 ea 4b b5 a7 56 4b a3 25
# 0a 50 54 a5 4b 00 81 00 b3 00 d1 00 71 4f a9 40
# 81 80 d1 c0 01 01 56 5e 00 a0 a0 a0 29 50 30 20
@jboner
jboner / latency.txt
Last active April 19, 2025 21:29
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD