This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.26-215-g9ce673b


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  9ce673b69e82578044958f66d93dcaddb23f6e95 (commit)
      from  8a0e619652cd6846e04a55cb380d7a7205b65e27 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=9ce673b69e82578044958f66d93dcaddb23f6e95

commit 9ce673b69e82578044958f66d93dcaddb23f6e95
Author: Florian Weimer <fweimer@redhat.com>
Date:   Wed Aug 30 16:20:20 2017 +0200

    Do not scale NPTL tests with available number of CPUs
    
    On very large multi-processor systems, creating hundreds of threads
    runs into a test time out.  The tests do not seem to benefit from
    massive over-scheduling.

diff --git a/ChangeLog b/ChangeLog
index addc36a..e057487 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-08-30  Florian Weimer  <fweimer@redhat.com>
+
+	Do not scale NPTL tests with available number of CPUs.
+	* nptl/tst-cond16.c (count): Set to constant value of 8.
+	* nptl/tst-cond18.c (count): Likewise.
+
 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
 
 	[BZ #22035]
diff --git a/nptl/tst-cond16.c b/nptl/tst-cond16.c
index 032677a..b3bfb90 100644
--- a/nptl/tst-cond16.c
+++ b/nptl/tst-cond16.c
@@ -28,7 +28,7 @@ pthread_cond_t cv = PTHREAD_COND_INITIALIZER;
 pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
 bool n, exiting;
 FILE *f;
-int count;
+enum { count = 8 };		/* Number of worker threads.  */
 
 void *
 tf (void *dummy)
@@ -71,11 +71,6 @@ do_test (void)
       return 1;
     }
 
-  count = sysconf (_SC_NPROCESSORS_ONLN);
-  if (count <= 0)
-    count = 1;
-  count *= 4;
-
   pthread_t th[count];
   pthread_attr_t attr;
   int i, ret, sz;
diff --git a/nptl/tst-cond18.c b/nptl/tst-cond18.c
index 187f3af..6276110 100644
--- a/nptl/tst-cond18.c
+++ b/nptl/tst-cond18.c
@@ -28,7 +28,8 @@
 pthread_cond_t cv = PTHREAD_COND_INITIALIZER;
 pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
 bool exiting;
-int fd, count, spins, nn;
+int fd, spins, nn;
+enum { count = 8 };		/* Number of worker threads.  */
 
 void *
 tf (void *id)
@@ -82,11 +83,6 @@ do_test (void)
       return 1;
     }
 
-  count = sysconf (_SC_NPROCESSORS_ONLN);
-  if (count <= 0)
-    count = 1;
-  count *= 8;
-
   pthread_t th[count + 1];
   pthread_attr_t attr;
   int i, ret, sz;

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    6 ++++++
 nptl/tst-cond16.c |    7 +------
 nptl/tst-cond18.c |    8 ++------
 3 files changed, 9 insertions(+), 12 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]