login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
July
»
10
Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Yinghai Lu
Subject:
Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit
Date: Thursday, July 10, 2008 - 12:32 am
On Thu, Jul 10, 2008 at 12:20 AM, Ingo Molnar <mingo@elte.hu> wrote:
quoted text
> > * Yinghai Lu <yhlu.kernel@gmail.com> wrote: > >> > that the number of mapping ranges depends on our programming, not on >> > any external factor. I.e. if anyone adds a new mapping range to the >> > kernel for any purpose, it must be extended - but otherwise it >> > cannot run out due to new hardware. >> >> 4k, 2M, 1G, 2M, 4k >> >> some day will get 512g page? > > i'd not be surprised to see that in ~10 years. Then we'll have to extend > the array to 7 entries ;-) > > btw., i have a weird system: > > [ 0.000000] BIOS-provided physical RAM map: > [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) > [ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) > [ 0.000000] BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved) > [ 0.000000] BIOS-e820: 0000000000100000 - 000000003ed93000 (usable) > [ 0.000000] BIOS-e820: 000000003ed93000 - 000000003ee4d000 (ACPI NVS) > [ 0.000000] BIOS-e820: 000000003ee4d000 - 000000003fea2000 (usable) > [ 0.000000] BIOS-e820: 000000003fea2000 - 000000003fee9000 (ACPI NVS) > [ 0.000000] BIOS-e820: 000000003fee9000 - 000000003feed000 (usable) > [ 0.000000] BIOS-e820: 000000003feed000 - 000000003feff000 (ACPI data) > [ 0.000000] BIOS-e820: 000000003feff000 - 000000003ff00000 (usable) > > look at the RAM splitup: > > 640K + BIOS-hole + ~1GB + acpi + 17MB + acpi + 16K + acpi + 4K > > and the end of it is not 1024 MB but 1023 MB.
what were those BIOS engineer doing?
quoted text
> > so the _best_ mapping strategy would probably be to do 2MB granular > mapping up to 1GB, i.e. to 'overmap' into the end of RAM. But we also > have to make sure that we have no PCI resources or weird chipset > resources in the final 1MB that could hurt us with PAT, aliasing-wise. > > Since i'm not sure we can really ensure sanity on that level, i guess > your solution to precisely map everything without overmapping is our > best choice. Thus sane hw with such end of RAM mappings: > > BIOS-e820: 0000000100000000 - 0000000120000000 (usable) > > and another one with: > > BIOS-e820: 0000000100000000 - 0000000830000000 (usable) > > ... would be slightly faster (because it would use 2MB TLBs at the end > of kernel RAM, instead of broken-up 4K TLBs) > > perhaps we could also have a config and boot option that would sanitize > the e820 map to just ignore all non-2MB granular RAM. Losing 1-2MB of > RAM is not an issue on a 32GB system.
change left over to E820_RESERVED, YH --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] x86: introduce page_size_mask for 64bit
, Yinghai Lu
, (Tue Jul 8, 1:41 am)
[PATCH] x86: not overmap than end in init_memory_mapping - ...
, Yinghai Lu
, (Tue Jul 8, 1:43 am)
Re: [PATCH] x86: introduce page_size_mask for 64bit
, Ingo Molnar
, (Wed Jul 9, 12:38 am)
Re: [PATCH] x86: not overmap than end in init_memory_mappi ...
, Ingo Molnar
, (Wed Jul 9, 12:38 am)
Re: [PATCH] x86: not overmap than end in init_memory_mappi ...
, Ingo Molnar
, (Wed Jul 9, 1:34 am)
Re: [PATCH] x86: not overmap than end in init_memory_mappi ...
, Yinghai Lu
, (Wed Jul 9, 1:37 am)
Re: [PATCH] x86: not overmap than end in init_memory_mappi ...
, Ingo Molnar
, (Wed Jul 9, 1:45 am)
Re: [PATCH] x86: not overmap than end in init_memory_mappi ...
, Ingo Molnar
, (Wed Jul 9, 1:46 am)
Re: [PATCH] x86: not overmap than end in init_memory_mappi ...
, Yinghai Lu
, (Wed Jul 9, 1:58 am)
Re: [PATCH] x86: not overmap than end in init_memory_mappi ...
, Yinghai Lu
, (Wed Jul 9, 3:01 am)
Re: [PATCH] x86: not overmap than end in init_memory_mappi ...
, Ingo Molnar
, (Wed Jul 9, 3:30 am)
[PATCh] x86: overmapped fix when 4K pages on tail - 64bit
, Yinghai Lu
, (Wed Jul 9, 8:15 pm)
[PATCH] x86: merge __acpi_map_table
, Yinghai Lu
, (Wed Jul 9, 8:16 pm)
[PATCH] x86: make e820_end return end_of_ram again for 64bit
, Yinghai Lu
, (Wed Jul 9, 8:17 pm)
Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit
, Ingo Molnar
, (Wed Jul 9, 11:53 pm)
Re: [PATCH] x86: merge __acpi_map_table
, Ingo Molnar
, (Wed Jul 9, 11:54 pm)
Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit
, Yinghai Lu
, (Wed Jul 9, 11:57 pm)
Re: [PATCH] x86: make e820_end return end_of_ram again for ...
, Ingo Molnar
, (Thu Jul 10, 12:00 am)
Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit
, Ingo Molnar
, (Thu Jul 10, 12:20 am)
Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit
, Yinghai Lu
, (Thu Jul 10, 12:32 am)
[PATCH] x86: e820 remove the range instead of update it to ...
, Yinghai Lu
, (Thu Jul 10, 4:17 am)
Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit
, Arjan van de Ven
, (Thu Jul 10, 7:16 am)
[PATCH] x86: save slit
, Yinghai Lu
, (Thu Jul 10, 8:36 pm)
[PATCH] x86: introduce max_low_pfn_mapped for 64bit
, Yinghai Lu
, (Thu Jul 10, 8:38 pm)
Re: [PATCH] x86: e820 remove the range instead of update i ...
, Ingo Molnar
, (Fri Jul 11, 1:20 am)
Re: [PATCH] x86: save slit
, Ingo Molnar
, (Fri Jul 11, 1:22 am)
Re: [PATCH] x86: introduce max_low_pfn_mapped for 64bit
, Ingo Molnar
, (Fri Jul 11, 1:26 am)
Re: [PATCH] x86: introduce max_low_pfn_mapped for 64bit
, Yinghai Lu
, (Fri Jul 11, 1:39 am)
Re: [PATCH] x86: introduce max_low_pfn_mapped for 64bit
, Ingo Molnar
, (Fri Jul 11, 1:51 am)
[PATCH] x86: let 32bit use apic_ops too
, Yinghai Lu
, (Fri Jul 11, 6:41 pm)
[PATCH] x86: mach_apicdef.h need to include before smp.h
, Yinghai Lu
, (Fri Jul 11, 6:43 pm)
[PATCH] x86: make read_apic_id return final apicid
, Yinghai Lu
, (Fri Jul 11, 6:44 pm)
[PATCH] x86: make 64bit have get_apic_id
, Yinghai Lu
, (Sat Jul 12, 1:01 am)
[PATCH] x86: max_low_pfn_mapped fix #1
, Yinghai Lu
, (Sat Jul 12, 2:30 pm)
[PATCH] x86: max_low_pfn_mapped fix #2
, Yinghai Lu
, (Sat Jul 12, 2:31 pm)
[PATCH] x86: max_low_pfn_mapped fix #3
, Yinghai Lu
, (Sat Jul 12, 2:32 pm)
Re: [PATCH] x86: let 32bit use apic_ops too
, Suresh Siddha
, (Sat Jul 12, 6:08 pm)
Re: [PATCH] x86: make read_apic_id return final apicid
, Suresh Siddha
, (Sat Jul 12, 6:19 pm)
Re: [PATCH] x86: let 32bit use apic_ops too
, Maciej W. Rozycki
, (Sat Jul 12, 6:43 pm)
Re: [PATCH] x86: let 32bit use apic_ops too
, Yinghai Lu
, (Sat Jul 12, 6:45 pm)
Re: [PATCH] x86: let 32bit use apic_ops too
, Maciej W. Rozycki
, (Sat Jul 12, 6:54 pm)
Re: [PATCH] x86: let 32bit use apic_ops too
, Yinghai Lu
, (Sat Jul 12, 7:04 pm)
Re: [PATCH] x86: make 64bit have get_apic_id
, Ingo Molnar
, (Sat Jul 12, 11:28 pm)
Re: [PATCH] x86: make 64bit have get_apic_id
, Ingo Molnar
, (Sat Jul 12, 11:59 pm)
Re: [PATCH] x86: make 64bit have get_apic_id
, Yinghai Lu
, (Sun Jul 13, 12:05 am)
Re: [PATCH] x86: make 64bit have get_apic_id
, Ingo Molnar
, (Sun Jul 13, 2:23 am)
Re: [PATCH] x86: make 64bit have get_apic_id
, Ingo Molnar
, (Sun Jul 13, 2:28 am)
Re: [PATCH] x86: max_low_pfn_mapped fix #1
, Ingo Molnar
, (Sun Jul 13, 2:45 am)
Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit
, Andi Kleen
, (Sun Jul 13, 7:57 am)
Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit
, Arjan van de Ven
, (Sun Jul 13, 8:33 am)
Re: [PATCH] x86: make 64bit have get_apic_id
, Suresh Siddha
, (Sun Jul 13, 9:15 am)
Re: [PATCH] x86: let 32bit use apic_ops too
, Suresh Siddha
, (Sun Jul 13, 9:28 am)
Re: [PATCH] x86: let 32bit use apic_ops too
, Suresh Siddha
, (Sun Jul 13, 9:43 am)
Re: [PATCH] x86: let 32bit use apic_ops too
, Maciej W. Rozycki
, (Sun Jul 13, 9:51 am)
Re: [PATCH] x86: let 32bit use apic_ops too
, Maciej W. Rozycki
, (Sun Jul 13, 10:05 am)
Re: [PATCH] x86: let 32bit use apic_ops too
, Cyrill Gorcunov
, (Sun Jul 13, 10:16 am)
Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit
, Yinghai Lu
, (Sun Jul 13, 11:17 am)
Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit
, Andi Kleen
, (Sun Jul 13, 11:25 am)
Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit
, Andi Kleen
, (Sun Jul 13, 11:48 am)
Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit
, Yinghai Lu
, (Sun Jul 13, 12:00 pm)
Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit
, Ingo Molnar
, (Sun Jul 13, 1:32 pm)
Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit
, Andi Kleen
, (Sun Jul 13, 1:51 pm)
[PATCH] x86: max_low_pfn_mapped fix #4
, Yinghai Lu
, (Sun Jul 13, 2:29 pm)
[PATCH] x86: get x86_phys_bits early
, Yinghai Lu
, (Sun Jul 13, 2:30 pm)
[PATCH] x86: make 64bit hpet_set_mapping to use ioremap too
, Yinghai Lu
, (Sun Jul 13, 2:32 pm)
[PATCH] x86: make 64bit hpet_set_mapping to use ioremap too v2
, Yinghai Lu
, (Sun Jul 13, 2:50 pm)
Re: [PATCH] x86: let 32bit use apic_ops too
, Maciej W. Rozycki
, (Sun Jul 13, 4:46 pm)
Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit
, H. Peter Anvin
, (Sun Jul 13, 5:04 pm)
[PATCH] x86: let 32bit use apic_ops too - fix
, Yinghai Lu
, (Sun Jul 13, 10:19 pm)
Re: [PATCh] x86: overmapped fix when 4K pages on tail - 64bit
, Andi Kleen
, (Sun Jul 13, 11:39 pm)
Re: [PATCH] x86: let 32bit use apic_ops too - fix
, Ingo Molnar
, (Mon Jul 14, 12:12 am)
Re: [PATCH] x86: let 32bit use apic_ops too
, Cyrill Gorcunov
, (Mon Jul 14, 9:48 am)
Re: [PATCH] x86: let 32bit use apic_ops too - fix
, Suresh Siddha
, (Mon Jul 14, 9:49 am)
Re: [PATCH] x86: let 32bit use apic_ops too - fix
, Yinghai Lu
, (Mon Jul 14, 10:00 am)
Re: [PATCH] x86: let 32bit use apic_ops too
, Maciej W. Rozycki
, (Mon Jul 14, 10:20 am)
Re: [PATCH] x86: let 32bit use apic_ops too - fix
, Suresh Siddha
, (Mon Jul 14, 11:03 am)
Re: [PATCH] x86: let 32bit use apic_ops too
, Cyrill Gorcunov
, (Mon Jul 14, 11:09 am)
Re: [PATCH] x86: let 32bit use apic_ops too
, Maciej W. Rozycki
, (Mon Jul 14, 11:24 am)
Re: [PATCH] x86: let 32bit use apic_ops too
, Cyrill Gorcunov
, (Mon Jul 14, 11:32 am)
Re: [PATCH] x86: let 32bit use apic_ops too - fix
, Suresh Siddha
, (Tue Jul 15, 10:33 am)
Re: [PATCH] x86: let 32bit use apic_ops too - fix
, Yinghai Lu
, (Tue Jul 15, 11:10 am)
Re: [PATCH] x86: let 32bit use apic_ops too - fix
, Suresh Siddha
, (Tue Jul 15, 11:27 am)
Re: [PATCH] x86: let 32bit use apic_ops too - fix
, Ingo Molnar
, (Fri Jul 18, 10:06 am)
Re: [PATCH] x86: let 32bit use apic_ops too - fix
, Ingo Molnar
, (Fri Jul 18, 10:07 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
linux-netdev
:
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
David Daney
[PATCH 5/7] Staging: Octeon Ethernet: Convert to NAPI.
Wolfgang Grandegger
[PATCH net-next v4 1/3] can: mscan: fix improper return if dlc < 8 in start_xmi...
Amit Kumar Salecha
[PATCHv3 NEXT 2/2] NET: Add Qlogic ethernet driver for CNA devices
openbsd-misc
:
Theo de Raadt
Re: Old IPSEC bug
Tomáš Bodžár
Problem with vpnc connection - check group password !
Insan Praja SW
Mandoc Compiling Error
Carl Roberso
Re: Cannot change MTU of carp interface?
Richard Daemon
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate