All of lore.kernel.org
 help / color / mirror / Atom feed
* [OSSTEST PATCH 0/2] Test case for cpupools
@ 2014-12-18 13:38 Dario Faggioli
  2014-12-18 13:38 ` [OSSTEST PATCH 1/2] ts-cpupools: new test script Dario Faggioli
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Dario Faggioli @ 2014-12-18 13:38 UTC (permalink / raw)
  To: xen-devel
  Cc: Juergen Gross, Ian Jackson, Wei Liu, Ian Campbell, George Dunlap

Just the fact that we are not doing anything to smoke test cpupools, while I
think we should. :-)

This add something quite basic, but it's, IMO, already representative one
typically does with cpupools. We can add more pCPU related tricks (removing,
adding, etc), or we can add more domains and move them around more, of course.
If anyone has any suggestion about operations that should really be part of
Osstest's runs, let me know and I'll include them.

As it is right now, the test is super quick, to the point that I considered
whether it wouldn't have been better to add some similar cpupool operations in
one of the existing jobs. I ended up deciding for having a separate job,
because this is, after all, a rather specific operation, and a different enough
thing from basic VM lifecycle, so I think it deserves its own job.

Thanks and Regards, Dario

---

Dario Faggioli (2):
      ts-cpupools: new test script
      Testing cpupools: recipe for it and job definition


 make-flight |   11 +++++
 sg-run-job  |    6 +++
 ts-cpupools |  124 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 141 insertions(+)
 create mode 100755 ts-cpupools

--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [OSSTEST PATCH 1/2] ts-cpupools: new test script
  2014-12-18 13:38 [OSSTEST PATCH 0/2] Test case for cpupools Dario Faggioli
@ 2014-12-18 13:38 ` Dario Faggioli
  2014-12-18 14:57   ` Juergen Gross
  2014-12-18 13:39 ` [OSSTEST PATCH 2/2] Testing cpupools: recipe for it and job definition Dario Faggioli
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 13+ messages in thread
From: Dario Faggioli @ 2014-12-18 13:38 UTC (permalink / raw)
  To: xen-devel
  Cc: Juergen Gross, Ian Jackson, Wei Liu, Ian Campbell, George Dunlap

for smoke testing cpupools a bit. It tries to partition
a live host in two cpupools, trying out the following 3
schedulers for the new cpupool (one after the other):
 credit, credit2 and RTDS.

It also tries to migrating a domain to the new cpupool
and then back to Pool-0.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
---
 ts-cpupools |  124 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 124 insertions(+)
 create mode 100755 ts-cpupools

diff --git a/ts-cpupools b/ts-cpupools
new file mode 100755
index 0000000..fe612e1
--- /dev/null
+++ b/ts-cpupools
@@ -0,0 +1,124 @@
+#!/usr/bin/perl -w
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2009-2014 Citrix Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+use strict qw(vars);
+use DBI;
+use Osstest;
+use Osstest::TestSupport;
+
+tsreadconfig();
+
+our ($whhost,$gn)= @ARGV;
+$whhost ||= 'host';
+$gn ||= 'debian';
+
+our ($ho,$gho) = ts_get_host_guest($whhost,$gn);
+#our $ho= selecthost(@ARGV);
+
+our $default_cpupool= "Pool-0";
+our @schedulers= ("credit","credit2","rtds");
+our @cpulist;
+our $nr_cpus;
+
+sub check () {
+  my $out;
+
+  # Figure out the number of pCPUs of the host. We need to know
+  # that in order to decide with what pCPUs we want to create
+  # cpupools
+  my $xlinfo= target_cmd_output_root($ho, "xl info");
+  $xlinfo =~ /nr_cpus\s*:\s([0-9]*)/;
+  $nr_cpus= $1;
+  logm("Found $nr_cpus pCPUs");
+  die "Too few pCPUs to test cpupools: $nr_cpus" if $nr_cpus < 2;
+
+  # We want only 1 cpupool to exist
+  my $cppinfo= target_cmd_output_root($ho, "xl cpupool-list");
+  my $nr_cpupools= $cppinfo =~ tr/\n//;
+  logm("Found $nr_cpupools cpupools");
+  die "There already is more than one cpu pool!" if $nr_cpupools > 1;
+  die "Non-default cpupool configuration detected" if $cppinfo =~ /^$default_cpupool\b/;
+
+  $out= target_cmd_output_root($ho, "xl cpupool-list"); logm("$out");
+  $out= target_cmd_output_root($ho, "xl cpupool-list -c"); logm("$out");
+}
+
+# List of the odd pCPUs
+sub prep_cpulist () {
+  if (! defined @cpulist) {
+    foreach my $cpu (0..$nr_cpus) {
+      next unless $cpu % 2;
+      push @cpulist, $cpu;
+    }
+  }
+}
+
+sub prep ($) {
+  my ($sched)= @_;
+
+  # Remove the pCPUs from in $cpulist from the default cpupool
+  my $cpustr= "[";
+  foreach my $cpu (@cpulist) {
+    target_cmd_root($ho,"xl cpupool-cpu-remove $default_cpupool $cpu");
+    $cpustr.= "\"$cpu\", ";
+  }
+  $cpustr.= "]";
+
+  logm("Creating config file for cpupool-osstest-$sched with cpus=$cpustr");
+  target_putfilecontents_stash($ho,100,<<"END","/etc/xen/cpupool-osstest-$sched");
+name = "cpupool-osstest-$sched"
+sched=\"$sched\"
+cpus=$cpustr
+END
+}
+
+check();
+prep_cpulist();
+foreach my $sched (@schedulers) {
+  my $out;
+
+  prep("$sched");
+
+  # For each cpupool:
+  #  * create it
+  #  * rename it
+  #  * move a domain in it
+  #  * move back a domain out of it
+  #  * add back the pcpus from it to the default pool
+  #  * destroy it
+  target_cmd_root($ho, "xl cpupool-create /etc/xen/cpupool-osstest-$sched");
+  target_cmd_output_root($ho, "xl cpupool-rename cpupool-osstest-$sched cpupool-test");
+  $out= target_cmd_output_root($ho, "xl cpupool-list -c"); logm("$out");
+  $out= target_cmd_output_root($ho, "xl cpupool-list"); logm("$out");
+
+  target_cmd_root($ho, "xl cpupool-migrate $gho->{Name} cpupool-test");
+  $out= target_cmd_output_root($ho, "xl cpupool-list"); logm("$out");
+  $out= target_cmd_output_root($ho, "xl vcpu-list"); logm("$out");
+
+  target_cmd_root($ho, "xl cpupool-migrate $gho->{Name} Pool-0");
+  $out= target_cmd_output_root($ho, "xl cpupool-list"); logm("$out");
+
+  foreach my $cpu (@cpulist) {
+    target_cmd_root($ho,"xl cpupool-cpu-remove cpupool-test $cpu");
+    target_cmd_root($ho,"xl cpupool-cpu-add $default_cpupool $cpu");
+  }
+  $out= target_cmd_output_root($ho, "xl cpupool-list -c"); logm("$out");
+
+  target_cmd_root($ho, "xl cpupool-destroy cpupool-test");
+  $out= target_cmd_output_root($ho, "xl cpupool-list"); logm("$out");
+}
+

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [OSSTEST PATCH 2/2] Testing cpupools: recipe for it and job definition
  2014-12-18 13:38 [OSSTEST PATCH 0/2] Test case for cpupools Dario Faggioli
  2014-12-18 13:38 ` [OSSTEST PATCH 1/2] ts-cpupools: new test script Dario Faggioli
@ 2014-12-18 13:39 ` Dario Faggioli
  2014-12-18 15:00   ` Juergen Gross
  2014-12-18 13:44 ` [OSSTEST PATCH 0/2] Test case for cpupools Dario Faggioli
  2014-12-18 14:56 ` Juergen Gross
  3 siblings, 1 reply; 13+ messages in thread
From: Dario Faggioli @ 2014-12-18 13:39 UTC (permalink / raw)
  To: xen-devel
  Cc: Juergen Gross, Ian Jackson, Wei Liu, Ian Campbell, George Dunlap

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
---
 make-flight |   11 +++++++++++
 sg-run-job  |    6 ++++++
 2 files changed, 17 insertions(+)

diff --git a/make-flight b/make-flight
index a91f256..ce02c89 100755
--- a/make-flight
+++ b/make-flight
@@ -266,6 +266,16 @@ do_credit2_tests () {
             $debian_runvars all_hostflags=$most_hostflags
 }
 
+do_cpupools_tests () {
+  if [ $xenarch != amd64 -o $dom0arch != amd64 ]; then
+    return
+  fi
+
+  job_create_test test-$xenarch$kern-$dom0arch-xl-cpupools            \
+       test-cpupools xl $xenarch $dom0arch                            \
+            $debian_runvars all_hostflags=$most_hostflags
+}
+
 do_passthrough_tests () {
   if [ $xenarch != amd64 -o $dom0arch != amd64 -o "$kern" != "" ]; then
     return
@@ -366,6 +376,7 @@ test_matrix_do_one () {
 
   do_sedf_tests
   do_credit2_tests
+  do_cpupools_tests
 
   if [ $xenarch = amd64 -a $dom0arch = i386 ]; then
 
diff --git a/sg-run-job b/sg-run-job
index 2cf810a..0250087 100755
--- a/sg-run-job
+++ b/sg-run-job
@@ -272,6 +272,12 @@ proc run-job/test-debianhvm {} {
     test-guest debianhvm
 }
 
+proc need-hosts/test-cpupools {} { return host }
+proc run-job/test-cpupools {} {
+    install-guest-debian
+    run-ts . = ts-cpupools
+}
+
 proc need-hosts/test-pair {} { return {src_host dst_host} }
 proc run-job/test-pair {} {
     run-ts . =              ts-debian-install      dst_host

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [OSSTEST PATCH 0/2] Test case for cpupools
  2014-12-18 13:38 [OSSTEST PATCH 0/2] Test case for cpupools Dario Faggioli
  2014-12-18 13:38 ` [OSSTEST PATCH 1/2] ts-cpupools: new test script Dario Faggioli
  2014-12-18 13:39 ` [OSSTEST PATCH 2/2] Testing cpupools: recipe for it and job definition Dario Faggioli
@ 2014-12-18 13:44 ` Dario Faggioli
  2014-12-18 14:56 ` Juergen Gross
  3 siblings, 0 replies; 13+ messages in thread
From: Dario Faggioli @ 2014-12-18 13:44 UTC (permalink / raw)
  To: xen-devel
  Cc: Juergen Gross, Ian Jackson, Wei Liu, Ian Campbell, George Dunlap


[-- Attachment #1.1: Type: text/plain, Size: 5033 bytes --]

On Thu, 2014-12-18 at 14:38 +0100, Dario Faggioli wrote:
> Just the fact that we are not doing anything to smoke test cpupools, while I
> think we should. :-)
> 
> This add something quite basic, but it's, IMO, already representative one
> typically does with cpupools. We can add more pCPU related tricks (removing,
> adding, etc), or we can add more domains and move them around more, of course.
> If anyone has any suggestion about operations that should really be part of
> Osstest's runs, let me know and I'll include them.
> 
> As it is right now, the test is super quick, to the point that I considered
> whether it wouldn't have been better to add some similar cpupool operations in
> one of the existing jobs. I ended up deciding for having a separate job,
> because this is, after all, a rather specific operation, and a different enough
> thing from basic VM lifecycle, so I think it deserves its own job.
> 
And I forgot to say that I of course tested it, in standalone mode, like
this:

 $ ./standalone run-job -h ultralisk test-amd64-amd64-xl-cpupools

Here's also the runvars for the new job (really nothing special):

 test-amd64-amd64-xl-cpupools              all_hostflags               arch-amd64,arch-xen-amd64,suite-wheezy,purpose-test                             
 test-amd64-amd64-xl-cpupools              arch                        amd64                                                                           
 test-amd64-amd64-xl-cpupools              buildjob                    build-amd64                                                                     
 test-amd64-amd64-xl-cpupools              console                     hvc0                                                                            
 test-amd64-amd64-xl-cpupools              debian_arch                 amd64                                                                           
 test-amd64-amd64-xl-cpupools              debian_boot_timeout         40                                                                              
 test-amd64-amd64-xl-cpupools              debian_cfgpath              /etc/xen/debian.guest.osstest.cfg                                               
 test-amd64-amd64-xl-cpupools              debian_console              hvc0                                                                            
 test-amd64-amd64-xl-cpupools              debian_disk_lv              debian.guest.osstest-disk                                                       
 test-amd64-amd64-xl-cpupools              debian_domname              debian.guest.osstest                                                            
 test-amd64-amd64-xl-cpupools              debian_ether                5e:36:06:68:00:01                                                               
 test-amd64-amd64-xl-cpupools              debian_hostname             debian.guest.osstest                                                            
 test-amd64-amd64-xl-cpupools              debian_kernkind             pvops                                                                           
 test-amd64-amd64-xl-cpupools              debian_rootdev              xvda                                                                            
 test-amd64-amd64-xl-cpupools              debian_swap_lv              debian.guest.osstest-swap                                                       
 test-amd64-amd64-xl-cpupools              debian_tcpcheckport         22                                                                              
 test-amd64-amd64-xl-cpupools              debian_vg                   ultralisk                                                                       
 test-amd64-amd64-xl-cpupools              host                        ultralisk                                                                       
 test-amd64-amd64-xl-cpupools              kernbuildjob                build-amd64-pvops                                                               
 test-amd64-amd64-xl-cpupools              kernkind                    pvops                                                                           
 test-amd64-amd64-xl-cpupools              toolstack                   xl                                                                              
 test-amd64-amd64-xl-cpupools              xen_kernel_path             /boot/vmlinuz-3.18.0-rc4                                                        
 test-amd64-amd64-xl-cpupools              xen_kernel_ver              3.18.0-rc4                                                                      
 test-amd64-amd64-xl-cpupools              xenbuildjob                 build-amd64

Dario

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [OSSTEST PATCH 0/2] Test case for cpupools
  2014-12-18 13:38 [OSSTEST PATCH 0/2] Test case for cpupools Dario Faggioli
                   ` (2 preceding siblings ...)
  2014-12-18 13:44 ` [OSSTEST PATCH 0/2] Test case for cpupools Dario Faggioli
@ 2014-12-18 14:56 ` Juergen Gross
  3 siblings, 0 replies; 13+ messages in thread
From: Juergen Gross @ 2014-12-18 14:56 UTC (permalink / raw)
  To: Dario Faggioli, xen-devel
  Cc: George Dunlap, Wei Liu, Ian Jackson, Ian Campbell

On 12/18/2014 02:38 PM, Dario Faggioli wrote:
> Just the fact that we are not doing anything to smoke test cpupools, while I
> think we should. :-)
>
> This add something quite basic, but it's, IMO, already representative one
> typically does with cpupools. We can add more pCPU related tricks (removing,
> adding, etc), or we can add more domains and move them around more, of course.
> If anyone has any suggestion about operations that should really be part of
> Osstest's runs, let me know and I'll include them.
>
> As it is right now, the test is super quick, to the point that I considered
> whether it wouldn't have been better to add some similar cpupool operations in
> one of the existing jobs. I ended up deciding for having a separate job,
> because this is, after all, a rather specific operation, and a different enough
> thing from basic VM lifecycle, so I think it deserves its own job.
>
> Thanks and Regards, Dario

Thanks for doing this!


Juergen

>
> ---
>
> Dario Faggioli (2):
>        ts-cpupools: new test script
>        Testing cpupools: recipe for it and job definition
>
>
>   make-flight |   11 +++++
>   sg-run-job  |    6 +++
>   ts-cpupools |  124 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>   3 files changed, 141 insertions(+)
>   create mode 100755 ts-cpupools
>
> --
> <<This happens because I choose it to happen!>> (Raistlin Majere)
> -----------------------------------------------------------------
> Dario Faggioli, Ph.D, http://about.me/dario.faggioli
> Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [OSSTEST PATCH 1/2] ts-cpupools: new test script
  2014-12-18 13:38 ` [OSSTEST PATCH 1/2] ts-cpupools: new test script Dario Faggioli
@ 2014-12-18 14:57   ` Juergen Gross
  0 siblings, 0 replies; 13+ messages in thread
From: Juergen Gross @ 2014-12-18 14:57 UTC (permalink / raw)
  To: Dario Faggioli, xen-devel
  Cc: George Dunlap, Wei Liu, Ian Jackson, Ian Campbell

On 12/18/2014 02:38 PM, Dario Faggioli wrote:
> for smoke testing cpupools a bit. It tries to partition
> a live host in two cpupools, trying out the following 3
> schedulers for the new cpupool (one after the other):
>   credit, credit2 and RTDS.
>
> It also tries to migrating a domain to the new cpupool
> and then back to Pool-0.
>
> Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>

Acked-by: Juergen Gross <jgross@suse.com>

> ---
>   ts-cpupools |  124 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>   1 file changed, 124 insertions(+)
>   create mode 100755 ts-cpupools
>
> diff --git a/ts-cpupools b/ts-cpupools
> new file mode 100755
> index 0000000..fe612e1
> --- /dev/null
> +++ b/ts-cpupools
> @@ -0,0 +1,124 @@
> +#!/usr/bin/perl -w
> +# This is part of "osstest", an automated testing framework for Xen.
> +# Copyright (C) 2009-2014 Citrix Inc.
> +#
> +# This program is free software: you can redistribute it and/or modify
> +# it under the terms of the GNU Affero General Public License as published by
> +# the Free Software Foundation, either version 3 of the License, or
> +# (at your option) any later version.
> +#
> +# This program is distributed in the hope that it will be useful,
> +# but WITHOUT ANY WARRANTY; without even the implied warranty of
> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> +# GNU Affero General Public License for more details.
> +#
> +# You should have received a copy of the GNU Affero General Public License
> +# along with this program.  If not, see <http://www.gnu.org/licenses/>.
> +
> +use strict qw(vars);
> +use DBI;
> +use Osstest;
> +use Osstest::TestSupport;
> +
> +tsreadconfig();
> +
> +our ($whhost,$gn)= @ARGV;
> +$whhost ||= 'host';
> +$gn ||= 'debian';
> +
> +our ($ho,$gho) = ts_get_host_guest($whhost,$gn);
> +#our $ho= selecthost(@ARGV);
> +
> +our $default_cpupool= "Pool-0";
> +our @schedulers= ("credit","credit2","rtds");
> +our @cpulist;
> +our $nr_cpus;
> +
> +sub check () {
> +  my $out;
> +
> +  # Figure out the number of pCPUs of the host. We need to know
> +  # that in order to decide with what pCPUs we want to create
> +  # cpupools
> +  my $xlinfo= target_cmd_output_root($ho, "xl info");
> +  $xlinfo =~ /nr_cpus\s*:\s([0-9]*)/;
> +  $nr_cpus= $1;
> +  logm("Found $nr_cpus pCPUs");
> +  die "Too few pCPUs to test cpupools: $nr_cpus" if $nr_cpus < 2;
> +
> +  # We want only 1 cpupool to exist
> +  my $cppinfo= target_cmd_output_root($ho, "xl cpupool-list");
> +  my $nr_cpupools= $cppinfo =~ tr/\n//;
> +  logm("Found $nr_cpupools cpupools");
> +  die "There already is more than one cpu pool!" if $nr_cpupools > 1;
> +  die "Non-default cpupool configuration detected" if $cppinfo =~ /^$default_cpupool\b/;
> +
> +  $out= target_cmd_output_root($ho, "xl cpupool-list"); logm("$out");
> +  $out= target_cmd_output_root($ho, "xl cpupool-list -c"); logm("$out");
> +}
> +
> +# List of the odd pCPUs
> +sub prep_cpulist () {
> +  if (! defined @cpulist) {
> +    foreach my $cpu (0..$nr_cpus) {
> +      next unless $cpu % 2;
> +      push @cpulist, $cpu;
> +    }
> +  }
> +}
> +
> +sub prep ($) {
> +  my ($sched)= @_;
> +
> +  # Remove the pCPUs from in $cpulist from the default cpupool
> +  my $cpustr= "[";
> +  foreach my $cpu (@cpulist) {
> +    target_cmd_root($ho,"xl cpupool-cpu-remove $default_cpupool $cpu");
> +    $cpustr.= "\"$cpu\", ";
> +  }
> +  $cpustr.= "]";
> +
> +  logm("Creating config file for cpupool-osstest-$sched with cpus=$cpustr");
> +  target_putfilecontents_stash($ho,100,<<"END","/etc/xen/cpupool-osstest-$sched");
> +name = "cpupool-osstest-$sched"
> +sched=\"$sched\"
> +cpus=$cpustr
> +END
> +}
> +
> +check();
> +prep_cpulist();
> +foreach my $sched (@schedulers) {
> +  my $out;
> +
> +  prep("$sched");
> +
> +  # For each cpupool:
> +  #  * create it
> +  #  * rename it
> +  #  * move a domain in it
> +  #  * move back a domain out of it
> +  #  * add back the pcpus from it to the default pool
> +  #  * destroy it
> +  target_cmd_root($ho, "xl cpupool-create /etc/xen/cpupool-osstest-$sched");
> +  target_cmd_output_root($ho, "xl cpupool-rename cpupool-osstest-$sched cpupool-test");
> +  $out= target_cmd_output_root($ho, "xl cpupool-list -c"); logm("$out");
> +  $out= target_cmd_output_root($ho, "xl cpupool-list"); logm("$out");
> +
> +  target_cmd_root($ho, "xl cpupool-migrate $gho->{Name} cpupool-test");
> +  $out= target_cmd_output_root($ho, "xl cpupool-list"); logm("$out");
> +  $out= target_cmd_output_root($ho, "xl vcpu-list"); logm("$out");
> +
> +  target_cmd_root($ho, "xl cpupool-migrate $gho->{Name} Pool-0");
> +  $out= target_cmd_output_root($ho, "xl cpupool-list"); logm("$out");
> +
> +  foreach my $cpu (@cpulist) {
> +    target_cmd_root($ho,"xl cpupool-cpu-remove cpupool-test $cpu");
> +    target_cmd_root($ho,"xl cpupool-cpu-add $default_cpupool $cpu");
> +  }
> +  $out= target_cmd_output_root($ho, "xl cpupool-list -c"); logm("$out");
> +
> +  target_cmd_root($ho, "xl cpupool-destroy cpupool-test");
> +  $out= target_cmd_output_root($ho, "xl cpupool-list"); logm("$out");
> +}
> +
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [OSSTEST PATCH 2/2] Testing cpupools: recipe for it and job definition
  2014-12-18 13:39 ` [OSSTEST PATCH 2/2] Testing cpupools: recipe for it and job definition Dario Faggioli
@ 2014-12-18 15:00   ` Juergen Gross
  2014-12-18 15:04     ` Wei Liu
  0 siblings, 1 reply; 13+ messages in thread
From: Juergen Gross @ 2014-12-18 15:00 UTC (permalink / raw)
  To: Dario Faggioli, xen-devel
  Cc: George Dunlap, Wei Liu, Ian Jackson, Ian Campbell

On 12/18/2014 02:39 PM, Dario Faggioli wrote:
> Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
> ---
>   make-flight |   11 +++++++++++
>   sg-run-job  |    6 ++++++
>   2 files changed, 17 insertions(+)
>
> diff --git a/make-flight b/make-flight
> index a91f256..ce02c89 100755
> --- a/make-flight
> +++ b/make-flight
> @@ -266,6 +266,16 @@ do_credit2_tests () {
>               $debian_runvars all_hostflags=$most_hostflags
>   }
>
> +do_cpupools_tests () {
> +  if [ $xenarch != amd64 -o $dom0arch != amd64 ]; then
> +    return
> +  fi

Why can't you test cpupools on x86_64?


Juergen

> +
> +  job_create_test test-$xenarch$kern-$dom0arch-xl-cpupools            \
> +       test-cpupools xl $xenarch $dom0arch                            \
> +            $debian_runvars all_hostflags=$most_hostflags
> +}
> +
>   do_passthrough_tests () {
>     if [ $xenarch != amd64 -o $dom0arch != amd64 -o "$kern" != "" ]; then
>       return
> @@ -366,6 +376,7 @@ test_matrix_do_one () {
>
>     do_sedf_tests
>     do_credit2_tests
> +  do_cpupools_tests
>
>     if [ $xenarch = amd64 -a $dom0arch = i386 ]; then
>
> diff --git a/sg-run-job b/sg-run-job
> index 2cf810a..0250087 100755
> --- a/sg-run-job
> +++ b/sg-run-job
> @@ -272,6 +272,12 @@ proc run-job/test-debianhvm {} {
>       test-guest debianhvm
>   }
>
> +proc need-hosts/test-cpupools {} { return host }
> +proc run-job/test-cpupools {} {
> +    install-guest-debian
> +    run-ts . = ts-cpupools
> +}
> +
>   proc need-hosts/test-pair {} { return {src_host dst_host} }
>   proc run-job/test-pair {} {
>       run-ts . =              ts-debian-install      dst_host
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [OSSTEST PATCH 2/2] Testing cpupools: recipe for it and job definition
  2014-12-18 15:00   ` Juergen Gross
@ 2014-12-18 15:04     ` Wei Liu
  2014-12-18 15:10       ` Juergen Gross
  0 siblings, 1 reply; 13+ messages in thread
From: Wei Liu @ 2014-12-18 15:04 UTC (permalink / raw)
  To: Juergen Gross
  Cc: Wei Liu, Ian Campbell, George Dunlap, Dario Faggioli,
	Ian Jackson, xen-devel

On Thu, Dec 18, 2014 at 04:00:12PM +0100, Juergen Gross wrote:
> On 12/18/2014 02:39 PM, Dario Faggioli wrote:
> >Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
> >---
> >  make-flight |   11 +++++++++++
> >  sg-run-job  |    6 ++++++
> >  2 files changed, 17 insertions(+)
> >
> >diff --git a/make-flight b/make-flight
> >index a91f256..ce02c89 100755
> >--- a/make-flight
> >+++ b/make-flight
> >@@ -266,6 +266,16 @@ do_credit2_tests () {
> >              $debian_runvars all_hostflags=$most_hostflags
> >  }
> >
> >+do_cpupools_tests () {
> >+  if [ $xenarch != amd64 -o $dom0arch != amd64 ]; then
> >+    return
> >+  fi
> 
> Why can't you test cpupools on x86_64?
> 

Don't worry. That's the name used for 64 bit (be it amd or intel) in
OSSTest. :-)

Wei.

> 
> Juergen
> 
> >+
> >+  job_create_test test-$xenarch$kern-$dom0arch-xl-cpupools            \
> >+       test-cpupools xl $xenarch $dom0arch                            \
> >+            $debian_runvars all_hostflags=$most_hostflags
> >+}
> >+
> >  do_passthrough_tests () {
> >    if [ $xenarch != amd64 -o $dom0arch != amd64 -o "$kern" != "" ]; then
> >      return
> >@@ -366,6 +376,7 @@ test_matrix_do_one () {
> >
> >    do_sedf_tests
> >    do_credit2_tests
> >+  do_cpupools_tests
> >
> >    if [ $xenarch = amd64 -a $dom0arch = i386 ]; then
> >
> >diff --git a/sg-run-job b/sg-run-job
> >index 2cf810a..0250087 100755
> >--- a/sg-run-job
> >+++ b/sg-run-job
> >@@ -272,6 +272,12 @@ proc run-job/test-debianhvm {} {
> >      test-guest debianhvm
> >  }
> >
> >+proc need-hosts/test-cpupools {} { return host }
> >+proc run-job/test-cpupools {} {
> >+    install-guest-debian
> >+    run-ts . = ts-cpupools
> >+}
> >+
> >  proc need-hosts/test-pair {} { return {src_host dst_host} }
> >  proc run-job/test-pair {} {
> >      run-ts . =              ts-debian-install      dst_host
> >
> >
> >_______________________________________________
> >Xen-devel mailing list
> >Xen-devel@lists.xen.org
> >http://lists.xen.org/xen-devel
> >

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [OSSTEST PATCH 2/2] Testing cpupools: recipe for it and job definition
  2014-12-18 15:04     ` Wei Liu
@ 2014-12-18 15:10       ` Juergen Gross
  2014-12-18 17:29         ` Dario Faggioli
  0 siblings, 1 reply; 13+ messages in thread
From: Juergen Gross @ 2014-12-18 15:10 UTC (permalink / raw)
  To: Wei Liu
  Cc: George Dunlap, Dario Faggioli, Ian Jackson, Ian Campbell, xen-devel

On 12/18/2014 04:04 PM, Wei Liu wrote:
> On Thu, Dec 18, 2014 at 04:00:12PM +0100, Juergen Gross wrote:
>> On 12/18/2014 02:39 PM, Dario Faggioli wrote:
>>> Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
>>> ---
>>>   make-flight |   11 +++++++++++
>>>   sg-run-job  |    6 ++++++
>>>   2 files changed, 17 insertions(+)
>>>
>>> diff --git a/make-flight b/make-flight
>>> index a91f256..ce02c89 100755
>>> --- a/make-flight
>>> +++ b/make-flight
>>> @@ -266,6 +266,16 @@ do_credit2_tests () {
>>>               $debian_runvars all_hostflags=$most_hostflags
>>>   }
>>>
>>> +do_cpupools_tests () {
>>> +  if [ $xenarch != amd64 -o $dom0arch != amd64 ]; then
>>> +    return
>>> +  fi
>>
>> Why can't you test cpupools on x86_64?
>>
>
> Don't worry. That's the name used for 64 bit (be it amd or intel) in
> OSSTest. :-)

Aargh. Some automatic filter in my brain translated this to arm64 :-)

So: Why can't you test cpupools on ARM?


Juergen

>
> Wei.
>
>>
>> Juergen
>>
>>> +
>>> +  job_create_test test-$xenarch$kern-$dom0arch-xl-cpupools            \
>>> +       test-cpupools xl $xenarch $dom0arch                            \
>>> +            $debian_runvars all_hostflags=$most_hostflags
>>> +}
>>> +
>>>   do_passthrough_tests () {
>>>     if [ $xenarch != amd64 -o $dom0arch != amd64 -o "$kern" != "" ]; then
>>>       return
>>> @@ -366,6 +376,7 @@ test_matrix_do_one () {
>>>
>>>     do_sedf_tests
>>>     do_credit2_tests
>>> +  do_cpupools_tests
>>>
>>>     if [ $xenarch = amd64 -a $dom0arch = i386 ]; then
>>>
>>> diff --git a/sg-run-job b/sg-run-job
>>> index 2cf810a..0250087 100755
>>> --- a/sg-run-job
>>> +++ b/sg-run-job
>>> @@ -272,6 +272,12 @@ proc run-job/test-debianhvm {} {
>>>       test-guest debianhvm
>>>   }
>>>
>>> +proc need-hosts/test-cpupools {} { return host }
>>> +proc run-job/test-cpupools {} {
>>> +    install-guest-debian
>>> +    run-ts . = ts-cpupools
>>> +}
>>> +
>>>   proc need-hosts/test-pair {} { return {src_host dst_host} }
>>>   proc run-job/test-pair {} {
>>>       run-ts . =              ts-debian-install      dst_host
>>>
>>>
>>> _______________________________________________
>>> Xen-devel mailing list
>>> Xen-devel@lists.xen.org
>>> http://lists.xen.org/xen-devel
>>>
>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [OSSTEST PATCH 2/2] Testing cpupools: recipe for it and job definition
  2014-12-18 15:10       ` Juergen Gross
@ 2014-12-18 17:29         ` Dario Faggioli
  2014-12-19  9:48           ` Ian Campbell
  0 siblings, 1 reply; 13+ messages in thread
From: Dario Faggioli @ 2014-12-18 17:29 UTC (permalink / raw)
  To: Juergen Gross
  Cc: George Dunlap, Ian Jackson, Wei Liu, Ian Campbell, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 2260 bytes --]

On Thu, 2014-12-18 at 16:10 +0100, Juergen Gross wrote:
> On 12/18/2014 04:04 PM, Wei Liu wrote:
> > On Thu, Dec 18, 2014 at 04:00:12PM +0100, Juergen Gross wrote:
> >> On 12/18/2014 02:39 PM, Dario Faggioli wrote:
> >>> Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
> >>> ---
> >>>   make-flight |   11 +++++++++++
> >>>   sg-run-job  |    6 ++++++
> >>>   2 files changed, 17 insertions(+)
> >>>
> >>> diff --git a/make-flight b/make-flight
> >>> index a91f256..ce02c89 100755
> >>> --- a/make-flight
> >>> +++ b/make-flight
> >>> @@ -266,6 +266,16 @@ do_credit2_tests () {
> >>>               $debian_runvars all_hostflags=$most_hostflags
> >>>   }
> >>>
> >>> +do_cpupools_tests () {
> >>> +  if [ $xenarch != amd64 -o $dom0arch != amd64 ]; then
> >>> +    return
> >>> +  fi
> >>
> >> Why can't you test cpupools on x86_64?
> >>
> >
> > Don't worry. That's the name used for 64 bit (be it amd or intel) in
> > OSSTest. :-)
> 
Exactly, it comes from the Debian arches names.

> Aargh. Some automatic filter in my brain translated this to arm64 :-)
> 
HeHe :-)

> So: Why can't you test cpupools on ARM?
> 
We certainly can. ARM testing via OSSTest is a still experimental,
AFAIUI.

I don't even know if we have the hardware, yet, as I think the "rack" of
ARM dev board IanC was working on will be setup in the new testing COLO,
rather than in current OSSTest pool of hardware (someone correct me if
I'm wrong).

However, that seems to be taken into account by the fact that, in
make-flight, in test_matrix_do_one(), after only 2 jobs are created (the
basic debian one and a libvirt one) we have this:

  # No further arm tests at the moment
  if [ $dom0arch = armhf ]; then
      return
  fi

So, yes, I guess I can get rid of such filters in my new function, so
that, when ARM maintainers  will disable the safety catch above, a job
will actually be generated.

I'll give it a shot for v2.

Thanks and Regards,
Dario

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [OSSTEST PATCH 2/2] Testing cpupools: recipe for it and job definition
  2014-12-18 17:29         ` Dario Faggioli
@ 2014-12-19  9:48           ` Ian Campbell
  2014-12-19 10:50             ` Dario Faggioli
  0 siblings, 1 reply; 13+ messages in thread
From: Ian Campbell @ 2014-12-19  9:48 UTC (permalink / raw)
  To: Dario Faggioli
  Cc: Juergen Gross, George Dunlap, Wei Liu, Ian Jackson, xen-devel

On Thu, 2014-12-18 at 18:29 +0100, Dario Faggioli wrote:
> On Thu, 2014-12-18 at 16:10 +0100, Juergen Gross wrote:

> > So: Why can't you test cpupools on ARM?
> > 
> We certainly can. ARM testing via OSSTest is a still experimental,
> AFAIUI.

arm32 testing is production in osstest.

> I don't even know if we have the hardware, yet, as I think the "rack" of
> ARM dev board IanC was working on will be setup in the new testing COLO,
> rather than in current OSSTest pool of hardware (someone correct me if
> I'm wrong).

The new rack is to replace the existing h/w used in production, since
that can't be shipped to the colo for various reasons.

> However, that seems to be taken into account by the fact that, in
> make-flight, in test_matrix_do_one(), after only 2 jobs are created (the
> basic debian one and a libvirt one) we have this:
> 
>   # No further arm tests at the moment
>   if [ $dom0arch = armhf ]; then
>       return
>   fi
> 
> So, yes, I guess I can get rid of such filters in my new function, so
> that, when ARM maintainers  will disable the safety catch above, a job
> will actually be generated.

We should probably move some of the tests from below the cut to above
already, e.g. do_sedf_tests and do_credit2_tests aren't arch specific,
so should be run on arm.

That's not your problem, but if you could add the new test above the cut
that would be great. I'll sort out the other ones at some point.

Ian.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [OSSTEST PATCH 2/2] Testing cpupools: recipe for it and job definition
  2014-12-19  9:48           ` Ian Campbell
@ 2014-12-19 10:50             ` Dario Faggioli
  2014-12-19 11:02               ` Ian Campbell
  0 siblings, 1 reply; 13+ messages in thread
From: Dario Faggioli @ 2014-12-19 10:50 UTC (permalink / raw)
  To: Ian Campbell
  Cc: Juergen Gross, George Dunlap, Wei Liu, Ian Jackson, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 2167 bytes --]

On Fri, 2014-12-19 at 09:48 +0000, Ian Campbell wrote:
> On Thu, 2014-12-18 at 18:29 +0100, Dario Faggioli wrote:
> > On Thu, 2014-12-18 at 16:10 +0100, Juergen Gross wrote:
> 
> > > So: Why can't you test cpupools on ARM?
> > > 
> > We certainly can. ARM testing via OSSTest is a still experimental,
> > AFAIUI.
> 
> arm32 testing is production in osstest.
> 
> > I don't even know if we have the hardware, yet, as I think the "rack" of
> > ARM dev board IanC was working on will be setup in the new testing COLO,
> > rather than in current OSSTest pool of hardware (someone correct me if
> > I'm wrong).
> 
> The new rack is to replace the existing h/w used in production, since
> that can't be shipped to the colo for various reasons.
> 
Ok.

> > However, that seems to be taken into account by the fact that, in
> > make-flight, in test_matrix_do_one(), after only 2 jobs are created (the
> > basic debian one and a libvirt one) we have this:
> > 
> >   # No further arm tests at the moment
> >   if [ $dom0arch = armhf ]; then
> >       return
> >   fi
> > 
> > So, yes, I guess I can get rid of such filters in my new function, so
> > that, when ARM maintainers  will disable the safety catch above, a job
> > will actually be generated.
> 
> We should probably move some of the tests from below the cut to above
> already, e.g. do_sedf_tests and do_credit2_tests aren't arch specific,
> so should be run on arm.
> 
I see. Great. :-)

Scheduler testing being below the cutoff was exactly what made me
thinking that we only wanted basic ARM testing for now, given the
limited HW resources, and to keep the "noise" low.

I'll certainly move this one below it.

> That's not your problem, but if you could add the new test above the cut
> that would be great. I'll sort out the other ones at some point.
> 
Sure I will.

Thanks and Regards,
Dario

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [OSSTEST PATCH 2/2] Testing cpupools: recipe for it and job definition
  2014-12-19 10:50             ` Dario Faggioli
@ 2014-12-19 11:02               ` Ian Campbell
  0 siblings, 0 replies; 13+ messages in thread
From: Ian Campbell @ 2014-12-19 11:02 UTC (permalink / raw)
  To: Dario Faggioli
  Cc: Juergen Gross, George Dunlap, Wei Liu, Ian Jackson, xen-devel

On Fri, 2014-12-19 at 11:50 +0100, Dario Faggioli wrote:
> > > However, that seems to be taken into account by the fact that, in
> > > make-flight, in test_matrix_do_one(), after only 2 jobs are created (the
> > > basic debian one and a libvirt one) we have this:
> > > 
> > >   # No further arm tests at the moment
> > >   if [ $dom0arch = armhf ]; then
> > >       return
> > >   fi
> > > 
> > > So, yes, I guess I can get rid of such filters in my new function, so
> > > that, when ARM maintainers  will disable the safety catch above, a job
> > > will actually be generated.
> > 
> > We should probably move some of the tests from below the cut to above
> > already, e.g. do_sedf_tests and do_credit2_tests aren't arch specific,
> > so should be run on arm.
> > 
> I see. Great. :-)
> 
> Scheduler testing being below the cutoff was exactly what made me
> thinking that we only wanted basic ARM testing for now, given the
> limited HW resources, and to keep the "noise" low

Actually if anything we are underutilising the ARM resources we have,
they usually finish way in advance of all the x86 stuff.

Ian.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-12-19 11:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-18 13:38 [OSSTEST PATCH 0/2] Test case for cpupools Dario Faggioli
2014-12-18 13:38 ` [OSSTEST PATCH 1/2] ts-cpupools: new test script Dario Faggioli
2014-12-18 14:57   ` Juergen Gross
2014-12-18 13:39 ` [OSSTEST PATCH 2/2] Testing cpupools: recipe for it and job definition Dario Faggioli
2014-12-18 15:00   ` Juergen Gross
2014-12-18 15:04     ` Wei Liu
2014-12-18 15:10       ` Juergen Gross
2014-12-18 17:29         ` Dario Faggioli
2014-12-19  9:48           ` Ian Campbell
2014-12-19 10:50             ` Dario Faggioli
2014-12-19 11:02               ` Ian Campbell
2014-12-18 13:44 ` [OSSTEST PATCH 0/2] Test case for cpupools Dario Faggioli
2014-12-18 14:56 ` Juergen Gross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.