Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package virt-tuner for openSUSE:Factory checked in at 2021-10-06 19:50:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/virt-tuner (Old) and /work/SRC/openSUSE:Factory/.virt-tuner.new.2443 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "virt-tuner" Wed Oct 6 19:50:00 2021 rev:3 rq:923518 version:0.0.3 Changes: -------- --- /work/SRC/openSUSE:Factory/virt-tuner/virt-tuner.changes 2021-08-27 21:45:30.954084074 +0200 +++ /work/SRC/openSUSE:Factory/.virt-tuner.new.2443/virt-tuner.changes 2021-10-06 19:50:13.668064583 +0200 @@ -1,0 +2,6 @@ +Wed Oct 6 13:58:07 UTC 2021 - C??dric Bosdonnat <cbosdon...@suse.com> + +- Release 0.0.3 + - Fix virtual CPU order for hyperthreads to match in QEMU + +------------------------------------------------------------------- Old: ---- virt-tuner-0.0.2.tar.gz New: ---- virt-tuner-0.0.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ virt-tuner.spec ++++++ --- /var/tmp/diff_new_pack.Q3xPdg/_old 2021-10-06 19:50:14.184065061 +0200 +++ /var/tmp/diff_new_pack.Q3xPdg/_new 2021-10-06 19:50:14.188065065 +0200 @@ -21,7 +21,7 @@ %define pythons python3 Name: virt-tuner -Version: 0.0.2 +Version: 0.0.3 Release: 0 Summary: Virtual Machine definition tuner License: GPL-3.0-or-later ++++++ virt-tuner-0.0.2.tar.gz -> virt-tuner-0.0.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/virt-tuner-0.0.2/AUTHORS new/virt-tuner-0.0.3/AUTHORS --- old/virt-tuner-0.0.2/AUTHORS 2021-08-27 17:28:12.000000000 +0200 +++ new/virt-tuner-0.0.3/AUTHORS 2021-10-06 15:57:39.000000000 +0200 @@ -3,4 +3,5 @@ The individual contributors are + Cedric Bosdonnat <cedric.bosdon...@free.fr> C??dric Bosdonnat <cbosdon...@suse.com> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/virt-tuner-0.0.2/ChangeLog new/virt-tuner-0.0.3/ChangeLog --- old/virt-tuner-0.0.2/ChangeLog 2021-08-27 17:28:12.000000000 +0200 +++ new/virt-tuner-0.0.3/ChangeLog 2021-10-06 15:57:39.000000000 +0200 @@ -1,3 +1,25 @@ +2021-10-06 Cedric Bosdonnat <cedric.bosdon...@free.fr> + + Merge pull request #1 from cbosdo/cpu-fix + vcpu order fix + +2021-10-06 C??dric Bosdonnat <cbosdon...@suse.com> + + Fix virtual CPUs order + QEMU considers consecutive virtual CPUs to be on the same core. This + commit changes the vCPUs ids to address this issue. + + +2021-10-06 C??dric Bosdonnat <cbosdon...@suse.com> + + Bump version to 0.0.3 + + +2021-10-06 C??dric Bosdonnat <cbosdon...@suse.com> + + Add missing entries in NEWS.md + + 2021-08-27 C??dric Bosdonnat <cbosdon...@suse.com> Fix numa memory merging whathever the unit is in CLI diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/virt-tuner-0.0.2/NEWS.md new/virt-tuner-0.0.3/NEWS.md --- old/virt-tuner-0.0.2/NEWS.md 2021-07-13 10:40:36.000000000 +0200 +++ new/virt-tuner-0.0.3/NEWS.md 2021-10-06 14:39:36.000000000 +0200 @@ -1 +1,13 @@ # Virt Tuner News + +## Version 0.0.1 + +* Single VM per host template + +## Version 0.0.2 + +* Fix NUMA cells memory computation for 'single' template + +## Version 0.0.3 + +* Fix the virtual CPUs ordering to have sibling with consecutive IDs. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/virt-tuner-0.0.2/PKG-INFO new/virt-tuner-0.0.3/PKG-INFO --- old/virt-tuner-0.0.2/PKG-INFO 2021-08-27 17:28:12.306105900 +0200 +++ new/virt-tuner-0.0.3/PKG-INFO 2021-10-06 15:57:39.374396000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: virt-tuner -Version: 0.0.2 +Version: 0.0.3 Summary: VM definition tuner Home-page: https://github.com/SUSE/virt-tuner Author: Cedric Bosdonnat diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/virt-tuner-0.0.2/src/virt_tuner/__init__.py new/virt-tuner-0.0.3/src/virt_tuner/__init__.py --- old/virt-tuner-0.0.2/src/virt_tuner/__init__.py 2021-08-27 17:05:31.000000000 +0200 +++ new/virt-tuner-0.0.3/src/virt_tuner/__init__.py 2021-10-06 15:45:48.000000000 +0200 @@ -37,7 +37,7 @@ log = logging.getLogger(__name__) -__version__ = "0.0.2" +__version__ = "0.0.3" Template = namedtuple("Template", ["description", "function", "parameters"]) @@ -51,7 +51,13 @@ cpus = [cell.cpus for cell in cells] cpus = [cpu for sublist in cpus for cpu in sublist] - key_fn = lambda c: "{}-{}".format(c["socket_id"], c["core_id"]) + key_fn = lambda c: "{:0>5}{:0>5}".format(c["socket_id"], c["core_id"]) + + # Sort the cpus to have the consecutive IDs for the siblings: + # QEMU needs this trick to think the two virtual cpus are located on the same core. + cpus = sorted(cpus, key=key_fn) + for id, cpu in enumerate(cpus): + cpu['id'] = id cpu_topology = { "sockets": len({c["socket_id"] for c in cpus}), @@ -93,7 +99,7 @@ }, "numa": { c.id: { - "cpus": ",".join([str(cpu["id"]) for cpu in c.cpus]), + "cpus": ",".join([str(cpu["id"]) for cpu in sorted(c.cpus, key=lambda c: c["id"])]), "memory": str(pages_per_cell) + " GiB", "distances": c.distances, } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/virt-tuner-0.0.2/src/virt_tuner.egg-info/PKG-INFO new/virt-tuner-0.0.3/src/virt_tuner.egg-info/PKG-INFO --- old/virt-tuner-0.0.2/src/virt_tuner.egg-info/PKG-INFO 2021-08-27 17:28:12.000000000 +0200 +++ new/virt-tuner-0.0.3/src/virt_tuner.egg-info/PKG-INFO 2021-10-06 15:57:39.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: virt-tuner -Version: 0.0.2 +Version: 0.0.3 Summary: VM definition tuner Home-page: https://github.com/SUSE/virt-tuner Author: Cedric Bosdonnat diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/virt-tuner-0.0.2/tests/test_virt_tuner.py new/virt-tuner-0.0.3/tests/test_virt_tuner.py --- old/virt-tuner-0.0.2/tests/test_virt_tuner.py 2021-08-27 16:55:47.000000000 +0200 +++ new/virt-tuner-0.0.3/tests/test_virt_tuner.py 2021-10-06 11:31:46.000000000 +0200 @@ -104,20 +104,20 @@ "tuning": { "vcpupin": { 0: "0,2", - 1: "1,3", - 2: "0,2", + 1: "0,2", + 2: "1,3", 3: "1,3", 4: "4,6", - 5: "5,7", - 6: "4,6", + 5: "4,6", + 6: "5,7", 7: "5,7", 8: "8,10", - 9: "9,11", - 10: "8,10", + 9: "8,10", + 10: "9,11", 11: "9,11", 12: "12,14", - 13: "13,15", - 14: "12,14", + 13: "12,14", + 14: "13,15", 15: "13,15", }, },