Commit a16a427
committed
CA-424055: NUMA: avoid using up the entire memory on node0
Versions of Xen without per-node claim support won't allow using up
all the memory from node0 (it'll move some of its memory to other nodes).
On versions of Xen with per-node claim support it'll respect the claim,
but it is undesirable to completely run out of memory on node0, since some
devices may require the low 4GiB of RAM for DMA.
Xen would reserve 2^32 on node0, and only use it as last resort.
However we don't know how much of that has been used up already.
For now reserve just 2^31 by default, and make this configurable in
xenopsd.conf.
Signed-off-by: Edwin Török <edwin.torok@citrix.com>1 parent 6acd011 commit a16a427
2 files changed
+35
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
282 | 284 | | |
283 | 285 | | |
284 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
285 | 293 | | |
286 | 294 | | |
287 | 295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1099 | 1099 | | |
1100 | 1100 | | |
1101 | 1101 | | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
1102 | 1116 | | |
1103 | 1117 | | |
1104 | 1118 | | |
| |||
1129 | 1143 | | |
1130 | 1144 | | |
1131 | 1145 | | |
1132 | | - | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
1133 | 1159 | | |
1134 | 1160 | | |
1135 | 1161 | | |
| |||
0 commit comments