[lkml]   [1998]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 4MB pages and framebuffer access, x11perf results, 2.1.125
In <>, on
at 03:26 AM, MOLNAR Ingo <> said:

>but 4M real-memory mappings raise other serious issues like how do we
>allocate/deallocate (swap?) those monsters.
Swappable memory is exactly what big pages aren't good for, so it seems
best not to use them for that.

There are several ways to deal with this though:
1. Don't swap the big pages. Bad if there are many of them.
2. swap the entire 4M page. Not very efficient.
3. swap parts of the 4M page, and mark the entire page as gone.
Requires extra bookkeping, 4k pages seems the preferred way. 4. Convert
the 4M page to 1024 4k pages if we ever need to swap it out.
The conversion take time of course, but it should be small compared
to disk io.
This would offer the best of both worlds - TLB-efficient 4M pages
for those that need them as long as there is memory enough, and
efficient swapping when necessary.

Helge Hafting

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:45    [W:0.166 / U:1.080 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site