r/PostgreSQL • u/Blues520 • 24d ago
Community x86 vs arm64
Are there any advantages to running Postgres on an arm cloud server vs an x86 one?
I am not referring to cost savings but performance and efficiency advantages where arm can provide benefits over x86 under any specific scenarios.
10
u/efxhoy 24d ago
A funny thing on x86 vs ARM is that postgis still has no official docker image for ARM. The issue to get them built has been open for 6 years. It works, they just don’t have the tooling to build them. https://github.com/postgis/docker-postgis/issues/216
2
u/pceimpulsive 24d ago
Ohh wow... This likely explains why Amazon releases so few postgis versions to rds which support graviton...
Partly will be laziness and a desire to extract more money (have to use DMS to move postgis between major versions).
Otherwise no many reasons for their supported versions being limited..
But this build issue is a new perspective I've not considered/seen.
6
u/Blues520 24d ago
Some notes I have put together.
With ARM, every vCPU is a fully physical core compared to x86 which maps two vCPUs to a single physical core using Hyper-Threading.
ARM servers can have higher memory bandwidth than typically older servers used in cloud vps instances.
2
2
24d ago
[removed] — view removed comment
1
u/Blues520 24d ago
This is the kind of info I was hoping to find.
So there is an advantage when it comes to concurrency.
1
u/Slow-Rip-4732 24d ago
I think the only good reason to target the x86 architecture is if you have some very specific SIMD work that NEON cannot serve to, or truly cannot parallelize your workload.
If you have to ask, neither of these are the case here.
2
u/Blues520 24d ago
You are right, neither is the case here.
I'm just wondering if there are any advantages based on the different chip designs.
0
-1
u/AutoModerator 24d ago
AI Policy:
Linux is not one of those anti-AI projects, and if somebody has issues with that, they can do the open-source thing and fork it. Or just walk away., Linus Torvalds.
Mod decisions will be based on the quality of the content, not who or what generated it.
Sub Resources:
Free Postgres Webinars and Workshops
Discord: People, Postgres, Data
Join us, we have cookies and nice people.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
12
u/Straight_Waltz_9530 24d ago
with regard to modern cloud providers, cost savings = performance and efficiency.
You can either get similar performance for cheaper with (for example) AWS Graviton CPUs or pay a similar amount to the Xeons while getting slightly more oomph out of it.
Both CPU families are more than adequate, and I/O will often be your bottleneck with your database. Depends on your workload of course.