Skip to content

Commit

Permalink
note linux threading overhead blog
Browse files Browse the repository at this point in the history
  • Loading branch information
SichangHe committed Sep 15, 2024
1 parent 82149f5 commit 9d7f808
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/notes/reading_notes/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Unstructured Reading Notes

- [Measuring context switching and memory overheads for Linux
threads](https://eli.thegreenplace.net/2018/measuring-context-switching-and-memory-overheads-for-linux-threads/)
- Native POSIX Thread Library (NPTL) & futex several times faster than
old Linux thread
- bearable latency: on his i7-4771 in 2018,
multicore context switching took \~1.5µs, same core switching \~2.5µs,
launching thread \~5µs, launching process \~22.5µs\
comparison: memcpy 64 KiB took 3µs, Goroutine switching took 170ns
- lazy memory: 8 MiB virtual via `ulimit` (VM), \~8 KiB resident (RSS)
without touching stack
- [Optimal Protocols for Studying & Learning,
Andrew Huberman](https://www.youtube.com/watch?v=ddq8JIMhz7c)
- neuroplasticity apply during fast eye movement sleep
Expand All @@ -11,8 +21,7 @@
- do not matter for memory if wrong
- perceived familiarity hinder memory
- gap effect: pause in talk greatly reinforce memory
- [ChatGPT from Scratch:
How to
- [ChatGPT from Scratch: How to
Train an Enterprise AI Assistant • Phil Winder • GOTO
2023](https://www.youtube.com/watch?v=N53Gsz0Gm4c)
- post-GPT are decoder-only
Expand Down

0 comments on commit 9d7f808

Please sign in to comment.