Artifacts Associated With Ticket 5d170b5ca5
Ticket change [ae14bc55b6] (rid 142738) by emiliano on 2015-08-06 01:21:25:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
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.
- foundin initialized to: "trunk"
- is_private initialized to: "0"
- login: "emiliano"
- priority initialized to: "5 Medium"
- private_contact initialized to: "885ae311f5fce05c2a8d9c31d2d2a1b5638ca9df"
- resolution initialized to: "None"
- severity initialized to: "Critical"
- status initialized to: "Open"
- submitter initialized to: "emiliano"
- subsystem initialized to: "01. Notifier"
- title initialized to:
checkin 9f8b7bea5344f1b0 broke netbsd's thread notifier
- type initialized to: "Bug"
Ticket change [48ee0a407f] (rid 142739) by emiliano on 2015-08-06 01:24:31:
- icomment:
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
- login: "emiliano"
- mimetype: "text/plain"
- username: "emiliano"
- icomment:
Add attachment "test.result.9f8b7bea53.nothread" [129d51dbd5] (rid 142740) by emiliano on 2015-08-06 02:30:30.
Add attachment "test.result.9f8b7bea53.thread" [ebe5049c8c] (rid 142741) by emiliano on 2015-08-06 02:30:54.
Add attachment "test.result.41d3e42dda.nothread" [a5866bb507] (rid 142742) by emiliano on 2015-08-06 02:31:17.
Add attachment "test.result.41d3e42dda.thread" [d9db5d9880] (rid 142743) by emiliano on 2015-08-06 02:31:46.
Ticket change [985a09ca42] (rid 142744) by emiliano on 2015-08-06 02:32:47:
- icomment: "Finally figured out how to attach files :-)"
- login: "emiliano"
- mimetype: "text/plain"
- username: "emiliano"
Ticket change [d8a72c75ee] (rid 142745) by mistachkin on 2015-08-06 03:36:34:
- icomment:
Could you please attach the log files generated by ./configure?
- login: "mistachkin"
- mimetype: "text/plain"
- icomment:
Add attachment "configure.output" [c2e7cf3d56] (rid 142760) by emiliano on 2015-08-06 16:31:12.
Ticket change [5b130a297a] (rid 142761) by mistachkin on 2015-08-06 17:03:37:
- icomment:
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.
- login: "mistachkin"
- mimetype: "text/plain"
- icomment:
Ticket change [82dcb3a913] (rid 142763) by emiliano on 2015-08-06 22:36:28:
- icomment:
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
- login: "emiliano"
- mimetype: "text/plain"
- username: "emiliano"
- icomment:
Ticket change [42923edf92] (rid 142764) by emiliano on 2015-08-06 22:48:15:
- icomment: "* Setting TCL_MUTEX_LOCK_SLEEP_TIME to 0, that is"
- login: "emiliano"
- mimetype: "text/plain"
- username: "emiliano"
Add attachment "test.result" [4e7e4b7511] (rid 142765) by emiliano on 2015-08-06 22:49:22.
Ticket change [6bc8ee71bf] (rid 142932) by jan.nijtmans on 2015-08-28 12:54:48:
- icomment:
It appears that Joe Mistachkin is working on a fix in the <b>bug-57945b574a</b> branch [http://core.tcl.tk/tcl/info/f31817e84132dd8c]. And Gustaf Neumann is working on a more fundamental fix (with performance improvements) in the <b>expermental</b> branch [http://core.tcl.tk/tcl/info/992fb42ccd03439d] Let's hope one of those will lead to a good result in the near future.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [c833b98f8d] (rid 143034) by dkf on 2015-09-06 12:56:18:
- icomment: "xref [76d79516f1]"
- login: "dkf"
- mimetype: "text/x-fossil-wiki"
Ticket change [0f06895a42] (rid 143041) by jan.nijtmans on 2015-09-07 08:38:28:
- icomment:
Branch [/timeline?r=bug-5d170b5ca5|bug-5d170b5ca5] now open for widespread testing.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [dd28a19150] (rid 143042) by mistachkin on 2015-09-07 18:00:41:
- icomment:
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?
- login: "mistachkin"
- mimetype: "text/plain"
- icomment:
Ticket change [37282905a5] (rid 143043) by jan.nijtmans on 2015-09-07 18:53:24:
- icomment:
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:
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [6b54bc4d1a] (rid 143201) by jan.nijtmans on 2015-09-24 10:49:03:
- icomment:
Answering to Joe: Bug [a27ee06c65] (which is now marked as dup of this one) shows that the problem is not only on netbsd.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [569ede6143] (rid 143212) by jan.nijtmans on 2015-09-24 11:20:04:
- closedate changed to: "2457289.97227662"
- closer changed to: "jan.nijtmans"
- icomment: "Fixed in core-8-5-branch and trunk now."
- login: "jan.nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"