linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Lameter <cl@linux.com>
To: Han Pingtian <hanpt@linux.vnet.ibm.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
	mhocko@suse.cz, penberg@kernel.org, rientjes@google.com,
	linux-mm@kvack.org
Subject: Re: OOM-killer and strange RSS value in 3.9-rc7
Date: Thu, 25 Apr 2013 18:24:05 +0000	[thread overview]
Message-ID: <0000013e427023d7-9456c313-8654-420c-b85a-cb79cc3c4ffc-000000@email.amazonses.com> (raw)
In-Reply-To: <20130425060705.GK2672@localhost.localdomain>

On Thu, 25 Apr 2013, Han Pingtian wrote:

> > A dump of the other fields in /sys/kernel/slab/kmalloc*/* would also be
> > useful.
> >
> I have dumpped all /sys/kernel/slab/kmalloc*/* in kmalloc.tar.xz and
> will attach it to this mail.

Ok that looks like a lot of objects were freed from slab pages but the
slab pages were not freed.

looking at kmalloc-8192 we have

Total capacity of the slab cache is 27k objects but only 508 are in use.

Looks like slab pages are not freed when all objects in them have been
released.

The relevant portion of code that do the freeing are in

mm/slub.c::unfreeze_partials()

		if (unlikely(!new.inuse && n->nr_partial > s->min_partial)) {
                        page->next = discard_page;
                        discard_page = page;
                } else {
                        add_partial(n, page, DEACTIVATE_TO_TAIL);
                        stat(s, FREE_ADD_PARTIAL);
                }


..

       while (discard_page) {
                page = discard_page;
                discard_page = discard_page->next;

                stat(s, DEACTIVATE_EMPTY);
                discard_slab(s, page);
                stat(s, FREE_SLAB);
        }

and mm/slub.c::__slab_free()

     if (unlikely(!new.inuse && n->nr_partial > s->min_partial))
                goto slab_empty;


Could you verify the values of nr_partial and min_partial and verify that
the free paths are actually used?

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2013-04-25 18:24 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <alpine.DEB.2.02.1304161315290.30779@chino.kir.corp.google.com>
     [not found] ` <20130417094750.GB2672@localhost.localdomain>
     [not found]   ` <20130417141909.GA24912@dhcp22.suse.cz>
     [not found]     ` <20130418101541.GC2672@localhost.localdomain>
     [not found]       ` <20130418175513.GA12581@dhcp22.suse.cz>
     [not found]         ` <20130423131558.GH8001@dhcp22.suse.cz>
     [not found]           ` <20130424044848.GI2672@localhost.localdomain>
2013-04-24  9:47             ` Michal Hocko
2013-04-24 15:36               ` Christoph Lameter
2013-04-25  6:07                 ` Han Pingtian
2013-04-25 17:17                   ` Christoph Lameter
2013-04-27  8:20                     ` Will Huck
2013-04-29 14:49                       ` Christoph Lameter
2013-05-01  3:13                         ` Will Huck
2013-05-02 15:10                           ` Christoph Lameter
2013-05-09 13:17                             ` Will Huck
2013-05-09 14:00                               ` Christoph Lameter
2013-05-10  0:42                                 ` Will Huck
2013-05-10 16:00                                   ` Christoph Lameter
2013-04-25 18:24                   ` Christoph Lameter [this message]
2013-04-26  6:24                     ` Han Pingtian
2013-04-26 14:42                       ` Christoph Lameter
2013-04-27 11:24                         ` Han Pingtian
2013-04-29 14:50                           ` Christoph Lameter
2013-04-29 14:57                             ` Michal Hocko
2013-05-02 10:56                               ` Han Pingtian
2013-05-02 15:10                                 ` Christoph Lameter
2013-05-03  3:03                                   ` Han Pingtian
2013-05-03 15:25                                     ` Christoph Lameter
2013-05-03 15:34                                       ` Michal Hocko
2013-05-03 16:16                                         ` Christoph Lameter
2013-12-27 10:39                                           ` Wanpeng Li
2014-01-06 13:15                                             ` Wanpeng Li
     [not found]                                             ` <52caac5c.27cb440a.533d.ffffbbd2SMTPIN_ADDED_BROKEN@mx.google.com>
2014-01-21 22:12                                               ` David Rientjes
2014-01-22 23:45                                                 ` Wanpeng Li
2013-04-25  5:41               ` Han Pingtian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0000013e427023d7-9456c313-8654-420c-b85a-cb79cc3c4ffc-000000@email.amazonses.com \
    --to=cl@linux.com \
    --cc=hanpt@linux.vnet.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.cz \
    --cc=penberg@kernel.org \
    --cc=rientjes@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox