All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Kirby <sim@hostway.ca>
To: Christoph Lameter <cl@linux.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
	Mel Gorman <mel@csn.ul.ie>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	linux-mm@kvack.org
Subject: Re: Free memory never fully used, swapping
Date: Tue, 30 Nov 2010 01:13:25 -0800	[thread overview]
Message-ID: <20101130091325.GA17340@hostway.ca> (raw)
In-Reply-To: <alpine.DEB.2.00.1011260943220.12265@router.home>

On Fri, Nov 26, 2010 at 09:48:14AM -0600, Christoph Lameter wrote:

> On Thu, 25 Nov 2010, KOSAKI Motohiro wrote:
> > Please try SLAB instead SLUB (it can be switched by kernel build option).
> > SLUB try to use high order allocation implicitly.
> 
> SLAB uses orders 0-1. Order is fixed per slab cache and determined based
> on object size at slab creation.
> 
> SLUB uses orders 0-3. Falls back to smallest order if alloc order cannot
> be met by the page allocator.
> 
> One can reduce SLUB to SLAB orders by specifying the following kernel
> commandline parameter:
> 
> slub_max_order=1

Can we also mess with these /sys files on the fly?

[/sys/kernel/slab]# grep . kmalloc-*/order | sort -n -k2 -t-
kmalloc-8/order:0
kmalloc-16/order:0
kmalloc-32/order:0
kmalloc-64/order:0
kmalloc-96/order:0
kmalloc-128/order:0
kmalloc-192/order:0
kmalloc-256/order:1
kmalloc-512/order:2
kmalloc-1024/order:3
kmalloc-2048/order:3
kmalloc-4096/order:3
kmalloc-8192/order:3

I'm not familiar with how slub works, but I assume there's some overhead
or some reason not to just use order 0 for <= kmalloc-4096?  Or is it
purely just trying to reduce cpu by calling alloc_pages less often?

Simon-

WARNING: multiple messages have this Message-ID (diff)
From: Simon Kirby <sim@hostway.ca>
To: Christoph Lameter <cl@linux.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
	Mel Gorman <mel@csn.ul.ie>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	linux-mm@kvack.org
Subject: Re: Free memory never fully used, swapping
Date: Tue, 30 Nov 2010 01:13:25 -0800	[thread overview]
Message-ID: <20101130091325.GA17340@hostway.ca> (raw)
In-Reply-To: <alpine.DEB.2.00.1011260943220.12265@router.home>

On Fri, Nov 26, 2010 at 09:48:14AM -0600, Christoph Lameter wrote:

> On Thu, 25 Nov 2010, KOSAKI Motohiro wrote:
> > Please try SLAB instead SLUB (it can be switched by kernel build option).
> > SLUB try to use high order allocation implicitly.
> 
> SLAB uses orders 0-1. Order is fixed per slab cache and determined based
> on object size at slab creation.
> 
> SLUB uses orders 0-3. Falls back to smallest order if alloc order cannot
> be met by the page allocator.
> 
> One can reduce SLUB to SLAB orders by specifying the following kernel
> commandline parameter:
> 
> slub_max_order=1

Can we also mess with these /sys files on the fly?

[/sys/kernel/slab]# grep . kmalloc-*/order | sort -n -k2 -t-
kmalloc-8/order:0
kmalloc-16/order:0
kmalloc-32/order:0
kmalloc-64/order:0
kmalloc-96/order:0
kmalloc-128/order:0
kmalloc-192/order:0
kmalloc-256/order:1
kmalloc-512/order:2
kmalloc-1024/order:3
kmalloc-2048/order:3
kmalloc-4096/order:3
kmalloc-8192/order:3

I'm not familiar with how slub works, but I assume there's some overhead
or some reason not to just use order 0 for <= kmalloc-4096?  Or is it
purely just trying to reduce cpu by calling alloc_pages less often?

Simon-

--
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/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2010-11-30  9:13 UTC|newest]

Thread overview: 87+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-15 19:52 Free memory never fully used, swapping Simon Kirby
2010-11-22 23:44 ` Andrew Morton
2010-11-22 23:44   ` Andrew Morton
2010-11-23  1:34   ` Simon Kirby
2010-11-23  1:34     ` Simon Kirby
2010-11-23  8:35   ` Dave Hansen
2010-11-23  8:35     ` Dave Hansen
2010-11-24  8:46     ` Simon Kirby
2010-11-24  8:46       ` Simon Kirby
2010-11-25  1:07       ` Shaohua Li
2010-11-25  1:07         ` Shaohua Li
2010-11-25  9:03         ` Simon Kirby
2010-11-25  9:03           ` Simon Kirby
2010-11-25 10:18           ` KOSAKI Motohiro
2010-11-25 10:18             ` KOSAKI Motohiro
2010-11-25 17:13             ` Simon Kirby
2010-11-25 17:13               ` Simon Kirby
2010-11-26  0:33               ` KOSAKI Motohiro
2010-11-26  0:33                 ` KOSAKI Motohiro
2010-11-25 10:51           ` KOSAKI Motohiro
2010-11-25 10:51             ` KOSAKI Motohiro
2010-11-25 16:15             ` Mel Gorman
2010-11-25 16:15               ` Mel Gorman
2010-11-26  2:00               ` Shaohua Li
2010-11-26  2:00                 ` Shaohua Li
2010-11-26  2:31                 ` KOSAKI Motohiro
2010-11-26  2:31                   ` KOSAKI Motohiro
2010-11-26  2:40                   ` Shaohua Li
2010-11-26  2:40                     ` Shaohua Li
2010-11-26  9:18                     ` KOSAKI Motohiro
2010-11-26  9:18                       ` KOSAKI Motohiro
2010-11-29  1:03                       ` Shaohua Li
2010-11-29  1:03                         ` Shaohua Li
2010-11-29  1:13                         ` KOSAKI Motohiro
2010-11-29  1:13                           ` KOSAKI Motohiro
2010-11-26  0:07             ` KOSAKI Motohiro
2010-11-26  0:07               ` KOSAKI Motohiro
2010-11-25 16:12           ` Mel Gorman
2010-11-25 16:12             ` Mel Gorman
2010-11-26  1:05             ` Shaohua Li
2010-11-26  1:05               ` Shaohua Li
2010-11-26  1:25               ` Mel Gorman
2010-11-26  1:25                 ` Mel Gorman
2010-11-26  2:05                 ` Shaohua Li
2010-11-26  2:05                   ` Shaohua Li
2010-11-26 11:03             ` KOSAKI Motohiro
2010-11-26 11:03               ` KOSAKI Motohiro
2010-11-26 11:11               ` Mel Gorman
2010-11-26 11:11                 ` Mel Gorman
2010-11-30  6:31                 ` KOSAKI Motohiro
2010-11-30  6:31                   ` KOSAKI Motohiro
2010-11-30 10:41                   ` Mel Gorman
2010-11-30 10:41                     ` Mel Gorman
2010-11-30 11:19                     ` KOSAKI Motohiro
2010-11-30 11:19                       ` KOSAKI Motohiro
2010-11-30  8:22             ` Simon Kirby
2010-11-30  8:22               ` Simon Kirby
2010-11-29  9:31       ` KOSAKI Motohiro
2010-11-29  9:31         ` KOSAKI Motohiro
2010-11-23 10:04   ` Mel Gorman
2010-11-23 10:04     ` Mel Gorman
2010-11-24  6:43     ` Simon Kirby
2010-11-24  6:43       ` Simon Kirby
2010-11-24  9:27       ` Mel Gorman
2010-11-24  9:27         ` Mel Gorman
2010-11-24 19:17         ` Simon Kirby
2010-11-24 19:17           ` Simon Kirby
2010-11-25  1:18           ` KOSAKI Motohiro
2010-11-25  1:18             ` KOSAKI Motohiro
2010-11-26 15:48             ` Christoph Lameter
2010-11-26 15:48               ` Christoph Lameter
2010-11-30  0:25               ` KOSAKI Motohiro
2010-11-30  0:25                 ` KOSAKI Motohiro
2010-11-30 19:10                 ` Christoph Lameter
2010-11-30 19:10                   ` Christoph Lameter
2010-12-01 10:17                   ` KOSAKI Motohiro
2010-12-01 10:17                     ` KOSAKI Motohiro
2010-12-01 15:29                     ` Christoph Lameter
2010-12-01 15:29                       ` Christoph Lameter
2010-12-02  2:44                       ` KOSAKI Motohiro
2010-12-02  2:44                         ` KOSAKI Motohiro
2010-12-02 14:39                         ` Christoph Lameter
2010-12-02 14:39                           ` Christoph Lameter
2010-11-30  9:13               ` Simon Kirby [this message]
2010-11-30  9:13                 ` Simon Kirby
2010-11-30 19:13                 ` Christoph Lameter
2010-11-30 19:13                   ` Christoph Lameter

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=20101130091325.GA17340@hostway.ca \
    --to=sim@hostway.ca \
    --cc=akpm@linux-foundation.org \
    --cc=cl@linux.com \
    --cc=kosaki.motohiro@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mel@csn.ul.ie \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.