4 ms·
Learning how to use dtrace / bpftrace [0] is very valuable if you ever need to get into serious systems profiling. There are some really cool data structures o
by jimpudar 7y ago
Learning how to use dtrace / bpftrace [0] is very valuable if you ever need to get into serious systems profiling.
There are some really cool data structures out there you might not know about. One of my favorite basic ones that I get a lot of use out of is the trie [1] (a.k.a. prefix tree). Very useful for IP calculations.
Also look into probabilistic data structures [2], very amazing things can be done with them.
[0] https://en.wikipedia.org/wiki/DTrace https://en.wikipedia.org/wiki/DTrace
[1] https://en.wikipedia.org/wiki/Trie https://en.wikipedia.org/wiki/Trie
[2] https://en.wikipedia.org/wiki/Category:Probabilistic_data_structures https://en.wikipedia.org/wiki/Category:Probabilistic_data_st...
- cryptonector 7y agoDTrace is life-altering. I keep hoping that someone will build a dtrace(1) CLI that transpiles to bpftrace.
- stcredzero 7y agoProfiling, period
- sammnaser 7y agoBloom Filters are awesome.
- Const-me 7y agoApproximate Windows equivalent of DTrace is sysinternal process monitor, freeware. Very useful sometimes.
- Birch-san 7y agoThe Windows equivalent of DTrace is.. DTrace. [0] DTrace is about far, far more than snooping the filesystem. At best, Process Monitor is an equivalent of Brendan Gregg's DTrace utility, opensnoop. The true power of DTrace is to correlate events across subsystem boundaries. Like, graphing the top quartile of latencies from network acceses initiated via a given function in your application. [0] https://techcommunity.microsoft.com/t5/Windows-Kernel-Internals/DTrace-on-Windows/ba-p/362902 https://techcommunity.microsoft.com/t5/Windows-Kernel-Intern...