Postgres is half as fast in Linux 7.0
The Backend Engineering Show with Hussein Nasser

Postgres is half as fast in Linux 7.0

B2فوق المتوسط17 يونيو 202634 دقيقة

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...

تشغيل الحلقة

يفتح المشغّل: النص الكامل، وكل كلمة قابلة للنقر، مع الترجمة والبطاقات التعليمية.

جرّب: انقر أي كلمة

جمل حقيقية من بداية هذه الحلقة. كل كلمة معلَّمة بمستواها.

الجملة 1 من 12 · 0:00

% .

and that is mainly due to a change in some default configurations that the Linux

انقر كلمة لترى معناها بلغتك.

هل تعرف هذه الكلمات؟

8 كلمات أصعب من هذه الحلقة. انقر أي كلمة لترى معناها، ثم ضع علامتك.

ضع علامة على بضع كلمات، وسنخبرك بمدى ملاءمة هذه الحلقة لمستواك.

هل تناسبك هذه الحلقة؟

B2

B2 · فوق المتوسط

مريحة إن كنت تتابع نشرات الأخبار

A1 34‎%‎A2 32‎%‎B1 15‎%‎B2 13‎%‎C1 6‎%‎
  • 81% من الكلمات في مستوى B1 أو أسهل.
  • 130 كلمة في الدقيقة: سرعة طبيعية.
  • 106 كلمة أصعب (B2 فما فوق) في الحلقة كلها.

النص

بداية الحلقة. النص الكامل في المشغّل.

0:00

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

0:32

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

0:57

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

كانت هذه بداية الحلقة. بقية الحلقة (33 دقيقة) في المشغّل: كل كلمة قابلة للنقر، مع الترجمة وحفظ الكلمات والبطاقات التعليمية.

تابع في المشغّل

تم إنشاؤه تلقائيًا من الصوت وقد يحتوي على أخطاء. الصوت ملك لناشره ويُشغَّل من خلاصته. يمكن لأصحاب الحقوق طلب الإزالة — سياسة حقوق النشر والإزالة