Skip to contentSkip to conversation

TLB entries > 4kb

DISCUSSION [email protected] 6 participants 6 messages Feb 12, 1998 – Feb 13, 1998 MIPS

lore
Share & tools
lore
#0 lore raw

Some architectures can use multiple page sizes in the TLB at the same time. This would for example allow to map memory allocations > PAGE_SIZE using just a single TLB entry if the circumstances are just right, thereby reducing / eleminating TLB trashing. This should improve the performance for huge apps quite a bit. Some architectures could partially get rid of the sick effects of their virtual indexed primary caches as well. All that is needed for this to work is to have sufficiently large physical pages with sufficient alignment at hand.

Has anybody ever looked into implementing that? What architectures besides MIPS could take advantage of such a feature?

Ralf

#1 lore raw

From: [email protected]
Date: Thu, 12 Feb 1998 05:56:48 +0100

Has anybody ever looked into implementing that? What architectures besides MIPS could take advantage of such a feature?

We already use it on Sparc64 for mmap()'ing the frame buffers, we could easily extend it to work for mmap()'s of real memory. Check out arch/sparc64/mm/generic.c in the vger CVS tree for details.

Later,
David S. Miller
[email protected]

#2 lore raw
In reply to [email protected]
Quoted 2 lines

Has anybody ever looked into implementing that? What architectures besides MIPS could take advantage of such a feature?

On the intel its a huge win to map PCI frame buffers using 4Mbyte pages, but the kernel mmap really can't hack the idea right now. A pity cos if you hack it in and make sure you never unmap it you get 2-3% better X performance

#4 lore raw
In reply to [email protected]
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

"r" == ralf <[email protected]>
wrote the following on Thu, 12 Feb 1998 05:56:48 +0100

r> Some architectures can use multiple page sizes in the TLB at the same time. r> This would for example allow to map memory allocations > PAGE_SIZE using just r> a single TLB entry if the circumstances are just right, thereby r> reducing / eleminating TLB trashing. This should improve the performance r> for huge apps quite a bit. Some architectures could partially get rid of r> the sick effects of their virtual indexed primary caches as well. All that r> is needed for this to work is to have sufficiently large physical pages with r> sufficient alignment at hand.

r> Has anybody ever looked into implementing that? What architectures besides r> MIPS could take advantage of such a feature?

The MPC860. We now have 8 MByte Page Table entries for the Kernel Address Space and the Dual Ported RAM used to communicate with the CPM.

r> Ralf

r> -
r> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in r> the body of a message to [email protected]

#3 lore raw
In reply to Alan Cox
Quoted 6 lines · Alan Cox
Quoted 2 lines

Has anybody ever looked into implementing that? What architectures besides MIPS could take advantage of such a feature?

On the intel its a huge win to map PCI frame buffers using 4Mbyte pages, but the kernel mmap really can't hack the idea right now. A pity cos if you hack it in and make sure you never unmap it you get 2-3% better X performance

i tried to hack this half a year ago, but had to find out that 4MB pages are only valid for kernel mappings, which means we'd have to make X a ring 0 process too ...

-- mingo

#5 lore raw
In reply to Michael Lausch
Quoted 5 lines

r> Has anybody ever looked into implementing that? What architectures besides r> MIPS could take advantage of such a feature?

The MPC860. We now have 8 MByte Page Table entries for the Kernel Address Space and the Dual Ported RAM used to communicate with the CPM.

...and the IBM PPC403GC/GCX. Variable page sizes between 1k and 16M (in eight steps, variable per TLB IIRC). This MMU, "designed for embedded apps" according to IBM, also handles the process ID per TLB that Ralf mentioned on the MIPS.

JDB (hunting for round tuits for that PPC board design)

Jan-Derk Bakker
Official Usenet Net.scum; see http://www.netscum.net