
Postgres is half as fast in Linux 7.0
An aws engineer discovered a 50% regression in postgres throughput while testing the new Linux 7.0 kernel. The cause turns out to be massive TLB and page faults exacerbated by Postgres process-based design. In this backend engineering show episode I dive deep into how this was discovered, the root cause and the possible fixes and workarounds. Intermediate and Advanced Backend Engineering Course Bundlehttps://courses.husseinnasser.com/bundleMy Book, Root Cause: Stories and Lessons from Two Decades of Backend Engineering Bugs https://amzn.to/4cKfZhe 0:00 Intro2:30 The Discovery6:30 Spinlocks9:25 Preemption 13:00 Root Cause17:00 How Postgres Processes exacerbated the problem 22:30 Is the fix easy?25:50...
Öffnet den Player: das vollständige Transkript, jedes Wort anklickbar, mit Übersetzung und Karteikarten.
Passt diese Folge zu Ihnen?
B2 · Obere Mittelstufe
Angenehm, wenn Sie schon Fernsehnachrichten folgen
- 81 % der Wörter sind B1 oder leichter.
- 130 Wörter pro Minute: ein natürliches Tempo.
- 106 schwierigere Wörter (ab B2) in der ganzen Folge.
Probieren Sie es: Tippen Sie auf ein Wort
Echte Sätze vom Anfang dieser Folge. Jedes Wort ist mit seinem Niveau markiert.
% .
and that is mainly due to a change in some default configurations that the Linux
Tippen Sie auf ein Wort, um seine Bedeutung in Ihrer Sprache zu sehen.
Kennen Sie diese Wörter?
8 schwierigere Wörter aus dieser Folge. Tippen Sie auf eines, um die Bedeutung zu sehen, und markieren Sie es dann.
Markieren Sie ein paar Wörter, und wir sagen Ihnen, wie gut diese Folge zu Ihrem Niveau passt.
Passt diese Folge zu Ihnen?
B2 · Obere Mittelstufe
Angenehm, wenn Sie schon Fernsehnachrichten folgen
- 81 % der Wörter sind B1 oder leichter.
- 130 Wörter pro Minute: ein natürliches Tempo.
- 106 schwierigere Wörter (ab B2) in der ganzen Folge.
Transkript
Der Anfang der Folge. Das ganze Transkript ist im Player.
schwierigere Wörter (B2+)
Amazon engineer discovered that Postgres SQL is 50% slower in the new to be released Linux kernel 7.0 and that is mainly due to a change in some default configurations that the Linux kernel decided to change these changes specifically target something called preemption in kernel code. Now of course the Postgres maintainers were all over this, this
happened two months ago and they were all over this and the problem is understood and there is a workaround, not a code workaround, it's just a configuration workaround to enable it, to enable Postgres to perform normally. but I wanted to make this video to illustrate the fundamental design choice
that Postgres made that actually led to this issue and that is the choice of mainly processes versus threads in my opinion. So let's do a deep dive of this topic we'll talk about what happened how this was discovered fantastic troubleshooting by the way from the Italian this is coming from Amazon
Das war der Anfang. Der Rest der Folge (33 Min.) ist im Player: jedes Wort anklickbar, mit Übersetzung, gespeicherten Wörtern und Karteikarten.
Im Player weiterhörenAutomatisch aus dem Audio erstellt. Kann Fehler enthalten. Das Audio gehört seinem Herausgeber und wird aus dessen Feed abgespielt. Rechteinhaber können eine Entfernung beantragen — Urheberrechts- und Entfernungsrichtlinie