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

Closed
ncruces opened this issue Apr 10, 2024 · 1 comment · Fixed by #181
Closed

Implement shared memory on Windows #75

ncruces opened this issue Apr 10, 2024 · 1 comment · Fixed by #181
Assignees
Labels
enhancement New feature or request

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

@ncruces ncruces self-assigned this Nov 4, 2024
@ncruces ncruces removed the help wanted Extra attention is needed label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant