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
Revision 1 as of 2007-09-12 17:51:30
LinuxMM:
  • ActualMemoryFootprint

The kernel keeps a count of how much memory each process uses in two ways, RSS (resident set size) and "virtual size". For our purposes here, "virtual memory used" is the same as "virtual address space used", meaning "how much area in the virtual address space is consumed." On a 32-bit process, there is usually 3GB of total virtual address space available. If you mmap() a 1GB file, you use 1GB of virtual memory, even if that file has not been touched or a single byte of it read into the virtual address space. Once you start touching that memory area, the file is read in from disk, and you start to consume physical memory (and your RSS goes up).

Some operating systems refer to "virtual memory" in another way.

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