From owner-freebsd-questions@FreeBSD.ORG Thu Mar 26 23:47:44 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2364E30A; Thu, 26 Mar 2015 23:47:44 +0000 (UTC) Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D9323D83; Thu, 26 Mar 2015 23:47:43 +0000 (UTC) Received: by igbud6 with SMTP id ud6so6686103igb.1; Thu, 26 Mar 2015 16:47:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=4aq9CONvYpkVGEa8WjI0ztLXCrqR0JdhdlQWEd4Gxfk=; b=C1lAiJQ3tgDVF9WatacU3sL0zVxwj6gRqi7yZAxdui3BBRsE2F5zdbkb6w804O8rgD mK2sH331XPStae8uphS5a7X5fZvpp9Y30VkktPYzNkxcvaS3Ng9UcK/iaNxUVvG8TVxw K88Er+f09XXGZO+ay4fCLpiTBXjFvhXs6OnCK1QzPX6mK5yLQW/S6DuFdonl3CMHBIqP +gSoF5aC5NQHWNMM+g9CVeifzWVC7YklQbY7PqGCL/QBUygwOL1aA2c/5Xp7+k4CSTD1 NRsm6EwfCNRm9y+rClhH9uLbE9cKzS5d1HrAJTtjbP07dDKfnubaAv/Nrcqk+OZuNjAu JKJQ== MIME-Version: 1.0 X-Received: by 10.50.29.109 with SMTP id j13mr41127544igh.2.1427413663335; Thu, 26 Mar 2015 16:47:43 -0700 (PDT) Sender: jdavidlists@gmail.com Received: by 10.36.67.139 with HTTP; Thu, 26 Mar 2015 16:47:43 -0700 (PDT) In-Reply-To: References: <20150316232404.GM2379@kib.kiev.ua> Date: Thu, 26 Mar 2015 19:47:43 -0400 X-Google-Sender-Auth: S9qMFSAlrMC7reQGIB825L5YsMo Message-ID: Subject: Re: Significant memory leak in 9.3p10? From: J David To: Kevin Oberman Content-Type: text/plain; charset=UTF-8 Cc: freebsd-stable , "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2015 23:47:44 -0000 In our case, On Thu, Mar 26, 2015 at 5:03 PM, Kevin Oberman wrote: > This is just a shot in the dark and not a really likely one, but I have had > issues with Firefox leaking memory badly. I can free the space by killing > firefox and restarting it. In our case, we can log in from the console, kill every single user-mode process on the system except the init, login, and the console shell, and the memory is not recovered. Gigabytes and gigabytes user memory of it are being held by some un-findable anonymous persistent structure not linked to any process. Konstantin proposed that it was some sort of shared memory usage, but there appears to be no way to check or investigate most types of shared memory usage on FreeBSD. > If it is in user space, top should show it under RES. This is definitely *not* the case. Whatever is using the memory is not associated with any user-space process, and does not show up on top or ps. It also does not appear to be SysV shared memory, as that reports: $ ipcs -m Shared Memory: T ID KEY MODE OWNER GROUP $ Also, kern.ipc.shmmax is only 512MB whereas this problem is consuming usually 8-10GB. So I guess the remaining possibilities are anonymous mmap's that are somehow not associated with any process and Posix shared memory. Are there any ways to investigate either possibility? Thanks!