{
    "mode": "man",
    "parameter": "proc_pid_pagemap",
    "section": "5",
    "url": "https://www.chedong.com/phpMan.php/man/proc_pid_pagemap/5/json",
    "generated": "2026-10-04T13:00:49Z",
    "sections": {
        "NAME": {
            "content": "/proc/pid/pagemap - mapping of virtual pages\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "/proc/pid/pagemap (since Linux 2.6.25)\nThis  file shows the mapping of each of the process's virtual pages into physical page\nframes or swap area.  It contains one 64-bit value for each  virtual  page,  with  the\nbits set as follows:\n\n63     If set, the page is present in RAM.\n\n62     If set, the page is in swap space\n\n61 (since Linux 3.5)\nThe page is a file-mapped page or a shared anonymous page.\n\n60–58 (since Linux 3.11)\nZero\n\n57 (since Linux 5.14)\nIf set, the page is write-protected through userfaultfd(2).\n\n56 (since Linux 4.2)\nThe page is exclusively mapped.\n\n55 (since Linux 3.11)\nPTE   is   soft-dirty   (see   the   kernel   source   file   Documentation/ad‐\nmin-guide/mm/soft-dirty.rst).\n\n54–0   If the page is present in RAM (bit 63), then these bits provide the page  frame\nnumber,  which  can be used to index /proc/kpageflags and /proc/kpagecount.  If\nthe page is present in swap (bit 62), then bits 4–0 give  the  swap  type,  and\nbits 54–5 encode the swap offset.\n\nBefore Linux 3.11, bits 60–55 were used to encode the base-2 log of the page size.\n\nTo  employ  /proc/pid/pagemap efficiently, use /proc/pid/maps to determine which areas\nof memory are actually mapped and seek to skip over unmapped regions.\n\nThe /proc/pid/pagemap file is present only if the CONFIGPROCPAGEMONITOR kernel con‐\nfiguration option is enabled.\n\nPermission  to  access   this   file   is   governed   by   a   ptrace   access   mode\nPTRACEMODEREADFSCREDS check; see ptrace(2).\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "proc(5)\n\nLinux man-pages 6.7                          2023-08-15                          procpidpagemap(5)",
            "subsections": []
        }
    },
    "summary": "/proc/pid/pagemap - mapping of virtual pages",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "proc",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/proc/5/json"
        }
    ]
}