| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: balloon.4,v 1.6 2011/04/20 08:20:16 wiz Exp $ | | 1 | .\" $NetBSD: balloon.4,v 1.7 2011/07/30 09:39:20 jym Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2011 The NetBSD Foundation, Inc. | | 3 | .\" Copyright (c) 2011 The NetBSD Foundation, Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software contributed to The NetBSD Foundation | | 6 | .\" This code is derived from software contributed to The NetBSD Foundation |
7 | .\" by Jean-Yves Migeon <jym@NetBSD.org>. | | 7 | .\" by Jean-Yves Migeon <jym@NetBSD.org>. |
8 | .\" | | 8 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | | 9 | .\" Redistribution and use in source and binary forms, with or without |
10 | .\" modification, are permitted provided that the following conditions | | 10 | .\" modification, are permitted provided that the following conditions |
11 | .\" are met: | | 11 | .\" are met: |
12 | .\" 1. Redistributions of source code must retain the above copyright | | 12 | .\" 1. Redistributions of source code must retain the above copyright |
13 | .\" notice, this list of conditions and the following disclaimer. | | 13 | .\" notice, this list of conditions and the following disclaimer. |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| @@ -73,27 +73,27 @@ command of | | | @@ -73,27 +73,27 @@ command of |
73 | .Xr xm 1 . | | 73 | .Xr xm 1 . |
74 | Alternatively, one can control the ballooning directly by writing | | 74 | Alternatively, one can control the ballooning directly by writing |
75 | under the | | 75 | under the |
76 | .Dq memory/target | | 76 | .Dq memory/target |
77 | node inside Xenstore. | | 77 | node inside Xenstore. |
78 | This entry controls the target memory reservation | | 78 | This entry controls the target memory reservation |
79 | of a given domain, indicated in kilobytes (KiB). | | 79 | of a given domain, indicated in kilobytes (KiB). |
80 | .Pp | | 80 | .Pp |
81 | An interface to control | | 81 | An interface to control |
82 | .Nm | | 82 | .Nm |
83 | is also available through | | 83 | is also available through |
84 | .Xr sysctl 8 | | 84 | .Xr sysctl 8 |
85 | under | | 85 | under |
86 | .Dq kern.xen.balloon | | 86 | .Dq machdep.xen.balloon |
87 | (all values being in kilobytes): | | 87 | (all values being in kilobytes): |
88 | .Bl -tag indent -width xxxxxxx | | 88 | .Bl -tag indent -width xxxxxxx |
89 | .It current | | 89 | .It current |
90 | (read-only) The current memory reservation of the domain. | | 90 | (read-only) The current memory reservation of the domain. |
91 | .It min | | 91 | .It min |
92 | (read-write) The minimum reservation value acceptable by the domain's | | 92 | (read-write) The minimum reservation value acceptable by the domain's |
93 | .Nm balloon | | 93 | .Nm balloon |
94 | driver. | | 94 | driver. |
95 | Any request that would require domain to reduce its reservation below | | 95 | Any request that would require domain to reduce its reservation below |
96 | this threshold will be refused by the driver. | | 96 | this threshold will be refused by the driver. |
97 | This can be used by a domain's administrator to control the number of memory | | 97 | This can be used by a domain's administrator to control the number of memory |
98 | pages that will be kept available to domain. | | 98 | pages that will be kept available to domain. |
99 | .It max | | 99 | .It max |
| @@ -122,27 +122,27 @@ memory exhaustion by refusing further al | | | @@ -122,27 +122,27 @@ memory exhaustion by refusing further al |
122 | The hypervisor only gave a partial set of memory pages to domain. | | 122 | The hypervisor only gave a partial set of memory pages to domain. |
123 | This happens when host's memory consumption is high, and hypervisor | | 123 | This happens when host's memory consumption is high, and hypervisor |
124 | is unable to give enough free pages back to domain. | | 124 | is unable to give enough free pages back to domain. |
125 | .It "memory 'hot-plug' unsupported - clipping reservation %zu => %zu pages." | | 125 | .It "memory 'hot-plug' unsupported - clipping reservation %zu => %zu pages." |
126 | An attempt was made by domain to get more memory than initially obtained | | 126 | An attempt was made by domain to get more memory than initially obtained |
127 | during boot. | | 127 | during boot. |
128 | As physical memory pages cannot be added to memory management sub-system | | 128 | As physical memory pages cannot be added to memory management sub-system |
129 | dynamically, | | 129 | dynamically, |
130 | .Nm | | 130 | .Nm |
131 | will limit reservation up to the maximum value it can handle. | | 131 | will limit reservation up to the maximum value it can handle. |
132 | .El | | 132 | .El |
133 | .Sh ERRORS | | 133 | .Sh ERRORS |
134 | When setting the minimum threshold or target reservation entries through | | 134 | When setting the minimum threshold or target reservation entries through |
135 | .Dq kern.xen.balloon , | | 135 | .Dq machdep.xen.balloon , |
136 | the following errors can be returned: | | 136 | the following errors can be returned: |
137 | .Bl -tag -width Er | | 137 | .Bl -tag -width Er |
138 | .It Bq Er EPERM | | 138 | .It Bq Er EPERM |
139 | The value passed is beyond limits. | | 139 | The value passed is beyond limits. |
140 | The new value is either too low | | 140 | The new value is either too low |
141 | .Po Dq min | | 141 | .Po Dq min |
142 | is below driver's safeguard value, or | | 142 | is below driver's safeguard value, or |
143 | .Dq target | | 143 | .Dq target |
144 | is below minimum value | | 144 | is below minimum value |
145 | .Pc , | | 145 | .Pc , |
146 | or too high | | 146 | or too high |
147 | .Po Dq target | | 147 | .Po Dq target |
148 | is above maximum value | | 148 | is above maximum value |