Sergey Tselovalnikov (@SerCeMan) header
Sergey Tselovalnikov (@SerCeMan) profile picture

Build distributed systems @ Canva

London, United Kingdom
Joined November 2010
Photo by Sergey Tselovalnikov (@SerCeMan)Photo by Sergey Tselovalnikov (@SerCeMan)Photo by Sergey Tselovalnikov (@SerCeMan)Photo by Sergey Tselovalnikov (@SerCeMan)Photo by Sergey Tselovalnikov (@SerCeMan)Photo by Sergey Tselovalnikov (@SerCeMan)Photo by Sergey Tselovalnikov (@SerCeMan)Photo by Sergey Tselovalnikov (@SerCeMan)Photo by Sergey Tselovalnikov (@SerCeMan)Photo by Sergey Tselovalnikov (@SerCeMan)
Sergey Tselovalnikov retweeted
The series on Chromium, "Inside Look at Modern Web Browser," is a visual treat that gives an overview of what happens when you visit that URL. Browser engines are complex software that uses a mix of languages like C, C++, ASM, and others for faster and native performance akin to an OS. The JS engines that are part of these are state-of-the-art work on compilers, JIT, and many advanced topics like SIMD and intrinsics covered under low-level programming and OS. Keeping complexities aside, these articles will give you all you need to understand the amazing engineering inside the browser engines. Repost for broader reach to curious folks and follow for more such interesting engineering about browsers. Part 1 - CPU, GPU, Memory, and multi-process architecture developer.chrome.com/blog/in…
4
77
3
454
32,109
Sergey Tselovalnikov retweeted
We did it! We tested 300 Bay Area foods for plastic chemicals. We found some interesting surprises. Top 5 findings in our test results: 1. Our tests found plastic chemicals in 86% of all foods, with phthalates in 73% of the tested products and bisphenols in 22%. It's everywhere. 2. We detected phthalates in most baby foods and prenatal vitamins. 3. Hot foods which spend 45 minutes in takeout containers have 34% higher levels of plastic chemicals than the same dishes tested directly from the restaurant. 4. The 1950s Army rations we tested contained surprisingly high levels of plastic chemicals. 5. Almost every single one of the foods we tested are within both US FDA and EU EFSA regulations. Check out our full results below.
I'm going to re-run all these tests on food we eat in California. Also going to test for other plastic chemicals. Let me know what foods we should test and suggestions for methodology.
554
2,705
725
15,039
9,777,943
Sergey Tselovalnikov retweeted
Replying to @dbg_nsk
Hooray! We have a winner! It's indeed "kill -11" with some extra tricks: stackoverflow.com/questions/…
2
6
1
21
3,113
Sergey Tselovalnikov retweeted
Let’s talk a bit about @RSocketIO as a protocol, not about rsocket-kotlin rsocket.io headline states: Application protocol providing Reactive Streams semantics But RSocket isn’t only about Reactive Streams, I would even say that it’s just one of many shiny features.
2
7
1
20
2,934
Sergey Tselovalnikov retweeted
Replying to @_hhandoko
See this ancient #LatencyTipOfTheDay: Average (def): a random number that falls somewhere between the maximum and 1/2 the median. Most often used to ignore reality. latencytipoftheday.blogspot.…
1
2
There are not too much good resources in queueing theory and practical applications (teaching how to apply it). However, this book is a big name in on the net. I used to Daniel A. Menasce Performance by Design: Computer Capacity Planning By Example. Maybe its not the best, but p
[new blog post] Review: Performance Modeling and Design of Computer Systems: Queueing Theory in Action muratbuffalo.blogspot.com/20…
1
6
1
25
4,969
Sergey Tselovalnikov retweeted
DDSketch: A Fast and Fully-Mergeable Quantile Sketch with Relative-Error Guarantees arxiv.org/pdf/1908.10693.pdf
The way Datadog calculates percentiles at scale is very innovative 🔥 Usually, calculating the percentiles of large datasets is very expensive. To know the 99th percentile of a stream of values, you need to: - keep all the values - sort them - return the value whose rank matches the percentile (e.g 99th item) Datadog cannot afford to do this with the many millions of data points that come in every second - the space and CPU requirements are not practical for a company with thousands of customers. 🐾 Naturally, they opted for sketch algorithms - those should provide them with a good-enough probabilistic result while being vastly more efficient to compute. Unfortunately - they couldn’t get satisfactory results. The algorithms would produce results that were too inaccurate. ❌ Why? Many percentile sketches had guarantees in terms of *rank error*. A rank-error guarantee of 2% means that the p95 value returned by the sketch is somewhere between the p93-p97 value. But system latencies exhibit very fat tails - the difference between the p97 and p99 values can be 2-10x! So what did the dogs do? 🐶 They invented a new sketch algorithm - DDSketch. Instead of rank error guarantees, they designed it for *relative error* guarantees. If the p99 is 60s, a 2% error means the sketch would return 58.8-61.2s. The algorithm is surprisingly pretty simple: • They create buckets covering ranges of the desired error rate. (+- 2% in this case) 🪣 • Each bucket keeps a counter of the amount of data points within that range. 💯 • When processing an item (latency metric data point), increment the counter of the appropriate bucket. ➕ • To count the desired percentile, you sum up the bucket’s values until you get to the desired percentile. Whatever bucket that percentile is in - that’s your value. 🏆 In this example, the 50th percentile is 1033ms. (4th value out of our total of 8) Going by count, the 4th value is in the second bucket (b-1) and the algorithm would produce a result of 1021-1061ms. To cover the range from 1 millisecond to 1 minute, you only need 275 buckets. With 64-bit counters, that's just ~2kB of memory, regardless of the amount of input data. This is why we call sketch algorithms sublinear in space growth - memory requirements do NOT grow linearly with input. The exponential nature of the bucket distribution makes it cheap to cover an even wider range: 1 nanosecond to 1 day takes just 3x more buckets: • 802 buckets at ~6kB. As you can probably tell, this is pretty easy to parallelize. You can divide this bucket-building exercise into many parallel lightweight substreams, and then merge the results freely. 🕊 The merge operation is a simple sum of the buckets & their counters, which ensures that the accuracy is kept in the same range. It is a very scalable and performant sketch algorithm. Kudos to Datadog for inventing it. Good boy! 🫳🐕‍🦺
4
20
2
114
19,636
Sergey Tselovalnikov retweeted
You know, this ChatGPT thing is actually pretty good!
we had a significant issue in ChatGPT due to a bug in an open source library, for which a fix has now been released and we have just finished validating. a small percentage of users were able to see the titles of other users’ conversation history. we feel awful about this.
6
71
4
450
71,434
"Yeah this part of our codebase runs on JVN" "..do you mean JVM? Java Virtual Machine?" "No, no, it runs on John Von Neumann. He does those calculations in his head"
1
15
2
97
Sergey Tselovalnikov retweeted
This is a good summary of the (IMHO largely inevitable) pros and cons of LSP support for both language servers and editors matklad.github.io//2022/04/2…
2
12
Sergey Tselovalnikov retweeted
Latency is increasingly important across variety of use cases. For example, in e-commerce, going beyond single digit millisecond latencies is believed to hurt revenue. But how is this need for speed driving infrastructure changes today? Here's one answer. 🧵 1/
4
24
11
114
Sergey Tselovalnikov retweeted
JetBrains' long term pledge to invest 1.5% of the revenue (or $8M in 2021 alone) to support CS and math higher education as well as scientific research in multiple fields proves fruitful.
JetBrains Research is an association of 20 scientific labs and groups that do research in various fields, including mathematics, physics, computational biology, robotics, and machine learning. In this report, the lab leaders discuss their teams' work: research.jetbrains.org/annua…
2
25
140
Sergey Tselovalnikov retweeted
Very nice wrap-up of how #netty works under the hood for NIO medium.com/geekculture/a-tou… It would be nice to see something like that for #io_uring @josefgrieb to show how much it simplifies things compared to NIO :P
1
5
18
Sergey Tselovalnikov retweeted
Log4j maintainers have been working sleeplessly on mitigation measures; fixes, docs, CVE, replies to inquiries, etc. Yet nothing is stopping people to bash us, for work we aren't paid for, for a feature we all dislike yet needed to keep due to backward compatibility concerns.
This quoted post is unavailable.
161
1,696
264
8,682
Sergey Tselovalnikov retweeted
I open-sourced my book about SW performance. All the source Markdown, images, and Latex files are now open. Anyone can easily build a PDF version. This book now belongs to the whole community. I invite everyone to contribute to it. github.com/dendibakh/perf-bo… 1/3
5
159
483
Sergey Tselovalnikov retweeted
Individuals matter danluu.com/people-matter/
13
91
18
410
Here's an addition to the Java Collection Cheat Sheet.
6
25
1
146
Sergey Tselovalnikov retweeted
Linux Page Cache for SREs: syscalls, kernel internals and knobs, perf, vmtouch, cgroup v2, LRUs, writeback, mmap() tricks and much more in my series of articles biriukov.dev/docs/page-cache…
7
127
4
369