From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id D9F2E3B2A4 for ; Mon, 16 Sep 2019 10:06:23 -0400 (EDT) Received: by mail-lf1-x135.google.com with SMTP id w6so68480lfl.2 for ; Mon, 16 Sep 2019 07:06:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=0fBgWTISn7InlX1w/tqRrmqkc3cxHpAywKPVegCeFUQ=; b=X8kE2FFsR/IVAFAqEWsgPM2uBdeo6bjAfULxSx1MIwc9Z3yD7WFfmr/Dho6viaUYE6 jT+d4slSy6tjtjN0mbxWk70NKiwlVDfhjo7mvNMqqqPy3WvDehVy7aOIIccQsUPCiI6/ 1H6uk7NG9igPDYrfaMakRKxjt6xK/XJ2UrZ9Jqw2Ylf7RPJ2C/eOgvrRRYI3IwmJTj/R 1gCxOdrU54xsCAAaO0reczPlLm35XDOQB6HVoOwm5Jz/WwpxTcD2qlAMM3FWuAjxtJ5T +AN+g4+cTy4kOUoNhRKMImcX6iNPnq9wODoq9Xul9VLmqieR/1ZGK+6WvmBR7RD9UTHO gCvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=0fBgWTISn7InlX1w/tqRrmqkc3cxHpAywKPVegCeFUQ=; b=RlNKtJgQmxcF514jiBIF64DEgaGzlMuSA3wBCG6ihi2zBBteA75dcyfC/nJC1psA+r mMPTnu/jUyBd1/c5RiVRD0hJJQSjwFZTlBPNQW/MEteP5PQNRqWLmSLxroIId1buZzBX z19H8wF7o9r2mus/IIjXGKy7Pop+CrUd5zDcGKnsR597ZEiOyf8G2EtO42aQz1Qf21c1 4c3Nz/DpLfGuGTFO3OA/VzSeUvHlgZUni0QrXapqDQI+3LRifJYFmufmD5UUL6HK+QEv YFN2qM7RmGLuNayC5m3PlzlQTPJE/RPR1+kQ2SttRvqQu+ESSYeN2uXHXM72D6kSntEI wk/Q== X-Gm-Message-State: APjAAAWDS0yXYCHXpRi5TU43sRflENn0Oix/ffV6EitRzr1yH9JWAZvq mQQbKJXpzpnWB4DGPFQ0UkQ= X-Google-Smtp-Source: APXvYqymHRHKMeB+kai2JlGiawi6/XlXGZP6dOTjSPhnFPf0qdcfyPN0CLDY5rHo8abE3GQY/lArxA== X-Received: by 2002:a19:ca07:: with SMTP id a7mr41567843lfg.181.1568642782806; Mon, 16 Sep 2019 07:06:22 -0700 (PDT) Received: from jonathartonsmbp.lan (83-245-235-113-nat-p.elisa-mobile.fi. [83.245.235.113]) by smtp.gmail.com with ESMTPSA id r8sm9006310lfm.71.2019.09.16.07.06.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Sep 2019 07:06:22 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) From: Jonathan Morton In-Reply-To: <99196e48-926e-689d-b1a8-69b1bfb1885f@newmedia-net.de> Date: Mon, 16 Sep 2019 17:06:21 +0300 Cc: cake@lists.bufferbloat.net Content-Transfer-Encoding: quoted-printable Message-Id: References: <2825CE14-2109-4580-A086-9701F4D3ADF0@gmail.com> <18b1c174-b88d-4664-9aa8-9c42925fc14c@www.fastmail.com> <9a90111b-2389-4dc6-8409-18c40f895540@www.fastmail.com> <43F02160-E691-4393-A0C0-8AB4AD962700@gmail.com> <057ea708-6797-23f5-ef01-9d3d7b002578@newmedia-net.de> <93040b26-aa44-41b9-abec-7e1f637c0cb1@www.fastmail.com> <2FE4FDA8-BB22-4216-8D97-FA05D896E54B@gmail.com> <99196e48-926e-689d-b1a8-69b1bfb1885f@newmedia-net.de> To: Sebastian Gottschall X-Mailer: Apple Mail (2.3445.9.1) Subject: Re: [Cake] cake memory consumption X-BeenThere: cake@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: Cake - FQ_codel the next generation List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Sep 2019 14:06:24 -0000 If you're able to log in as root, what does "tc -s qdisc | fgrep memory" = tell you? Cake actually does very little dynamic memory allocation. There's a = small amount of memory used per queue and per tin, which should total = less than 100KB in "besteffort" mode (which you should be using if you = have manual traffic classification). All other memory consumption is due to packets in the queue, which are = allocated by the kernel when they are received, and deallocated when = transmitted or dropped. Cake applies a limit to the memory used by = queued packets, generally 4MB by default. The only way this can be = exceeded by more than one packet (transiently, when a packet is enqueued = and Cake has to drop other packets to make room) is if there's an = unaccounted memory leak somewhere. If you can find such a leak in Cake, we'll fix it. But I think it is = probably elsewhere. - Jonathan Morton=