.. | .. |
---|
26 | 26 | Contact: Badari Pulavarty <pbadari@us.ibm.com> |
---|
27 | 27 | Description: |
---|
28 | 28 | The file /sys/devices/system/memory/memoryX/phys_device |
---|
29 | | - is read-only and is designed to show the name of physical |
---|
30 | | - memory device. Implementation is currently incomplete. |
---|
| 29 | + is read-only; it is a legacy interface only ever used on s390x |
---|
| 30 | + to expose the covered storage increment. |
---|
| 31 | +Users: Legacy s390-tools lsmem/chmem |
---|
31 | 32 | |
---|
32 | 33 | What: /sys/devices/system/memory/memoryX/phys_index |
---|
33 | 34 | Date: September 2008 |
---|
.. | .. |
---|
47 | 48 | online/offline state of the memory section. When written, |
---|
48 | 49 | root can toggle the the online/offline state of a removable |
---|
49 | 50 | memory section (see removable file description above) |
---|
50 | | - using the following commands. |
---|
51 | | - # echo online > /sys/devices/system/memory/memoryX/state |
---|
52 | | - # echo offline > /sys/devices/system/memory/memoryX/state |
---|
| 51 | + using the following commands:: |
---|
| 52 | + |
---|
| 53 | + # echo online > /sys/devices/system/memory/memoryX/state |
---|
| 54 | + # echo offline > /sys/devices/system/memory/memoryX/state |
---|
53 | 55 | |
---|
54 | 56 | For example, if /sys/devices/system/memory/memory22/removable |
---|
55 | 57 | contains a value of 1 and |
---|
56 | 58 | /sys/devices/system/memory/memory22/state contains the |
---|
57 | 59 | string "online" the following command can be executed by |
---|
58 | | - by root to offline that section. |
---|
59 | | - # echo offline > /sys/devices/system/memory/memory22/state |
---|
| 60 | + by root to offline that section:: |
---|
| 61 | + |
---|
| 62 | + # echo offline > /sys/devices/system/memory/memory22/state |
---|
| 63 | + |
---|
60 | 64 | Users: hotplug memory remove tools |
---|
61 | 65 | http://www.ibm.com/developerworks/wikis/display/LinuxP/powerpc-utils |
---|
62 | 66 | |
---|
.. | .. |
---|
78 | 82 | |
---|
79 | 83 | For example, the following symbolic link is created for |
---|
80 | 84 | memory section 9 on node0: |
---|
| 85 | + |
---|
81 | 86 | /sys/devices/system/memory/memory9/node0 -> ../../node/node0 |
---|
82 | 87 | |
---|
83 | 88 | |
---|
.. | .. |
---|
90 | 95 | points to the corresponding /sys/devices/system/memory/memoryY |
---|
91 | 96 | memory section directory. For example, the following symbolic |
---|
92 | 97 | link is created for memory section 9 on node0. |
---|
| 98 | + |
---|
93 | 99 | /sys/devices/system/node/node0/memory9 -> ../../memory/memory9 |
---|