by yakubin · 4y ago · 0 comments
It just adds up to the overall latency.
Also real latency of web-pages is measured in seconds these days. People are happy when they're able to serve a request in under 0.2 sec.
For example, I had a support call with Azure asking them why the latency between Azure App Service and Azure SQL was as high as 13ms, and they asked me if my target user base was "high frequency traders" or somesuch.
They just could not believe that I was expecting sub-1ms latencies as a normal thing for a database response.
I think I'm just learning this the hard way, given the down-votes of the initial comment. :-)
Maybe people really don't see the issue with adding layers after layers of stuff, and that we've reached, no, surpassed even, some tragicomic point? Computers are thousands of times faster, yet the end-user experience becomes more sluggish with every year passing. We have an issue, I would say. And it's actually not even funny any more.
Managed to fix the problem and restore performance by suggesting we disable the MySQL query cache which was slowing down the system with more cores.
And this was nothing to do with banking or high frequency anything. Just code that did lots of small queries to fill a screen full of data to support persons.
This approach for a fix sounds very unintuitive.
Did you manage to understand why this was like that? The explanation is likely interesting!
What I could think of: Context switches across cores constantly invalidated data in the CPU caches. In such a case CPU pinning would help maybe. (Just speculating! I'm not an expert on such things. But I know that the CPU cache, and memory I/O in general, is the single most important topic when dealing with usual performance issues on modern CPUs. Today's CPUs are only fast when they have their data available in their local cache(s). Fetching form RAM is by now like fetching from spinning rust a decade ago; it will kill your performance no mater how fast your CPU is).
Tangentially related: https://news.ycombinator.com/item?id=14888360