From: Christoph Lameter <clameter@sgi.com>
To: girish <girishvg@gmail.com>
Cc: Linux-MM@kvack.org
Subject: Re: why inode creation with GFP_HIGHUSER?
Date: Wed, 13 Sep 2006 15:30:56 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.64.0609131528510.20316@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <34a75100609131527x458d7601x5aa885bb56b6bad6@mail.gmail.com>
On Thu, 14 Sep 2006, girish wrote:
> > I am not sure what you intend to do. The kernel already avoids mapping
> > highmem pages into the kernel as much as possible.
>
> that's the whole confusion. kernel is supposed to *avoid* allocating
> from ZONE_HIGHMEM if there is some memory left in ZONE_DMA and/or
The kernel favors ZONE_HIGHMEM allocations for certain type of
allocations. Like those marked GF_HIGHUSER. It avoid establishing
mappings of its own. The mappings via the page tables are easier on
the machine and so the application will be fine with HIGHMEM pages.
> ZONE_NORMAL. but as i mentioned the zonelist selection that happens
> based on GFP_* mask (in this case GFP_HIGHUSER), makes __alloc_pages
> to allocate from a list which has both HIGHMEM and DMA/NORMAL zones
> listed in it. the zonelist looping/fallback is as implemented in
> get_page_from_freelist (). to this function, the zonelist that is
> passed contains both and in the order - HIGHMEM and DMA/NORMAL zones.
> shouldn't it be NORMAl/DMA first and then HIGHMEM in the zonelist?
The fallback sequence is HIGHMEM / NORMAL / DMA for a GFP_HIGHUSER
allocation.
--
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>
prev parent reply other threads:[~2006-09-13 22:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <34a75100609130734m68729bdaj30258c10edfa7947@mail.gmail.com>
2006-09-13 14:54 ` girish
2006-09-13 17:32 ` Christoph Lameter
2006-09-13 22:27 ` girish
2006-09-13 22:30 ` Christoph Lameter [this message]
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=Pine.LNX.4.64.0609131528510.20316@schroedinger.engr.sgi.com \
--to=clameter@sgi.com \
--cc=Linux-MM@kvack.org \
--cc=girishvg@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