aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-11-10 15:07:22 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-10 15:07:22 -0500
commit264015f8a83fefc62c5125d761fbbadf924e520c (patch)
tree6a0602761abb3d866471861a7128a5177a855fd0 /Documentation/filesystems
parentd55fc37856244c929965c190c8e9dcb49e2c07aa (diff)
parentab27a8d04b32b6ee8c30c14c4afd1058e8addc82 (diff)
Merge tag 'libnvdimm-for-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
Pull libnvdimm updates from Dan Williams: "Outside of the new ACPI-NFIT hot-add support this pull request is more notable for what it does not contain, than what it does. There were a handful of development topics this cycle, dax get_user_pages, dax fsync, and raw block dax, that need more more iteration and will wait for 4.5. The patches to make devm and the pmem driver NUMA aware have been in -next for several weeks. The hot-add support has not, but is contained to the NFIT driver and is passing unit tests. The coredump support is straightforward and was looked over by Jeff. All of it has received a 0day build success notification across 107 configs. Summary: - Add support for the ACPI 6.0 NFIT hot add mechanism to process updates of the NFIT at runtime. - Teach the coredump implementation how to filter out DAX mappings. - Introduce NUMA hints for allocations made by the pmem driver, and as a side effect all devm allocations now hint their NUMA node by default" * tag 'libnvdimm-for-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm: coredump: add DAX filtering for FDPIC ELF coredumps coredump: add DAX filtering for ELF coredumps acpi: nfit: Add support for hot-add nfit: in acpi_nfit_init, break on a 0-length table pmem, memremap: convert to numa aware allocations devm_memremap_pages: use numa_mem_id devm: make allocations numa aware by default devm_memremap: convert to return ERR_PTR devm_memunmap: use devres_release() pmem: kill memremap_pmem() x86, mm: quiet arch_add_memory()
Diffstat (limited to 'Documentation/filesystems')
-rw-r--r--Documentation/filesystems/proc.txt22
1 files changed, 12 insertions, 10 deletions
diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt
index 1e4a6cc1b6ea..402ab99e409f 100644
--- a/Documentation/filesystems/proc.txt
+++ b/Documentation/filesystems/proc.txt
@@ -1605,16 +1605,16 @@ Documentation/accounting.
1605--------------------------------------------------------------- 1605---------------------------------------------------------------
1606When a process is dumped, all anonymous memory is written to a core file as 1606When a process is dumped, all anonymous memory is written to a core file as
1607long as the size of the core file isn't limited. But sometimes we don't want 1607long as the size of the core file isn't limited. But sometimes we don't want
1608to dump some memory segments, for example, huge shared memory. Conversely, 1608to dump some memory segments, for example, huge shared memory or DAX.
1609sometimes we want to save file-backed memory segments into a core file, not 1609Conversely, sometimes we want to save file-backed memory segments into a core
1610only the individual files. 1610file, not only the individual files.
1611 1611
1612/proc/<pid>/coredump_filter allows you to customize which memory segments 1612/proc/<pid>/coredump_filter allows you to customize which memory segments
1613will be dumped when the <pid> process is dumped. coredump_filter is a bitmask 1613will be dumped when the <pid> process is dumped. coredump_filter is a bitmask
1614of memory types. If a bit of the bitmask is set, memory segments of the 1614of memory types. If a bit of the bitmask is set, memory segments of the
1615corresponding memory type are dumped, otherwise they are not dumped. 1615corresponding memory type are dumped, otherwise they are not dumped.
1616 1616
1617The following 7 memory types are supported: 1617The following 9 memory types are supported:
1618 - (bit 0) anonymous private memory 1618 - (bit 0) anonymous private memory
1619 - (bit 1) anonymous shared memory 1619 - (bit 1) anonymous shared memory
1620 - (bit 2) file-backed private memory 1620 - (bit 2) file-backed private memory
@@ -1623,20 +1623,22 @@ The following 7 memory types are supported:
1623 effective only if the bit 2 is cleared) 1623 effective only if the bit 2 is cleared)
1624 - (bit 5) hugetlb private memory 1624 - (bit 5) hugetlb private memory
1625 - (bit 6) hugetlb shared memory 1625 - (bit 6) hugetlb shared memory
1626 - (bit 7) DAX private memory
1627 - (bit 8) DAX shared memory
1626 1628
1627 Note that MMIO pages such as frame buffer are never dumped and vDSO pages 1629 Note that MMIO pages such as frame buffer are never dumped and vDSO pages
1628 are always dumped regardless of the bitmask status. 1630 are always dumped regardless of the bitmask status.
1629 1631
1630 Note bit 0-4 doesn't effect any hugetlb memory. hugetlb memory are only 1632 Note that bits 0-4 don't affect hugetlb or DAX memory. hugetlb memory is
1631 effected by bit 5-6. 1633 only affected by bit 5-6, and DAX is only affected by bits 7-8.
1632 1634
1633Default value of coredump_filter is 0x23; this means all anonymous memory 1635The default value of coredump_filter is 0x33; this means all anonymous memory
1634segments and hugetlb private memory are dumped. 1636segments, ELF header pages and hugetlb private memory are dumped.
1635 1637
1636If you don't want to dump all shared memory segments attached to pid 1234, 1638If you don't want to dump all shared memory segments attached to pid 1234,
1637write 0x21 to the process's proc file. 1639write 0x31 to the process's proc file.
1638 1640
1639 $ echo 0x21 > /proc/1234/coredump_filter 1641 $ echo 0x31 > /proc/1234/coredump_filter
1640 1642
1641When a new process is created, the process inherits the bitmask status from its 1643When a new process is created, the process inherits the bitmask status from its
1642parent. It is useful to set up coredump_filter before the program runs. 1644parent. It is useful to set up coredump_filter before the program runs.