Skip to contentSkip to conversation

x86_64: wrong DirectMap kB

DISCUSSION Jamie Gloudon 2 participants 3 messages Oct 1, 2012

lore
Share & tools
lore
#0 lore raw

Hey,

Interesting. I am able to reproduce the same problem as you using mem=700M, which shows:

DirectMap4k:        4096 kB
DirectMap2M:    18446744073709547520 kB

However, it appears to be normal without the boot parameter:

DirectMap4k:        4096 kB
DirectMap2M:    15708160 kB

What does your output looks like with the full amount on 3.6?

Jamie Gloudon

#1 lore raw
Quoted 10 lines · Jamie Gloudon

Interesting. I am able to reproduce the same problem as you using mem=700M, which shows:

DirectMap4k:        4096 kB
DirectMap2M:    18446744073709547520 kB

However, it appears to be normal without the boot parameter:

DirectMap4k:        4096 kB
DirectMap2M:    15708160 kB

It appears to be normal because the calculations haven't wrapped around, but if you compare with 3.4 or before, I think you'll find that it still adds up to too little.

Quoted 2 lines

What does your output looks like with the full amount on 3.6?

On 3.6:

MemTotal: 8060528 kB
...

DirectMap4k:        2048 kB
DirectMap2M:     7229440 kB

So it's showing significantly less direct mapped than is included in MemTotal (which itself omits some areas of reserved memory).

Whereas on 3.4:

MemTotal: 8060760 kB
...

DirectMap4k:        4096 kB
DirectMap2M:     8275968 kB

Hugh

#2 lore raw

I was also skeptical about DirectMap results added up being less than MemTotal. I see now, Thanks for the explanation.

Jamie Gloudon

Quoted 37 lines · Hugh Dickins
Quoted 10 lines · Jamie Gloudon

Interesting. I am able to reproduce the same problem as you using mem=700M, which shows:

DirectMap4k:        4096 kB
DirectMap2M:    18446744073709547520 kB

However, it appears to be normal without the boot parameter:

DirectMap4k:        4096 kB
DirectMap2M:    15708160 kB

It appears to be normal because the calculations haven't wrapped around, but if you compare with 3.4 or before, I think you'll find that it still adds up to too little.

Quoted 2 lines

What does your output looks like with the full amount on 3.6?

On 3.6:

MemTotal: 8060528 kB
...

DirectMap4k:        2048 kB
DirectMap2M:     7229440 kB

So it's showing significantly less direct mapped than is included in MemTotal (which itself omits some areas of reserved memory).

Whereas on 3.4:

MemTotal: 8060760 kB
...

DirectMap4k:        4096 kB
DirectMap2M:     8275968 kB

Hugh