Hello community,

here is the log from the commit of package stress-ng for openSUSE:Factory 
checked in at 2018-01-07 17:23:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/stress-ng (Old)
 and      /work/SRC/openSUSE:Factory/.stress-ng.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "stress-ng"

Sun Jan  7 17:23:09 2018 rev:26 rq:562161 version:0.09.09

Changes:
--------
--- /work/SRC/openSUSE:Factory/stress-ng/stress-ng.changes      2018-01-01 
22:36:23.196836697 +0100
+++ /work/SRC/openSUSE:Factory/.stress-ng.new/stress-ng.changes 2018-01-07 
17:23:12.580110641 +0100
@@ -1,0 +2,10 @@
+Fri Jan  5 21:29:32 UTC 2018 - mar...@gmx.de
+
+- Update to version 09.09.09
+  * Makefile: bump version
+  * stress-tlb-shootdown: only kill legitimate pids
+  * stress-tlb-shootdown: make child processes more OOM-able
+  * stress-rawdev: replace some spaces with tab for indentation
+  * stress-ng.1: fix table for rawdev-method option
+
+-------------------------------------------------------------------

Old:
----
  stress-ng-0.09.08.tar.xz

New:
----
  stress-ng-0.09.09.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ stress-ng.spec ++++++
--- /var/tmp/diff_new_pack.VI6NXL/_old  2018-01-07 17:23:13.124085144 +0100
+++ /var/tmp/diff_new_pack.VI6NXL/_new  2018-01-07 17:23:13.128084956 +0100
@@ -18,7 +18,7 @@
 
 
 Name:           stress-ng
-Version:        0.09.08
+Version:        0.09.09
 Release:        0
 Summary:        Tool to load and stress a computer
 License:        GPL-2.0

++++++ stress-ng-0.09.08.tar.xz -> stress-ng-0.09.09.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/stress-ng-0.09.08/Makefile 
new/stress-ng-0.09.09/Makefile
--- old/stress-ng-0.09.08/Makefile      2017-12-31 18:18:59.000000000 +0100
+++ new/stress-ng-0.09.09/Makefile      2018-01-04 02:38:32.000000000 +0100
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.09.08
+VERSION=0.09.09
 #
 # Codename "portable pressure producer"
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/stress-ng-0.09.08/stress-ng.1 
new/stress-ng-0.09.09/stress-ng.1
--- old/stress-ng-0.09.08/stress-ng.1   2017-12-31 18:19:00.000000000 +0100
+++ new/stress-ng-0.09.09/stress-ng.1   2018-01-04 02:38:32.000000000 +0100
@@ -2313,6 +2313,7 @@
 wiggle T{
 repeatedy read across the raw device in 128 evenly steps with each step reading
 1024 blocks backwards from each step.
+T}
 ends   T{
 repeatedy read the first and last 128 start and end blocks of the raw device
 alternating from start of the device to the end of the device.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/stress-ng-0.09.08/stress-rawdev.c 
new/stress-ng-0.09.09/stress-rawdev.c
--- old/stress-ng-0.09.08/stress-rawdev.c       2017-12-31 18:19:00.000000000 
+0100
+++ new/stress-ng-0.09.09/stress-rawdev.c       2018-01-04 02:38:32.000000000 
+0100
@@ -34,8 +34,8 @@
                           unsigned long blks, unsigned long blksz);
 
 typedef struct {
-        const char              *name;
-        const rawdev_func       func;
+       const char              *name;
+       const rawdev_func       func;
 } stress_rawdev_method_info_t;
 
 /*
@@ -233,11 +233,11 @@
        unsigned long blks,
        unsigned long blksz)
 {
-        static int i = 1;       /* Skip over stress_rawdev_all */
+       static int i = 1;       /* Skip over stress_rawdev_all */
 
-        rawdev_methods[i++].func(args, fd, blks, blksz);
-        if (!rawdev_methods[i].func)
-                i = 1;
+       rawdev_methods[i++].func(args, fd, blks, blksz);
+       if (!rawdev_methods[i].func)
+               i = 1;
 }
 
 
@@ -301,13 +301,13 @@
        struct stat stat_buf;
        int fd;
        unsigned long blks = 0, blksz = 0;
-        const stress_rawdev_method_info_t *rawdev_method = &rawdev_methods[0];
-        rawdev_func func;
+       const stress_rawdev_method_info_t *rawdev_method = &rawdev_methods[0];
+       rawdev_func func;
 
        stress_temp_dir_args(args, path, sizeof(path));
 
-        (void)get_setting("rawdev-method", &rawdev_method);
-        func = rawdev_method->func;
+       (void)get_setting("rawdev-method", &rawdev_method);
+       func = rawdev_method->func;
 
        fd = open(path, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
        if (fd < 0) {
@@ -378,6 +378,6 @@
 #else
 int stress_rawdev(const args_t *args)
 {
-        return stress_not_implemented(args);
+       return stress_not_implemented(args);
 }
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/stress-ng-0.09.08/stress-tlb-shootdown.c 
new/stress-ng-0.09.09/stress-tlb-shootdown.c
--- old/stress-ng-0.09.08/stress-tlb-shootdown.c        2017-12-31 
18:19:00.000000000 +0100
+++ new/stress-ng-0.09.09/stress-tlb-shootdown.c        2018-01-04 
02:38:32.000000000 +0100
@@ -100,6 +100,12 @@
                                cpu_set_t mask;
                                char buffer[page_size];
 
+                               (void)setpgid(0, g_pgrp);
+                               stress_parent_died_alarm();
+
+                               /* Make sure this is killable by OOM killer */
+                               set_oom_adjustment(args->name, true);
+
                                CPU_ZERO(&mask);
                                CPU_SET(cpu % max_cpus, &mask);
                                (void)sched_setaffinity(args->pid, 
sizeof(mask), &mask);
@@ -127,8 +133,10 @@
                                         * it was the alarm (timedout) or
                                         * SIGINT so force terminate
                                         */
-                                       for (j = i; j < tlb_procs; j++)
-                                               (void)kill(pids[j], SIGKILL);
+                                       for (j = i; j < tlb_procs; j++) {
+                                               if (pids[j] != -1)
+                                                       (void)kill(pids[j], 
SIGKILL);
+                                       }
 
                                        /* re-wait on the failed wait */
                                        (void)waitpid(pids[i], &status, 0);


Reply via email to