Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2015-09-24
11:20 • Closed ticket [5d170b5ca5]: checkin 9f8b7bea5344f1b0 broke netbsd's thread n... artifact: 569ede6143 user: jan.nijtmans
11:06
Fix [5d170b5ca5e12743006d737c79f959f3efabc644|5d170b5ca5]: checkin 9f8b7bea5344f1b0 broke netbsd's t... check-in: 6da7c01325 user: jan.nijtmans tags: trunk
10:54
Fix [5d170b5ca5e12743006d737c79f959f3efabc644|5d170b5ca5]: checkin 9f8b7bea5344f1b0 broke netbsd's t... check-in: f30afc36b5 user: jan.nijtmans tags: core-8-5-branch
10:50 • Closed ticket [a27ee06c65]: --enable-symbols=all build hangs test suite (all scr... artifact: f757233417 user: jan.nijtmans
10:49 • Ticket [5d170b5ca5] checkin 9f8b7bea5344f1b0 broke netbsd's thread notifier<... artifact: 6b54bc4d1a user: jan.nijtmans
2015-09-07
18:53 • Ticket [5d170b5ca5]: 3 changes artifact: 37282905a5 user: jan.nijtmans
18:00 • Ticket [5d170b5ca5]: 3 changes artifact: dd28a19150 user: mistachkin
08:38 • Ticket [5d170b5ca5]: 3 changes artifact: 0f06895a42 user: jan.nijtmans
08:35
Fix for [5d170b5ca5] now available for widespread testing (incl. HPUX and OSX) check-in: 3ff8944fc4 user: jan.nijtmans tags: bug-5d170b5ca5
2015-09-06
12:56 • Ticket [5d170b5ca5] checkin 9f8b7bea5344f1b0 broke netbsd's thread notifier<... artifact: c833b98f8d user: dkf
2015-08-28
12:54 • Ticket [5d170b5ca5]: 3 changes artifact: 6bc8ee71bf user: jan.nijtmans
12:51 • Ticket [76d79516f1] forking broken status still Open with 3 other changes artifact: 75a521bd77 user: jan.nijtmans
2015-08-06
22:49 • Add attachment test.result to ticket [5d170b5ca5] artifact: 4e7e4b7511 user: emiliano
22:48 • Ticket [5d170b5ca5] checkin 9f8b7bea5344f1b0 broke netbsd's thread notifier<... artifact: 42923edf92 user: emiliano
22:36 • Ticket [5d170b5ca5]: 4 changes artifact: 82dcb3a913 user: emiliano
17:03 • Ticket [5d170b5ca5]: 3 changes artifact: 5b130a297a user: mistachkin
16:31 • Add attachment configure.output to ticket [5d170b5ca5] artifact: c2e7cf3d56 user: emiliano
03:36 • Ticket [5d170b5ca5] checkin 9f8b7bea5344f1b0 broke netbsd's thread notifier<... artifact: d8a72c75ee user: mistachkin
02:32 • Ticket [5d170b5ca5]: 4 changes artifact: 985a09ca42 user: emiliano
02:31 • Add attachment test.result.41d3e42dda.thread to ticket [5d170b5ca5e1274... artifact: d9db5d9880 user: emiliano
02:31 • Add attachment test.result.41d3e42dda.nothread to ticket [5d170b5ca5e12... artifact: a5866bb507 user: emiliano
02:30 • Add attachment test.result.9f8b7bea53.thread to ticket [5d170b5ca5e1274... artifact: ebe5049c8c user: emiliano
02:30 • Add attachment test.result.9f8b7bea53.nothread to ticket [5d170b5ca5e12... artifact: 129d51dbd5 user: emiliano
01:24 • Ticket [5d170b5ca5] checkin 9f8b7bea5344f1b0 broke netbsd's thread notifier<... artifact: 48ee0a407f user: emiliano
01:21 • New ticket [5d170b5ca5]. artifact: ae14bc55b6 user: emiliano

checkin 9f8b7bea5344f1b0 broke netbsd's thread notifier

Closed / Fixed5d170b5ca5e12743006d737c79f959f3efabc644Created 11 years agoUpdated 11 years ago
Descriptionplain2015-08-06 01:21:25
Starting from checkin 9f8b7bea5344f1b0 ( http://core.tcl.tk/tcl/info/9f8b7bea5344f1b0746587d660c81fa4f7109f00 ) on netbsd the test suite started to suffer massive slowdowns and several failing tests (out of 0 in previous versions).

fossil bisect indicates that the above mentioned checkin provokes the problem on the default build. Building with --disable-threads shows no problems.
Referenced by5
emilianoplain2015-08-06 01:24:31
I have logs of full test suite runs from checkins 9f8b7bea5344f1b0 (bad) and its parent 41d3e42ddaf7d287 (good), both with and without threads, but fossil seem not to offer the possibility to attach those files
emilianoplain2015-08-06 02:32:47
Finally figured out how to attach files :-)
mistachkinplain2015-08-06 03:36:34
Could you please attach the log files generated by ./configure?
mistachkinplain2015-08-06 17:03:37
One thing that could have a significant impact on this is
the TCL_MUTEX_LOCK_SLEEP_TIME constant in "tclUnixThrd.c"...

Maybe try setting it to a lower value, perhaps zero, if the
platform will consider that as something like yield() to the
other threads.
emilianoplain2015-08-06 22:36:28
Setting TCL_MUTEX_LOCK_SLEEP_TIME has limited effect (fewer failing test) but doesn't seem to be a solution. Attaching test results with the modification
emilianoplain2015-08-06 22:48:15
* Setting TCL_MUTEX_LOCK_SLEEP_TIME to 0, that is
jan.nijtmanswiki2015-08-28 12:54:48

It appears that Joe Mistachkin is working on a fix in the bug-57945b574a branch http://core.tcl.tk/tcl/info/f31817e84132dd8c. And Gustaf Neumann is working on a more fundamental fix (with performance improvements) in the expermental branch http://core.tcl.tk/tcl/info/992fb42ccd03439d

Let's hope one of those will lead to a good result in the near future.

dkfwiki2015-09-06 12:56:18
jan.nijtmanswiki2015-09-07 08:38:28

Branch bug-5d170b5ca5 now open for widespread testing.

mistachkinplain2015-09-07 18:00:41
I'm not sure what the changes on the associated branch actually do.

Also, does the original TIP #435 implementation have issues on any platform
__other__ than NetBSD?
jan.nijtmanswiki2015-09-07 18:53:24

Gustaf's explanation and performance measures can be found here: http://code.activestate.com/lists/tcl-core/14779/

Quoting (partially): This morning i've got a lock-free version of "auto-lazy" working (based on the low-level pthread_*lock interface to avoid the problem with tcl's mega-locks). One reason for the locks in the *Prepare callback is to have the mutex variables in a defined state in the child. This can be addressed as well by reinitializing the mutexes (and condition variables in question)

With this, we reach essentially the same performance as without the at-fork callbacks:

jan.nijtmanswiki2015-09-24 10:49:03

Answering to Joe: Bug [a27ee06c65] (which is now marked as dup of this one) shows that the problem is not only on netbsd.

jan.nijtmansplain2015-09-24 11:20:04
Fixed in core-8-5-branch and trunk now.
Log in (anonymous is fine) to add a comment.