Skip to content

Conversation

@andrew-d
Copy link
Member

@andrew-d andrew-d commented Apr 3, 2023

This adds the util/sysresources package, which currently only contains a function to return the total memory size of the current system.

Then, we modify magicsock to scale the number of buffered DERP messages based on the system's available memory, ensuring that we never use a value lower than the previous constant of 32.

Change-Id: Ib763c877de4d0d4ee88869078e7d512f6a3a148d

@andrew-d andrew-d requested review from maisem and valscale April 3, 2023 20:17
@andrew-d andrew-d force-pushed the andrew/magicsock-buffer-scale-memory branch from 0d67f31 to cfd7944 Compare April 3, 2023 20:18
@andrew-d andrew-d force-pushed the andrew/magicsock-buffer-scale-memory branch from cfd7944 to 7cf0ff1 Compare April 3, 2023 20:21
This adds the util/sysresources package, which currently only contains a
function to return the total memory size of the current system.

Then, we modify magicsock to scale the number of buffered DERP messages
based on the system's available memory, ensuring that we never use a
value lower than the previous constant of 32.

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: Ib763c877de4d0d4ee88869078e7d512f6a3a148d
@andrew-d andrew-d force-pushed the andrew/magicsock-buffer-scale-memory branch from 7cf0ff1 to e308612 Compare April 3, 2023 21:00
@andrew-d andrew-d merged commit 8d3acc9 into main Apr 3, 2023
@andrew-d andrew-d deleted the andrew/magicsock-buffer-scale-memory branch April 3, 2023 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants