Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement shared memory on Windows #75

Open
ncruces opened this issue Apr 10, 2024 · 1 comment
Open

Implement shared memory on Windows #75

ncruces opened this issue Apr 10, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ncruces
Copy link
Owner

ncruces commented Apr 10, 2024

Port #71 to Windows. Mostly:

Also, vfs/shm.go needs tweaks to the DMS lock.

Reference:
https://devblogs.microsoft.com/oldnewthing/20240201-00/?p=109346

@ncruces
Copy link
Owner Author

ncruces commented Oct 31, 2024

Virtual memory placeholders look unfeasible for this. We would need to hard code the blocks of memory that could be used for file mappings. It gets rather ugly.

But Windows can likely reuse significant portions of this of #180. It could trade the in memory locks for file locks, map the file in main memory, and support multiple processes sharing the WAL. If so, care needs to be taken that copies will no longer be made under a lock (they may need to be made on the right side of a file lock).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant