Skip to contentSkip to conversation

Shared Page Tables [0/2]

RFC/PATCH Dave McCracken 2 participants 5 messages Apr 10, 2006 Memory management

lore
Share & tools
lore
#0 lore raw

Here's a new cut of the shared page table patch. I divided it into two patches. The first one just fleshes out the pxd_page/pxd_page_kernel macros across the architectures. The second one is the main patch.

This version of the patch should address the concerns Hugh raised. Hugh, I'd appreciate your feedback again. Did I get everything?

These patches apply against 2.6.17-rc1.

Dave McCracken

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#1 lore raw
Quoted 9 lines · Dave McCracken

Here's a new cut of the shared page table patch. I divided it into two patches. The first one just fleshes out the pxd_page/pxd_page_kernel macros across the architectures. The second one is the main patch.

This version of the patch should address the concerns Hugh raised. Hugh, I'd appreciate your feedback again. Did I get everything?

These patches apply against 2.6.17-rc1.

Could you break out the locking changes to huge pages?

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#2 lore raw

--On Monday, April 10, 2006 10:22:34 -0700 Christoph Lameter

Quoted 7 lines · <[email protected]> wrote:
Quoted 5 lines

Here's a new cut of the shared page table patch. I divided it into two patches. The first one just fleshes out the pxd_page/pxd_page_kernel macros across the architectures. The second one is the main patch.
(...)

Could you break out the locking changes to huge pages?

The lock changes to hugetlb are only to support sharing of pmd pages when they contain hugetlb pages. They just substitute the struct page lock for the page_table_lock, and are only about 30 lines of code. Is this really worth separating out?

Dave McCracken

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#3 lore raw
Quoted 4 lines · Dave McCracken

The lock changes to hugetlb are only to support sharing of pmd pages when they contain hugetlb pages. They just substitute the struct page lock for the page_table_lock, and are only about 30 lines of code. Is this really worth separating out?

Ia64 does not use pmd pages for huge pages. It relies instead on a separate region. I wonder if this works on IA64.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#4 lore raw

--On Monday, April 10, 2006 13:20:59 -0700 Christoph Lameter

Quoted 7 lines · <[email protected]> wrote:
Quoted 4 lines

The lock changes to hugetlb are only to support sharing of pmd pages when they contain hugetlb pages. They just substitute the struct page lock for the page_table_lock, and are only about 30 lines of code. Is this really worth separating out?

Ia64 does not use pmd pages for huge pages. It relies instead on a separate region. I wonder if this works on IA64.

Sharing of hugetlb page tables is enabled on a per-architecture basis, so if ia64 doesn't use pmd pages we shouldn't try to enable it. If it's not enabled all the locking in hugetlb resolves to using page_table_lock, so the original semantics will be preserved.

Dave McCracken

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>