public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Linux kernel memory and split on 64-bit machines
@ 2007-10-29 11:20 Yoav Artzi
  2007-10-29 12:11 ` Andi Kleen
  0 siblings, 1 reply; 3+ messages in thread
From: Yoav Artzi @ 2007-10-29 11:20 UTC (permalink / raw)
  To: linux-kernel

Hi,


I am researching now about the Linux kernel memory on 64-bit (x86_64) 
machines. I am looking into answering the following questions:

1. Is there a user-kernel split on 64-bit memories? If so, how is it 
done? What is the size of each part?

2. Does kernel high memory exists on 64-bit machines?

3. How is it possible to detect in runtime the split and the size of the 
physical memory?


Thanks,


Yoav


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linux kernel memory and split on 64-bit machines
  2007-10-29 11:20 Linux kernel memory and split on 64-bit machines Yoav Artzi
@ 2007-10-29 12:11 ` Andi Kleen
       [not found]   ` <4725EC21.7000603@checkpoint.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Andi Kleen @ 2007-10-29 12:11 UTC (permalink / raw)
  To: Yoav Artzi; +Cc: linux-kernel

Yoav Artzi <yoavar@checkpoint.com> writes:

> I am researching now about the Linux kernel memory on 64-bit (x86_64)
> machines. I am looking into answering the following questions:
>
> 1. Is there a user-kernel split on 64-bit memories? If so, how is it
> done? What is the size of each part?

See Documentation/x86_64/mm.txt. Note it changed in 2.6.11.

-Andi

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linux kernel memory and split on 64-bit machines
       [not found]       ` <4725F6F7.6020702@checkpoint.com>
@ 2007-10-29 15:48         ` Andi Kleen
  0 siblings, 0 replies; 3+ messages in thread
From: Andi Kleen @ 2007-10-29 15:48 UTC (permalink / raw)
  To: Yoav Artzi; +Cc: Andi Kleen, linux-kernel

On Mon, Oct 29, 2007 at 05:06:31PM +0200, Yoav Artzi wrote:
> I don't know what befell me. I realized the foolishness of the questions 
> a second after clicking the send button.
> 
> 
> Now, I just wonder what will happen when people will need more then 
> 2^46bytes of memory. Any idea?

The CPU needs to be extended then beyond 48bit VA.

(actually it could be extended to 2^46.5 or so) 


> 
> Another two issues:
> 
> 1. I see vmalloc() doesn't cover the entire possible space. Why is that?

It needs an reserved space for its virtual mappings.

> 
> 2. How come user space gets 47bits and kernel only gets 46bits in direct 
> mapping?

Half of the kernel space is reserved for special purposes 
(vmalloc, ioremap etc.) That is not fixed and could be varied.

-Andi


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-29 15:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-29 11:20 Linux kernel memory and split on 64-bit machines Yoav Artzi
2007-10-29 12:11 ` Andi Kleen
     [not found]   ` <4725EC21.7000603@checkpoint.com>
     [not found]     ` <20071029150035.GA30851@one.firstfloor.org>
     [not found]       ` <4725F6F7.6020702@checkpoint.com>
2007-10-29 15:48         ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox