An Amazon/AWS engineer raised the alarms on Friday over the current Linux 7.0 development kernel leading to the throughput for the PostgreSQL database server being around half that of prior kernel versions. The culprit halving the PostgreSQL performance is known but a revert looks like it may not happen and currently suggesting that PostgreSQL may need to be adapted.
Salvatore Dipietro of Amazon/AWS reported a throughput and latency regression for PostgreSQL. They found Linux 7.0 in its near-final form delivering around 0.51x the throughputof prior kernels on a Graviton4 server due to now much more time being spent in a user-space spinlock.
As a result, yesterday posted to the Linux kernel mailing list was a patch to restore PREEMPT_NONE as the default given the severity of the reported regression.
Advertisement
While fixing an active performance regression, it looks like this change to restore PREEMPT_NONE as the default preemption model might not be picked up. Peter Zijlstra who authored the original code simplifying the preemption modes has responded that the “fix” is to make PostgreSQL make use of the Restartable Sequences (RSEQ) time slice extension. That time slice extension support was also upstreamed for Linux 7.0.
Advertisement
“The fix here is to make PostgreSQL make use of rseq slice extension:
That should limit the exposure to lock holder preemption (unless PostgreSQL is doing seriously egregious things).”
Advertisement
So if that stands and shifting the blame to PostgreSQL, Linux 7.0 stable could lead to a significant drop for PostgreSQL performance in some scenarios until that popular database server is updated.
Advertisement
Linux 7.0 stable is due out in about two weeks. This is also the kernel version powering Ubuntu 26.04 LTS to be released later in April.
Google has been quietly downloading a large AI model, Gemini Nano, without asking or notifying users. Alex Valdes from Bellevue, Washington has been pumping content […]
This article features an interview with Dan Rosensweig, who is speaking at TNW Conference on June 20. Check out the full event schedule here. Artificial […]
High-End-Gaming, Multimedia und kreatives Arbeiten. | MSI hat im Ramen des nahenden Black Fridays einige aufregende Angebote parat. Sichere Dir jetzt Rabatte von bis zu […]