Linux-MM
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Linux Memory Management

  • Front Page

  • Documentation

  • Internals

  • Projects

  • Academic Research

References

  • LinuxKernelMailingLists

  • MemoryManagementLinks

Related sites

  • Kernel Newbies

  • Memory Management Forum

Wiki

  • Site Editors

  • Side Bar

  • Hosted by WikiWall

Navigation

  • RecentChanges
  • FindPage
  • HelpContents

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

LinuxMM:
  • HugePageUseCases

In what situations will huge pages be useful? We can't design the ultimate solution that always works in every case, so which cases do we care about?

General Use Cases

Use cases vary along some important dimensions:

  • Is it worth modifying (or possible to modify) the application in order to get huge pages?
  • Are huge pages required or optional?
  • Do we need all of system memory or can we have a buffer?

Database-type applications usually require huge pages and do not want to fail over to small pages, they want to use absolutely as much system memory as possible, and it is usually feasible to modify the application in order to get best performance.

Examples

  • Oracle
  • ???
  • Profit!

Another class of applications has the opposite qualities. This can be thought of as the "desktop" workload. Huge pages are nice but not required, the system usually has some memory free, and few people think it's worth the time to tune these applications in order to get a few more percent of performance.

Examples

  • Firefox or Mozilla (94MB resident on my system!)
  • Xorg
  • GIMP, ImageMagick, image manipulation tools

  • OpenOffice

Something slightly mixed but with a similar solution as above is an HPC workload. These applications want to use as much memory as possible, but won't be rewritten to use large pages explicitly. It's okay to use small pages. One of the interesting things about these workloads is that they are usually the only "important" application on the machine, and they ramp up to full memory usage quickly. So you will see alternation between most of memory used and most of memory free.

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01