~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/ABI/testing/sysfs-devices-memory

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/ABI/testing/sysfs-devices-memory (Architecture m68k) and /Documentation/ABI/testing/sysfs-devices-memory (Architecture sparc64)


  1 What:           /sys/devices/system/memory          1 What:           /sys/devices/system/memory
  2 Date:           June 2008                           2 Date:           June 2008
  3 Contact:        Badari Pulavarty <pbadari@us.ib      3 Contact:        Badari Pulavarty <pbadari@us.ibm.com>
  4 Description:                                        4 Description:
  5                 The /sys/devices/system/memory      5                 The /sys/devices/system/memory contains a snapshot of the
  6                 internal state of the kernel m      6                 internal state of the kernel memory blocks. Files could be
  7                 added or removed dynamically t      7                 added or removed dynamically to represent hot-add/remove
  8                 operations.                         8                 operations.
  9 Users:          hotplug memory add/remove tool      9 Users:          hotplug memory add/remove tools
 10                 http://www.ibm.com/developerwo     10                 http://www.ibm.com/developerworks/wikis/display/LinuxP/powerpc-utils
 11                                                    11 
 12 What:           /sys/devices/system/memory/mem     12 What:           /sys/devices/system/memory/memoryX/removable
 13 Date:           June 2008                          13 Date:           June 2008
 14 Contact:        Badari Pulavarty <pbadari@us.ib     14 Contact:        Badari Pulavarty <pbadari@us.ibm.com>
 15 Description:                                       15 Description:
 16                 The file /sys/devices/system/m     16                 The file /sys/devices/system/memory/memoryX/removable is a
 17                 legacy interface used to indic     17                 legacy interface used to indicated whether a memory block is
 18                 likely to be offlineable or no     18                 likely to be offlineable or not.  Newer kernel versions return
 19                 "1" if and only if the kernel      19                 "1" if and only if the kernel supports memory offlining.
 20 Users:          hotplug memory remove tools        20 Users:          hotplug memory remove tools
 21                 http://www.ibm.com/developerwo     21                 http://www.ibm.com/developerworks/wikis/display/LinuxP/powerpc-utils
 22                 lsmem/chmem part of util-linux     22                 lsmem/chmem part of util-linux
 23                                                    23 
 24 What:           /sys/devices/system/memory/mem     24 What:           /sys/devices/system/memory/memoryX/phys_device
 25 Date:           September 2008                     25 Date:           September 2008
 26 Contact:        Badari Pulavarty <pbadari@us.ib     26 Contact:        Badari Pulavarty <pbadari@us.ibm.com>
 27 Description:                                       27 Description:
 28                 The file /sys/devices/system/m     28                 The file /sys/devices/system/memory/memoryX/phys_device
 29                 is read-only;  it is a legacy      29                 is read-only;  it is a legacy interface only ever used on s390x
 30                 to expose the covered storage      30                 to expose the covered storage increment.
 31 Users:          Legacy s390-tools lsmem/chmem      31 Users:          Legacy s390-tools lsmem/chmem
 32                                                    32 
 33 What:           /sys/devices/system/memory/mem     33 What:           /sys/devices/system/memory/memoryX/phys_index
 34 Date:           September 2008                     34 Date:           September 2008
 35 Contact:        Badari Pulavarty <pbadari@us.ib     35 Contact:        Badari Pulavarty <pbadari@us.ibm.com>
 36 Description:                                       36 Description:
 37                 The file /sys/devices/system/m     37                 The file /sys/devices/system/memory/memoryX/phys_index
 38                 is read-only and contains the      38                 is read-only and contains the section ID in hexadecimal
 39                 which is equivalent to decimal     39                 which is equivalent to decimal X contained in the
 40                 memory section directory name.     40                 memory section directory name.
 41                                                    41 
 42 What:           /sys/devices/system/memory/mem     42 What:           /sys/devices/system/memory/memoryX/state
 43 Date:           September 2008                     43 Date:           September 2008
 44 Contact:        Badari Pulavarty <pbadari@us.ib     44 Contact:        Badari Pulavarty <pbadari@us.ibm.com>
 45 Description:                                       45 Description:
 46                 The file /sys/devices/system/m     46                 The file /sys/devices/system/memory/memoryX/state
 47                 is read-write.  When read, it      47                 is read-write.  When read, it returns the online/offline
 48                 state of the memory block.  Wh     48                 state of the memory block.  When written, root can toggle
 49                 the online/offline state of a      49                 the online/offline state of a memory block using the following
 50                 commands::                         50                 commands::
 51                                                    51 
 52                   # echo online > /sys/devices     52                   # echo online > /sys/devices/system/memory/memoryX/state
 53                   # echo offline > /sys/device     53                   # echo offline > /sys/devices/system/memory/memoryX/state
 54                                                    54 
 55                 On newer kernel versions, adva     55                 On newer kernel versions, advanced states can be specified
 56                 when onlining to select a targ     56                 when onlining to select a target zone: "online_movable"
 57                 selects the movable zone.  "on     57                 selects the movable zone.  "online_kernel" selects the
 58                 applicable kernel zone (DMA, D     58                 applicable kernel zone (DMA, DMA32, or Normal).  However,
 59                 after successfully setting one     59                 after successfully setting one of the advanced states,
 60                 reading the file will return "     60                 reading the file will return "online"; the zone information
 61                 can be obtained via "valid_zon     61                 can be obtained via "valid_zones" instead.
 62                                                    62 
 63                 While onlining is unlikely to      63                 While onlining is unlikely to fail, there are no guarantees
 64                 that offlining will succeed.       64                 that offlining will succeed.  Offlining is more likely to
 65                 succeed if "valid_zones" indic     65                 succeed if "valid_zones" indicates "Movable".
 66 Users:          hotplug memory remove tools        66 Users:          hotplug memory remove tools
 67                 http://www.ibm.com/developerwo     67                 http://www.ibm.com/developerworks/wikis/display/LinuxP/powerpc-utils
 68                                                    68 
 69                                                    69 
 70 What:           /sys/devices/system/memory/mem     70 What:           /sys/devices/system/memory/memoryX/valid_zones
 71 Date:           July 2014                          71 Date:           July 2014
 72 Contact:        Zhang Zhen <zhenzhang.zhang@hua     72 Contact:        Zhang Zhen <zhenzhang.zhang@huawei.com>
 73 Description:                                       73 Description:
 74                 The file /sys/devices/system/m     74                 The file /sys/devices/system/memory/memoryX/valid_zones is
 75                 read-only.                         75                 read-only.
 76                                                    76 
 77                 For online memory blocks, it r     77                 For online memory blocks, it returns in which zone memory
 78                 provided by a memory block is      78                 provided by a memory block is managed.  If multiple zones
 79                 apply (not applicable for hotp     79                 apply (not applicable for hotplugged memory), "None" is returned
 80                 and the memory block cannot be     80                 and the memory block cannot be offlined.
 81                                                    81 
 82                 For offline memory blocks, it      82                 For offline memory blocks, it returns by which zone memory
 83                 provided by a memory block can     83                 provided by a memory block can be managed when onlining.
 84                 The first returned zone ("defa     84                 The first returned zone ("default") will be used when setting
 85                 the state of an offline memory     85                 the state of an offline memory block to "online".  Only one of
 86                 the kernel zones (DMA, DMA32,      86                 the kernel zones (DMA, DMA32, Normal) is applicable for a single
 87                 memory block.                      87                 memory block.
 88                                                    88 
 89 What:           /sys/devices/system/memoryX/no     89 What:           /sys/devices/system/memoryX/nodeY
 90 Date:           October 2009                       90 Date:           October 2009
 91 Contact:        Linux Memory Management list <l     91 Contact:        Linux Memory Management list <linux-mm@kvack.org>
 92 Description:                                       92 Description:
 93                 When CONFIG_NUMA is enabled, a     93                 When CONFIG_NUMA is enabled, a symbolic link that
 94                 points to the corresponding NU     94                 points to the corresponding NUMA node directory.
 95                                                    95 
 96                 For example, the following sym     96                 For example, the following symbolic link is created for
 97                 memory section 9 on node0:         97                 memory section 9 on node0:
 98                                                    98 
 99                 /sys/devices/system/memory/mem     99                 /sys/devices/system/memory/memory9/node0 -> ../../node/node0
100                                                   100 
101                                                   101 
102 What:           /sys/devices/system/node/nodeX    102 What:           /sys/devices/system/node/nodeX/memoryY
103 Date:           September 2008                    103 Date:           September 2008
104 Contact:        Gary Hade <garyhade@us.ibm.com>    104 Contact:        Gary Hade <garyhade@us.ibm.com>
105 Description:                                      105 Description:
106                 When CONFIG_NUMA is enabled       106                 When CONFIG_NUMA is enabled
107                 /sys/devices/system/node/nodeX    107                 /sys/devices/system/node/nodeX/memoryY is a symbolic link that
108                 points to the corresponding /s    108                 points to the corresponding /sys/devices/system/memory/memoryY
109                 memory section directory.  For    109                 memory section directory.  For example, the following symbolic
110                 link is created for memory sec    110                 link is created for memory section 9 on node0.
111                                                   111 
112                 /sys/devices/system/node/node0    112                 /sys/devices/system/node/node0/memory9 -> ../../memory/memory9
113                                                   113 
114 What:           /sys/devices/system/memory/cra    114 What:           /sys/devices/system/memory/crash_hotplug
115 Date:           Aug 2023                          115 Date:           Aug 2023
116 Contact:        Linux kernel mailing list <linu    116 Contact:        Linux kernel mailing list <linux-kernel@vger.kernel.org>
117 Description:                                      117 Description:
118                 (RO) indicates whether or not     118                 (RO) indicates whether or not the kernel updates relevant kexec
119                 segments on memory hot un/plug    119                 segments on memory hot un/plug and/or on/offline events, avoiding the
120                 need to reload kdump kernel.      120                 need to reload kdump kernel.
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php