* How much kernel memory is in 64-bit OS ?
@ 2006-09-16 11:34 yogeshwar sonawane
2006-09-18 0:10 ` Rik van Riel
2006-09-18 9:51 ` yogeshwar sonawane
0 siblings, 2 replies; 10+ messages in thread
From: yogeshwar sonawane @ 2006-09-16 11:34 UTC (permalink / raw)
To: linux-kernel
Hi all,
We all know that in 32-bit OS, total 4GB memory space is divided in
3(user) + 1(kernel) space.
Similarly, what is the division/scenario in case of 64-bit OS ?
Any reference/explanation will be helpful.
thanks in advance.
Yogeshwar
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How much kernel memory is in 64-bit OS ?
2006-09-16 11:34 How much kernel memory is in 64-bit OS ? yogeshwar sonawane
@ 2006-09-18 0:10 ` Rik van Riel
2006-09-18 8:31 ` Andi Kleen
2006-09-18 8:35 ` Jan Engelhardt
2006-09-18 9:51 ` yogeshwar sonawane
1 sibling, 2 replies; 10+ messages in thread
From: Rik van Riel @ 2006-09-18 0:10 UTC (permalink / raw)
To: yogeshwar sonawane; +Cc: linux-kernel
yogeshwar sonawane wrote:
> Hi all,
>
> We all know that in 32-bit OS, total 4GB memory space is divided in
> 3(user) + 1(kernel) space.
>
> Similarly, what is the division/scenario in case of 64-bit OS ?
It depends on the architecture.
However, all 64 bit architectures have one thing in common.
There is so much address space available for both kernel and
userspace that we won't have to worry about a shortage for a
very long time.
Sure, people said that too when going from 16 bits to 32 bits,
but that was only a factor 2^16 difference. This time it's the
square of the previous difference.
--
What is important? What you want to be true, or what is true?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How much kernel memory is in 64-bit OS ?
2006-09-18 0:10 ` Rik van Riel
@ 2006-09-18 8:31 ` Andi Kleen
2006-09-18 8:35 ` Jan Engelhardt
1 sibling, 0 replies; 10+ messages in thread
From: Andi Kleen @ 2006-09-18 8:31 UTC (permalink / raw)
To: Rik van Riel; +Cc: linux-kernel, yogyas
Rik van Riel <riel@redhat.com> writes:
>
> However, all 64 bit architectures have one thing in common.
> There is so much address space available for both kernel and
> userspace that we won't have to worry about a shortage for a
> very long time.
Nearly.
The x86-64 port started off with a 512GB user space VM limit, and then
that later was extended with 4 level page tables because it wasn't
quite enough for everybody.
-Andi
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How much kernel memory is in 64-bit OS ?
2006-09-18 0:10 ` Rik van Riel
2006-09-18 8:31 ` Andi Kleen
@ 2006-09-18 8:35 ` Jan Engelhardt
2006-09-18 12:30 ` Rik van Riel
1 sibling, 1 reply; 10+ messages in thread
From: Jan Engelhardt @ 2006-09-18 8:35 UTC (permalink / raw)
To: Rik van Riel; +Cc: yogeshwar sonawane, linux-kernel
>
> It depends on the architecture.
>
> However, all 64 bit architectures have one thing in common.
> There is so much address space available for both kernel and
> userspace that we won't have to worry about a shortage for a
> very long time.
>
> Sure, people said that too when going from 16 bits to 32 bits,
> but that was only a factor 2^16 difference. This time it's the
> square of the previous difference.
Not quite the square :)
Jan Engelhardt
--
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How much kernel memory is in 64-bit OS ?
2006-09-16 11:34 How much kernel memory is in 64-bit OS ? yogeshwar sonawane
2006-09-18 0:10 ` Rik van Riel
@ 2006-09-18 9:51 ` yogeshwar sonawane
2006-09-18 13:39 ` Helge Hafting
1 sibling, 1 reply; 10+ messages in thread
From: yogeshwar sonawane @ 2006-09-18 9:51 UTC (permalink / raw)
To: linux-kernel
On 9/16/06, yogeshwar sonawane <yogyas@gmail.com> wrote:
> Hi all,
>
> We all know that in 32-bit OS, total 4GB memory space is divided in
> 3(user) + 1(kernel) space.
>
> Similarly, what is the division/scenario in case of 64-bit OS ?
>
> Any reference/explanation will be helpful.
>
> thanks in advance.
>
>
> Yogeshwar
>
On similar lines, some time back, i read that, to accomodate large
physical memory ,
the 3G/1G layout is modified to have 4G/4G partition. But if somebody
can focus the light on following things, it will be helpful.
1) what was the requirement of 4G/4G layout ?
2) how it is managed ?
3) how HIGH_MEMORY concept is related here.
Thanks in advance,
Yogeshwar
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How much kernel memory is in 64-bit OS ?
2006-09-18 8:35 ` Jan Engelhardt
@ 2006-09-18 12:30 ` Rik van Riel
2006-09-18 12:34 ` Jan Engelhardt
0 siblings, 1 reply; 10+ messages in thread
From: Rik van Riel @ 2006-09-18 12:30 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: yogeshwar sonawane, linux-kernel
Jan Engelhardt wrote:
>> It depends on the architecture.
>>
>> However, all 64 bit architectures have one thing in common.
>> There is so much address space available for both kernel and
>> userspace that we won't have to worry about a shortage for a
>> very long time.
>>
>> Sure, people said that too when going from 16 bits to 32 bits,
>> but that was only a factor 2^16 difference. This time it's the
>> square of the previous difference.
>
> Not quite the square :)
2^32 is the square of 2^16 :)
--
What is important? What you want to be true, or what is true?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How much kernel memory is in 64-bit OS ?
2006-09-18 12:30 ` Rik van Riel
@ 2006-09-18 12:34 ` Jan Engelhardt
2006-09-18 13:30 ` Kyle Moffett
0 siblings, 1 reply; 10+ messages in thread
From: Jan Engelhardt @ 2006-09-18 12:34 UTC (permalink / raw)
To: Rik van Riel; +Cc: yogeshwar sonawane, linux-kernel
>> > Sure, people said that too when going from 16 bits to 32 bits,
>> > but that was only a factor 2^16 difference. This time it's the
>> > square of the previous difference.
>>
>> Not quite the square :)
>
> 2^32 is the square of 2^16 :)
Going from 32 to 64: (2^64 - 2^32)
Going from 16 to 32: (2^32 - 2^16)
As mentioned above, "the square of the previos" [16 to 32] "difference".
Call me nitpicky, but:
(2^32 - 2^16)^2 != (2^64 - 2^32)
>--
> What is important? What you want to be true, or what is true?
Jan Engelhardt
--
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How much kernel memory is in 64-bit OS ?
2006-09-18 12:34 ` Jan Engelhardt
@ 2006-09-18 13:30 ` Kyle Moffett
0 siblings, 0 replies; 10+ messages in thread
From: Kyle Moffett @ 2006-09-18 13:30 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: Rik van Riel, yogeshwar sonawane, linux-kernel
On Sep 18, 2006, at 08:34:25, Jan Engelhardt wrote:
>>>> Sure, people said that too when going from 16 bits to 32 bits,
>>>> but that was only a factor 2^16 difference. This time it's the
>>>> square of the previous difference.
>>>
>>> Not quite the square :)
>>
>> 2^32 is the square of 2^16 :)
>
> As mentioned above, "the square of the previos" [16 to 32]
> "difference". Call me nitpicky, but:
>
> (2^32 - 2^16)^2 != (2^64 - 2^32)
Well into the nitpicking territory... I think you missed where he
said "factor 2^16 difference". So these:
> Going from 32 to 64: (2^64 - 2^32)
> Going from 16 to 32: (2^32 - 2^16)
Should actually be these:
Going from 32 to 64: (2^64 / 2^32)
Going from 16 to 32: (2^32 / 2^16)
And:
(2^32 / 2^16)^2 = (2^64 / 2^32) => (2^16)^2 = (2^32)
Cheers,
Kyle Moffett
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How much kernel memory is in 64-bit OS ?
2006-09-18 9:51 ` yogeshwar sonawane
@ 2006-09-18 13:39 ` Helge Hafting
2006-09-18 17:22 ` Andi Kleen
0 siblings, 1 reply; 10+ messages in thread
From: Helge Hafting @ 2006-09-18 13:39 UTC (permalink / raw)
To: yogeshwar sonawane; +Cc: linux-kernel
yogeshwar sonawane wrote:
> On 9/16/06, yogeshwar sonawane <yogyas@gmail.com> wrote:
>> Hi all,
>>
>> We all know that in 32-bit OS, total 4GB memory space is divided in
>> 3(user) + 1(kernel) space.
>>
>> Similarly, what is the division/scenario in case of 64-bit OS ?
>>
>> Any reference/explanation will be helpful.
>>
>> thanks in advance.
>>
>>
>> Yogeshwar
>>
>
> On similar lines, some time back, i read that, to accomodate large
> physical memory ,
> the 3G/1G layout is modified to have 4G/4G partition. But if somebody
> can focus the light on following things, it will be helpful.
> 1) what was the requirement of 4G/4G layout ?
It offers more memory than 3G/1G. This is an improvement, so of
course it is the chosen way. It was not required - you sure can use
a 3G/1G split on a 64-bit processor - but why introduce an artifical
limitation?
The requirement for using a 4G/4G split is to have a processor
that support 64-bit adressing as well as 32-bit backward compatibility.
> 2) how it is managed ?
The kernel runs in 64-bit mode, offering the 4G/4G stuff for 32-bit
processes.
> 3) how HIGH_MEMORY concept is related here.
high memory is a quirky way of supporting more than 4G on a 32-bit
processor. A 64-bit processor support much more than 4G, so no need
for tricks that work around the limitations of 32-bit processors.
Helge Hafting
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How much kernel memory is in 64-bit OS ?
2006-09-18 13:39 ` Helge Hafting
@ 2006-09-18 17:22 ` Andi Kleen
0 siblings, 0 replies; 10+ messages in thread
From: Andi Kleen @ 2006-09-18 17:22 UTC (permalink / raw)
To: Helge Hafting; +Cc: linux-kernel, yogyas
Helge Hafting <helge.hafting@aitel.hist.no> writes:
> The requirement for using a 4G/4G split is to have a processor
> that support 64-bit adressing as well as 32-bit backward compatibility.
s/64/36/. But it's actually not true: 4/4 works on 32bit phys non PAE
system too (iirc Fedora forced it for some time even on unsuspecting
P-M/VIA C3/586 users who only do 32bit).
> > 2) how it is managed ?
> The kernel runs in 64-bit mode, offering the 4G/4G stuff for 32-bit
> processes.
No.
>
> > 3) how HIGH_MEMORY concept is related here.
> high memory is a quirky way of supporting more than 4G on a 32-bit
More than ~900MB with a default split.
-Andi
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-09-18 17:22 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-16 11:34 How much kernel memory is in 64-bit OS ? yogeshwar sonawane
2006-09-18 0:10 ` Rik van Riel
2006-09-18 8:31 ` Andi Kleen
2006-09-18 8:35 ` Jan Engelhardt
2006-09-18 12:30 ` Rik van Riel
2006-09-18 12:34 ` Jan Engelhardt
2006-09-18 13:30 ` Kyle Moffett
2006-09-18 9:51 ` yogeshwar sonawane
2006-09-18 13:39 ` Helge Hafting
2006-09-18 17:22 ` Andi Kleen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox