Skip to content

Instantly share code, notes, and snippets.

@bafna
bafna / latency.txt
Created October 15, 2016 16:02 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
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
{
"state": "active+undersized+degraded",
"snap_trimq": "[]",
"epoch": 9129,
"up": [
2409,
1797,
1418,
2178,
821
Selecting previously unselected package ceph.
(Reading database ... 183690 files and directories currently installed.)
Preparing to unpack ceph_0.91-2147-gfb909a9-1_amd64.deb ...
Unpacking ceph (0.91-2147-gfb909a9-1) ...
Selecting previously unselected package ceph-common.
Preparing to unpack ceph-common_0.91-2147-gfb909a9-1_amd64.deb ...
Unpacking ceph-common (0.91-2147-gfb909a9-1) ...
Selecting previously unselected package ceph-fs-common.
Preparing to unpack ceph-fs-common_0.91-2147-gfb909a9-1_amd64.deb ...
Unpacking ceph-fs-common (0.91-2147-gfb909a9-1) ...
Selecting previously unselected package ceph.
(Reading database ... 93598 files and directories currently installed.)
Preparing to unpack ceph_0.91-5072-gda187c8-1_amd64.deb ...
Unpacking ceph (0.91-5072-gda187c8-1) ...
Selecting previously unselected package ceph-common.
Preparing to unpack ceph-common_0.91-5072-gda187c8-1_amd64.deb ...
Unpacking ceph-common (0.91-5072-gda187c8-1) ...
Preparing to unpack ceph-fs-common_0.91-5072-gda187c8-1_amd64.deb ...
Unpacking ceph-fs-common (0.91-5072-gda187c8-1) over (0.91-5072-gda187c8-1) ...
Preparing to unpack ceph-fuse_0.91-5072-gda187c8-1_amd64.deb ...
Synchronizing submodule url for 'ceph-erasure-code-corpus'
Synchronizing submodule url for 'ceph-object-corpus'
Synchronizing submodule url for 'src/civetweb'
Synchronizing submodule url for 'src/erasure-code/jerasure/gf-complete'
Synchronizing submodule url for 'src/erasure-code/jerasure/jerasure'
Synchronizing submodule url for 'src/gmock'
Synchronizing submodule url for 'src/libs3'
Synchronizing submodule url for 'src/rocksdb'
Submodule path 'ceph-erasure-code-corpus': checked out '4957a9a0fb0af6ff992ed6955257279281d99bc0'
Submodule path 'ceph-object-corpus': checked out 'da43eb119558fb46d86e62f3b82d5ca63546f69e'