From owner-freebsd-net@FreeBSD.ORG Wed May 4 20:12:35 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 308F3106566C for ; Wed, 4 May 2011 20:12:35 +0000 (UTC) (envelope-from vijju.singh@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id E257F8FC0C for ; Wed, 4 May 2011 20:12:34 +0000 (UTC) Received: by vxc34 with SMTP id 34so2064321vxc.13 for ; Wed, 04 May 2011 13:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=/j/WAAyBE1SKhykTI/M60F7K78yU4cWI070opq7lzwQ=; b=C0UGt7zMg4HjLoXlopl9Uc7sT8ci6oruktyJ153s2wn3xCUfxCMYEpWB3ZoQ8Th1wc 0fEc86mU3i6I8Qa0ObpB3FPgOsn0oHo5VvKDerDAdQJaXvpnY38ESW4LXxpNtrZ7TqDn tx5MDFDSzuA0SHoD/silVUwmtQgy8RXM30bKA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=mQsvfBXa8rbgZl8QOq3++1fx/YCgLvB/T5K3KSI0n5YuV5kCYHMVOYcHYhiI6vXd97 kWsOjVi5RT1PWl/LxtVpnzRWG3NObKuk3JKkMsZSeAZP6G4l0KCFAXxaE/LtknlX+VWo kFinlJlrEsDl65fyRayT5z59jxW3NaO2zP9sc= MIME-Version: 1.0 Received: by 10.52.107.98 with SMTP id hb2mr1859718vdb.247.1304538556753; Wed, 04 May 2011 12:49:16 -0700 (PDT) Received: by 10.220.93.7 with HTTP; Wed, 4 May 2011 12:49:16 -0700 (PDT) Date: Wed, 4 May 2011 12:49:16 -0700 Message-ID: From: Vijay Singh To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: gdb scripts for mbuf leaks X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2011 20:12:35 -0000 Hi, I am trying to track down an mbuf leak caused by an in-kernel custom application. Does anyone here have any gdb scripts that would traverse the zone (zone mbuf in this case) and print out all objects that are currently allocated? -vijay PS: I see the count of mbufs (current/cache/total) going up constantly.