diff options
Diffstat (limited to 'Documentation/filesystems/tmpfs.txt')
-rw-r--r-- | Documentation/filesystems/tmpfs.txt | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/Documentation/filesystems/tmpfs.txt b/Documentation/filesystems/tmpfs.txt index dbe4d87d2615..1773106976a2 100644 --- a/Documentation/filesystems/tmpfs.txt +++ b/Documentation/filesystems/tmpfs.txt | |||
@@ -79,15 +79,27 @@ that instance in a system with many cpus making intensive use of it. | |||
79 | 79 | ||
80 | 80 | ||
81 | tmpfs has a mount option to set the NUMA memory allocation policy for | 81 | tmpfs has a mount option to set the NUMA memory allocation policy for |
82 | all files in that instance: | 82 | all files in that instance (if CONFIG_NUMA is enabled) - which can be |
83 | mpol=interleave prefers to allocate memory from each node in turn | 83 | adjusted on the fly via 'mount -o remount ...' |
84 | mpol=default prefers to allocate memory from the local node | ||
85 | mpol=bind prefers to allocate from mpol_nodelist | ||
86 | mpol=preferred prefers to allocate from first node in mpol_nodelist | ||
87 | 84 | ||
88 | The following mount option is used in conjunction with mpol=interleave, | 85 | mpol=default prefers to allocate memory from the local node |
89 | mpol=bind or mpol=preferred: | 86 | mpol=prefer:Node prefers to allocate memory from the given Node |
90 | mpol_nodelist: nodelist suitable for parsing with nodelist_parse. | 87 | mpol=bind:NodeList allocates memory only from nodes in NodeList |
88 | mpol=interleave prefers to allocate from each node in turn | ||
89 | mpol=interleave:NodeList allocates from each node of NodeList in turn | ||
90 | |||
91 | NodeList format is a comma-separated list of decimal numbers and ranges, | ||
92 | a range being two hyphen-separated decimal numbers, the smallest and | ||
93 | largest node numbers in the range. For example, mpol=bind:0-3,5,7,9-15 | ||
94 | |||
95 | Note that trying to mount a tmpfs with an mpol option will fail if the | ||
96 | running kernel does not support NUMA; and will fail if its nodelist | ||
97 | specifies a node >= MAX_NUMNODES. If your system relies on that tmpfs | ||
98 | being mounted, but from time to time runs a kernel built without NUMA | ||
99 | capability (perhaps a safe recovery kernel), or configured to support | ||
100 | fewer nodes, then it is advisable to omit the mpol option from automatic | ||
101 | mount options. It can be added later, when the tmpfs is already mounted | ||
102 | on MountPoint, by 'mount -o remount,mpol=Policy:NodeList MountPoint'. | ||
91 | 103 | ||
92 | 104 | ||
93 | To specify the initial root directory you can use the following mount | 105 | To specify the initial root directory you can use the following mount |
@@ -109,4 +121,4 @@ RAM/SWAP in 10240 inodes and it is only accessible by root. | |||
109 | Author: | 121 | Author: |
110 | Christoph Rohland <cr@sap.com>, 1.12.01 | 122 | Christoph Rohland <cr@sap.com>, 1.12.01 |
111 | Updated: | 123 | Updated: |
112 | Hugh Dickins <hugh@veritas.com>, 13 March 2005 | 124 | Hugh Dickins <hugh@veritas.com>, 19 February 2006 |