From: David Chow <davidchow@shaolinmicro.com>
To: William Lee Irwin III <wli@holomorphy.com>
Cc: Rik van Riel <riel@conectiva.com.br>, linux-mm@kvack.org
Subject: Re: Big memory, no struct page allocation
Date: Thu, 04 Jul 2002 00:16:40 +0800 [thread overview]
Message-ID: <3D232368.5000405@shaolinmicro.com> (raw)
In-Reply-To: <20020702060611.GT25360@holomorphy.com>
William Lee Irwin III wrote:
>On Mon, 1 Jul 2002, David Chow wrote:
>
>
>>>In other words, even I have 2G physical memory, I cannot have benefits
>>>of using all memory for pagecache, this also means I cannot create any
>>>cache beyong a 1G size in kernel. That's a pitty for 32-bit systems,
>>>with himem, how does it work?
>>>
>>>
>
>On Mon, Jul 01, 2002 at 02:48:00PM -0300, Rik van Riel wrote:
>
>
>>Pagecache can use highmem just fine.
>>regards,
>>Rik
>>
>>
>
>Yes, pagecache doesn't care where it is, it just works with the
>struct pages for the memory. Things that are more internal like
>dcache and buffer cache need to be allocated from ZONE_NORMAL,
>as the kernel actually touches that memory directly.
>
>
>Cheers,
>Bill
>
>
Thanks for advice, that means allocation of slab cache never gets over
1G? Since you mention dcache, where dcache uses kmem_cache_create()
calls, or it depends on the flags pass to kmem_cache_create()? What
about kmalloc()?
Since before access a page, we have to do kmap(page), how does this
pointer address work? I found that if my machine have less than physical
1G RAM (actually somewhere between 900-940M), I don't have to call
kmap() before really accessing the page data, if more than this amount
of memory, it will result an oops. It seems for system that has more
than 900M memory, kernel handle page data differently (need to use kmap
before accessing the page data). Is it true that kmap only translate the
page into a virtual address if more than 1G RAM or leave it physical is
less than 1G RAM? I am a bit confuse in this behaviour of kmap().
regards,
David
--
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/
prev parent reply other threads:[~2002-07-03 16:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-23 8:55 David Chow
2002-06-23 8:59 ` William Lee Irwin III
2002-06-23 15:31 ` David Chow
2002-06-27 1:38 ` William Lee Irwin III
2002-06-30 18:38 ` David Chow
2002-07-01 17:48 ` Rik van Riel
2002-07-02 6:06 ` William Lee Irwin III
2002-07-03 16:16 ` David Chow [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=3D232368.5000405@shaolinmicro.com \
--to=davidchow@shaolinmicro.com \
--cc=linux-mm@kvack.org \
--cc=riel@conectiva.com.br \
--cc=wli@holomorphy.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