public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: "wassim dagash" <wassim.dagash@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: KSWAPD Algorithm
Date: Wed, 03 Dec 2008 15:51:11 +0100	[thread overview]
Message-ID: <87prk9xqg0.fsf@basil.nowhere.org> (raw)
In-Reply-To: <cb94e63d0812022302m341fcdf5wffbca0ec12db426b@mail.gmail.com> (wassim dagash's message of "Wed, 3 Dec 2008 09:02:49 +0200")

"wassim dagash" <wassim.dagash@gmail.com> writes:

> Hi All,
> Description:
> I countered a weird problem with kswapd:
> it runs in some infinite loop trying to swap until order 10 of zone
> highmem is OK, While zone higmem (as I understand) has nothing to do
> with contiguous physical memory (cause there is no 1-1 mapping) which
> means kswapd will continue to try to balance order 10 of zone highmem
> forever (or until someone release a very large chunk of highmem).
> Can anyone please explain me the algorithm of kswapd and why it tries
> to balance order 10 of zone higmem ?

hugetlbfs requires large continuous mappings even in highmem
to map 2MB pages or similar to user space.
However order 10 seems pretty high, normally that's only order 8
on a i386 system.

-Andi

-- 
ak@linux.intel.com

  reply	other threads:[~2008-12-03 14:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-03  7:02 KSWAPD Algorithm wassim dagash
2008-12-03 14:51 ` Andi Kleen [this message]
2008-12-04  4:54   ` KAMEZAWA Hiroyuki

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=87prk9xqg0.fsf@basil.nowhere.org \
    --to=andi@firstfloor.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wassim.dagash@gmail.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