Skip to contentSkip to conversation

enable claim by default. (v2).

PATCH In review Konrad Rzeszutek Wilk 4 participants 6 messages Jul 19, 2013 – Aug 7, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 enable claim by default. (v2).

Greetings Ian and George,

During the Xen 4.3 release we briefly chatted about enabling the claim by default. The reasoning is that he functionality here is not just specific to tmem enabled guests. Any generic guest can benefit from this and it allows the user to get up-to-date memory information on how much free memory there really is - and how much is being consumed for the guest creation. By default it is disabled.
This turns it on by default.

 docs/man/xl.conf.pod.5 |    2 +-
 tools/examples/xl.conf |    2 +-
 tools/libxl/xl.c       |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Konrad Rzeszutek Wilk (1):
xl: Enable by default claim mode.

#1 lore raw

PATCH 1/1 xl: Enable by default claim mode.

During the Xen 4.3 release we discussed that this feature could be turned on by default - as it benefits all of the guests - not just tmem related.

[v1: Enable by default in the code, not just in the config file]
---
 docs/man/xl.conf.pod.5 |    2 +-
 tools/examples/xl.conf |    2 +-
 tools/libxl/xl.c       |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
docs/man/xl.conf.pod.5 +1 -1
index 1229c8a..125f786 100644
@@ -139,7 +139,7 @@ Xen hypervisor argument and as well on the Linux kernel command line.
 Note that the claim call is not attempted if C<superpages> option is
 used in the guest config (see xl.cfg(5)).
 
-Default: C<0>
+Default: C<1>
 
 =over 4
 
tools/examples/xl.conf +1 -1
index 9c037a6..d5a2384 100644
@@ -31,5 +31,5 @@
 # Reserve a claim of memory when launching a guest. This guarantees immediate
 # feedback whether the guest can be launched due to memory exhaustion
 # (which can take a long time to find out if launching huge guests).
-# see xl.conf(5) for details.
+# see xl.conf(5) for details. By default it is enabled.
 #claim_mode=0
tools/libxl/xl.c +1 -1
index 1ce820c..0750f60 100644
@@ -46,7 +46,7 @@ char *default_vifscript = NULL;
 char *default_bridge = NULL;
 char *default_gatewaydev = NULL;
 enum output_format default_output_format = OUTPUT_FORMAT_JSON;
-int claim_mode = 0;
+int claim_mode = 1;
 
 static xentoollog_level minmsglevel = XTL_PROGRESS;
 
Signature · 1 line
1.7.7.6
#2 lore raw

Re: [PATCH] xl: Enable by default claim mode.

Quoted 30 lines · Konrad Rzeszutek Wilk

During the Xen 4.3 release we discussed that this feature could be turned on by default - as it benefits all of the guests - not just tmem related.

[v1: Enable by default in the code, not just in the config file]
---
 docs/man/xl.conf.pod.5 |    2 +-
 tools/examples/xl.conf |    2 +-
 tools/libxl/xl.c       |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
docs/man/xl.conf.pod.5 +1 -1
index 1229c8a..125f786 100644
@@ -139,7 +139,7 @@ Xen hypervisor argument and as well on the Linux kernel command line.
 Note that the claim call is not attempted if C<superpages> option is
 used in the guest config (see xl.cfg(5)).
 
-Default: C<0>
+Default: C<1>
 
 =over 4
 
tools/examples/xl.conf +0 -0
index 9c037a6..d5a2384 100644

tools/examples/xl.conf line 35

Quoted 6 lines
tools/examples/xl.conf +1 -1
@@ -31,5 +31,5 @@
 # Reserve a claim of memory when launching a guest. This guarantees immediate
 # feedback whether the guest can be launched due to memory exhaustion
 # (which can take a long time to find out if launching huge guests).
-# see xl.conf(5) for details.
+# see xl.conf(5) for details. By default it is enabled.
 #claim_mode=0

-#claim_mode=0
+#claim_mode=1

Please.

IOW the commented out value should reflect the default. No need for the additional words then either.

Quoted 13 lines
tools/libxl/xl.c +1 -1
index 1ce820c..0750f60 100644
@@ -46,7 +46,7 @@ char *default_vifscript = NULL;
 char *default_bridge = NULL;
 char *default_gatewaydev = NULL;
 enum output_format default_output_format = OUTPUT_FORMAT_JSON;
-int claim_mode = 0;
+int claim_mode = 1;
 
 static xentoollog_level minmsglevel = XTL_PROGRESS;
 
Acked-by
#3 lore raw

Re: [PATCH] xl: Enable by default claim mode.

Quoted 40 lines · Ian Campbell
Quoted 30 lines · Konrad Rzeszutek Wilk

During the Xen 4.3 release we discussed that this feature could be turned on by default - as it benefits all of the guests - not just tmem related.

[v1: Enable by default in the code, not just in the config file]
---
 docs/man/xl.conf.pod.5 |    2 +-
 tools/examples/xl.conf |    2 +-
 tools/libxl/xl.c       |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
docs/man/xl.conf.pod.5 +1 -1
index 1229c8a..125f786 100644
@@ -139,7 +139,7 @@ Xen hypervisor argument and as well on the Linux kernel command line.
 Note that the claim call is not attempted if C<superpages> option is
 used in the guest config (see xl.cfg(5)).
 
-Default: C<0>
+Default: C<1>
 
 =over 4
 
tools/examples/xl.conf +0 -0
index 9c037a6..d5a2384 100644

tools/examples/xl.conf line 35

Quoted 6 lines
tools/examples/xl.conf +1 -1
@@ -31,5 +31,5 @@
 # Reserve a claim of memory when launching a guest. This guarantees immediate
 # feedback whether the guest can be launched due to memory exhaustion
 # (which can take a long time to find out if launching huge guests).
-# see xl.conf(5) for details.
+# see xl.conf(5) for details. By default it is enabled.
 #claim_mode=0

-#claim_mode=0
+#claim_mode=1

Quoted 4 lines

Please.

IOW the commented out value should reflect the default. No need for the additional words then either.

With that change:

#4 lore raw

Re: [PATCH] xl: Enable by default claim mode.

In reply to Konrad Rzeszutek Wilk

Konrad Rzeszutek Wilk writes ("[PATCH] xl: Enable by default claim mode."):

Quoted 5 lines

During the Xen 4.3 release we discussed that this feature could be turned on by default - as it benefits all of the guests - not just tmem related.

Never mind, here it is and I see it's been applied.

Thanks,
Ian.

#5 lore raw
In reply to Konrad Rzeszutek Wilk

Konrad Rzeszutek Wilk writes ("[PATCH] enable claim by default. (v2)."):

Quoted 7 lines

During the Xen 4.3 release we briefly chatted about enabling the claim by default. The reasoning is that he functionality here is not just specific to tmem enabled guests. Any generic guest can benefit from this and it allows the user to get up-to-date memory information on how much free memory there really is - and how much is being consumed for the guest creation. By default it is disabled.
This turns it on by default.

I think this is a good idea. However, your email didn't actually seem to have the patch in it ?

Ian.