mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-20 00:31:17 -08:00
https://github.com/tailscale/wireguard-go/compare/79ead109a81a8f57c75ac9e6ddee61714c82744b...9e10ef9af41578baabde0283237d5cbb6422ff25 Start off with device.WithQueueStagedGlobalLimit inheriting the same value from the knob it replaced, device.WithPreallocatedBuffersPerPool. Unlike WithPreallocatedBuffersPerPool, WithQueueStagedGlobalLimit is exclusive of packet memory allocated for transport messages that are immediately transmitted. So, one must consider WithQueueStagedGlobalLimit alongside .Queue{In,Out}boundSize to understand overall memory ceiling impacts. An approximation of the configured packet memory ceiling on iOS can be calculated with the following formula: device.singlePacketSlabSize * ( // 1788 (2 * device.WithQueueOutboundSize) + // 128 (2 * device.WithQueueInboundSize) + // 128 device.WithQueueStagedGlobalLimit // 64 ) = ~572KB Where previously it was: device.singlePacketSlabSize * ( // 1788 device.WithPreallocatedBuffersPerPool // 64 ) = ~114KB Updates tailscale/tailscale#1971 Updates tailscale/tailscale#21773 Updates tailscale/corp#46396 Signed-off-by: Jordan Whited <[email protected]>
20 lines
788 B
Nix
20 lines
788 B
Nix
# This is a shell.nix file used to describe the environment that
|
|
# tailscale needs for development.
|
|
#
|
|
# For more information about this and why this file is useful, see here:
|
|
# https://nixos.org/guides/nix-pills/developing-with-nix-shell.html
|
|
#
|
|
# Also look into direnv: https://direnv.net/, this can make it so that you can
|
|
# automatically get your environment set up when you change folders into the
|
|
# project.
|
|
(import (
|
|
let
|
|
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
|
in fetchTarball {
|
|
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
|
sha256 = lock.nodes.flake-compat.locked.narHash; }
|
|
) {
|
|
src = ./.;
|
|
}).shellNix
|
|
# nix-direnv cache busting line: sha256-Ackcupvrl5NqcyZZ7D3X3h/COrZ6Uz/rtxtzeu3ciU8=
|