Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Giefo6ah
67 days ago
|
parent
|
context
|
favorite
| on:
Postgres rewritten in Rust, now passing 100% of th...
There's nothing special about threads vs processes in Linux. mmap works the same, the challenge is to map the same file. You can share a path, pass a file descriptor via fork or unix domain socket, among other techniques.
LoganDark
67 days ago
[–]
That induces disk I/O overhead (even if it somehow doesn't impact IPC performance)
drdexebtjl
67 days ago
|
parent
|
next
[–]
The file doesn’t have to be disk-backed.
LoganDark
67 days ago
|
root
|
parent
|
next
[–]
Don't you need something mounted for that?
yxhuvud
67 days ago
|
root
|
parent
|
next
[–]
No, you can use a memfd.
tankenmate
67 days ago
|
root
|
parent
|
next
[–]
And `/dev/shm/` (which postgres uses by default on most Unix platforms)
outpost_mystic2
67 days ago
|
parent
|
prev
[–]
It doesnt. Processes can share memory
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: