From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA566C43387 for ; Sun, 16 Dec 2018 06:25:29 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 98CA52084D for ; Sun, 16 Dec 2018 06:25:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="q+IQOEnQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 98CA52084D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.91) (envelope-from ) id 1gYPrR-000088-Bd; Sun, 16 Dec 2018 01:25:09 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gYPrO-00007x-Dy for kernelnewbies@kernelnewbies.org; Sun, 16 Dec 2018 01:25:06 -0500 Received: by mail-wm1-x32d.google.com with SMTP id f81so9438771wmd.4 for ; Sat, 15 Dec 2018 22:25:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=cgeT9lDSZUu3mvOcD3CtPFpiP0WHKNlLFVhCm95i8cY=; b=q+IQOEnQ9EspCMheecPGeJ3nxlPVxT9f2+HFZDCujeI4/s2pE7jtTeWuX7+BnNSegK UwYswh3cN4d6aquUx1HFpT76OZHJ8D4SJaAeoZKDH3Hs08Sgokpipui1Xyr/OZhuHgRx ddsLqrrAX887d4oSC2AnM99M2AtazZ1y287HJMPYIeBuUJ0F8jHOkNPPDHvY3sKqJaTJ wOmHNl3Mf2deB1tIpEvKAJaZd0KHHpy9g+qMVPcziHs9F3E50w6L3zxQgea/MTupllLt SQhiLxMogglSzei7Evo0LNbLYkiEa69/2cwBpGaFSAApgUcLU+CdHII9qfTAsSbWj5Ke KwcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=cgeT9lDSZUu3mvOcD3CtPFpiP0WHKNlLFVhCm95i8cY=; b=b+zU9hndSnFWNult3Y4qYoirSxS/W0A+D/Cdrt0602Cn8godjttDwgiQnH+LJ7hOc/ 8LIx9UgkkcpD6BwlAfTJ1//OuvQ0bMWLCW/YmlMqLigX2WveZeXox/E8dXvqbJU9lrWU Dha6YSFwhrBkMqxXgZCD6lccu9V18ocv6CJLmzLVtH1ZM7kOuzEcPxODcyIWLP4+gK+z ydCTGXot9xo+2AxHPn2ZuTLBq0ZrYhd3BjTnPhUkGn+wYy5rRFwXAiynw3bPrJvn3ZT1 XJLsVluSFM8qD+Y6yAOx9jKwoTH6I49hJM5kfs0HWsm0oqQ4PW9SRYyd9zMXmPtZseIC meLQ== X-Gm-Message-State: AA+aEWY/CHqfYS6j30ZXhdiiKF+emR6nUCi1K7n9CYrDOpQ6pEgkgsrf K4l9NrXzC5WD0J8fsaHNm7VC+9WcIhUIPQVIP7mOPTgE X-Google-Smtp-Source: AFSGD/UIsOk8D6+jc9WbbMECR9tLI7Ge0PpEPWHmiA3UVJn/udvR0i3TXp5TGPvaiO7S2WtIMaUhi6C4kdjgJtq+5J0= X-Received: by 2002:a1c:87cc:: with SMTP id j195mr7744953wmd.2.1544941443694; Sat, 15 Dec 2018 22:24:03 -0800 (PST) MIME-Version: 1.0 From: Naruto Nguyen Date: Sun, 16 Dec 2018 13:23:46 +0700 Message-ID: Subject: How to detect slab memory leak To: kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org Hi everyone, When using slabtop to display the cache size growing, I see that kmalloc-1024 and kmalloc-256 are increasing about 200MB after 1 hour. Is there any way to detect which kernel components cause this slab increase? Thanks a lot, Brs, Naruto _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies