This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/4274] Performance issue: pthread_cond_signal() causes three context switches instead of one
- From: "bart dot vanassche at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 25 Mar 2007 14:28:34 -0000
- Subject: [Bug nptl/4274] Performance issue: pthread_cond_signal() causes three context switches instead of one
- References: <20070325101629.4274.bart.vanassche@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From bart dot vanassche at gmail dot com 2007-03-25 15:28 -------
Are you sure that this is already fixed ? These are the results with the latest
CVS version (2007-03-25):
$ /home/bart/glibc-cvs/lib/libc.so.6
GNU C Library development release version 2.5.90, by Roland McGrath et al.
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.1.2 20061115 (prerelease) (SUSE Linux).
Compiled on a Linux >>2.6.18.6<< system on 2007-03-25.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
$ LD_LIBRARY_PATH=/home/bart/glibc-cvs/lib:
/home/bart/glibc-cvs/lib/ld-linux.so.2 ./glibc-cvs-condvar-perf
NPTL
mutex elapsed: 4054 us; per iteration: 40 ns / 5e-05 csw
c.v. ping-pong test elapsed: 421526 us; per iteration: 4215 ns / 6 csw
signal ping-pong test elapsed: 430622 us; per iteration: 4306 ns / 4 csw
signal ping-pong no mtx elapsed: 207861 us; per iteration: 2078 ns / 2 csw
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://sourceware.org/bugzilla/show_bug.cgi?id=4274
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.