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

tailscale 50 MB limit causes issues #366

Open
kinghrothgar opened this issue Mar 5, 2025 · 0 comments
Open

tailscale 50 MB limit causes issues #366

kinghrothgar opened this issue Mar 5, 2025 · 0 comments

Comments

@kinghrothgar
Copy link

kinghrothgar commented Mar 5, 2025

I have all the latest versions installed, NanoKVM 2.2.1, Firmware 1.4.0, tailscale 1.80.3. My connection to the Web App over tailscale kept breaking. With the memory limit not set, it eventually consumes too much memory and breaks. With the memory limit set, it also was breaking. In both instances, the only way to fix it was to restart the NanoKVM.

After doing some debugging, I discovered that settings the GOMEMLIMIT to 50 MB causes tailscale to GC constantly. Even after doing tailscale down, tailscaled was using around +20% of the CPU. I did a go CPU profile, and it was constantly stuck in GC. 50 MB of vmem just isn't enough for the latest tailscales it appears. After tweaking it, I found that setting /etc/kvm/GOMEMLIMIT to 75 seemed to be the correct balance. I have been able to keep a Web App session open for over an hour and actual tailscaled memory usage hovers around 40 MB.

@kinghrothgar kinghrothgar changed the title tailscale 50 MB limit causes issues, needs to be raised to 75 MB tailscale 50 MB limit causes issues Mar 5, 2025
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

No branches or pull requests

1 participant