forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork1
Commitfc36b8d
mempolicy: use MPOL_F_LOCAL to Indicate Preferred Local Policy
Now that we're using "preferred local" policy for system default, we need tomake this as fast as possible. Because of the variable size of the mempolicystructure [based on size of nodemasks], the preferred_node may be in adifferent cacheline from the mode. This can result in accessing an extracacheline in the normal case of system default policy. Suspect this is thecause of an observed 2-3% slowdown in page fault testing relative to kernelwithout this patch series.To alleviate this, use an internal mode flag, MPOL_F_LOCAL in the mempolicyflags member which is guaranteed [?] to be in the same cacheline as the modeitself.Verified that reworked mempolicy now performs slightly better on 25-rc8-mm1for both anon and shmem segments with system default and vma [preferred local]policy.Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>Cc: Christoph Lameter <clameter@sgi.com>Cc: David Rientjes <rientjes@google.com>Cc: Mel Gorman <mel@csn.ul.ie>Cc: Andi Kleen <ak@suse.de>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent53f2556 commitfc36b8d
File tree
3 files changed
+28
-31
lines changed- Documentation/vm
- include/linux
- mm
3 files changed
+28
-31
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
176 | 176 |
| |
177 | 177 |
| |
178 | 178 |
| |
179 |
| - | |
180 |
| - | |
181 |
| - | |
182 |
| - | |
183 |
| - | |
184 |
| - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
185 | 184 |
| |
186 | 185 |
| |
187 | 186 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
| 53 | + | |
53 | 54 |
| |
54 | 55 |
| |
55 | 56 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
110 | 110 |
| |
111 | 111 |
| |
112 | 112 |
| |
113 |
| - | |
| 113 | + | |
114 | 114 |
| |
115 | 115 |
| |
116 | 116 |
| |
| |||
163 | 163 |
| |
164 | 164 |
| |
165 | 165 |
| |
166 |
| - | |
| 166 | + | |
167 | 167 |
| |
168 | 168 |
| |
169 | 169 |
| |
| |||
290 | 290 |
| |
291 | 291 |
| |
292 | 292 |
| |
293 |
| - | |
| 293 | + | |
294 | 294 |
| |
295 |
| - | |
296 |
| - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
297 | 298 |
| |
298 | 299 |
| |
299 | 300 |
| |
300 |
| - | |
| 301 | + | |
301 | 302 |
| |
302 | 303 |
| |
303 | 304 |
| |
| |||
645 | 646 |
| |
646 | 647 |
| |
647 | 648 |
| |
648 |
| - | |
| 649 | + | |
649 | 650 |
| |
650 | 651 |
| |
651 | 652 |
| |
| |||
1324 | 1325 |
| |
1325 | 1326 |
| |
1326 | 1327 |
| |
1327 |
| - | |
| 1328 | + | |
1328 | 1329 |
| |
1329 | 1330 |
| |
1330 | 1331 |
| |
1331 |
| - | |
1332 |
| - | |
1333 |
| - | |
| 1332 | + | |
| 1333 | + | |
1334 | 1334 |
| |
1335 | 1335 |
| |
1336 | 1336 |
| |
| |||
1339 | 1339 |
| |
1340 | 1340 |
| |
1341 | 1341 |
| |
1342 |
| - | |
1343 | 1342 |
| |
1344 | 1343 |
| |
1345 | 1344 |
| |
1346 | 1345 |
| |
1347 | 1346 |
| |
1348 |
| - | |
1349 | 1347 |
| |
1350 | 1348 |
| |
1351 |
| - | |
1352 | 1349 |
| |
1353 | 1350 |
| |
1354 | 1351 |
| |
| |||
1379 | 1376 |
| |
1380 | 1377 |
| |
1381 | 1378 |
| |
1382 |
| - | |
| 1379 | + | |
1383 | 1380 |
| |
1384 | 1381 |
| |
1385 | 1382 |
| |
1386 | 1383 |
| |
1387 |
| - | |
1388 |
| - | |
1389 |
| - | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
1390 | 1388 |
| |
1391 | 1389 |
| |
1392 | 1390 |
| |
| |||
1666 | 1664 |
| |
1667 | 1665 |
| |
1668 | 1666 |
| |
1669 |
| - | |
| 1667 | + | |
| 1668 | + | |
1670 | 1669 |
| |
1671 | 1670 |
| |
1672 | 1671 |
| |
| |||
1946 | 1945 |
| |
1947 | 1946 |
| |
1948 | 1947 |
| |
1949 |
| - | |
| 1948 | + | |
1950 | 1949 |
| |
1951 | 1950 |
| |
1952 | 1951 |
| |
| |||
1962 | 1961 |
| |
1963 | 1962 |
| |
1964 | 1963 |
| |
1965 |
| - | |
1966 | 1964 |
| |
1967 | 1965 |
| |
1968 | 1966 |
| |
| |||
1979 | 1977 |
| |
1980 | 1978 |
| |
1981 | 1979 |
| |
1982 |
| - | |
1983 |
| - | |
| 1980 | + | |
1984 | 1981 |
| |
1985 | 1982 |
| |
1986 |
| - | |
| 1983 | + | |
1987 | 1984 |
| |
1988 | 1985 |
| |
1989 | 1986 |
| |
| |||
2004 | 2001 |
| |
2005 | 2002 |
| |
2006 | 2003 |
| |
2007 |
| - | |
| 2004 | + | |
2008 | 2005 |
| |
2009 | 2006 |
| |
2010 | 2007 |
| |
|
0 commit comments
Comments
(0)