[#87773] timer thread [was Re: [ruby-alerts:7905] failure alert on trunk-asserts@silicon-docker (NG (r63844))] — Eric Wong <normalperson@...>
> test_all <main>: warning: pthread_create failed for timer: Resource temporarily unavailable, scheduling broken
[#87836] [Ruby trunk Bug#14898] test/lib/test/unit/parallel.rb: TestSocket#test_timestamp stuck sometimes — ko1@...
Issue #14898 has been reported by ko1 (Koichi Sasada).
[email protected] wrote:
On 2018/07/06 18:47, Eric Wong wrote:
[#87847] undefined symbol: mjit_init_p — Leam Hall <leamhall@...>
I pulled Ruby trunk on 3 Jul and am now getting errors similar to the
QXMgSSB0b2xkIHlvdSwgYG1ha2UgaW5zdGFsbGAgaXMgbmVlZGVkIHRvIG1ha2UgUnVieSB3b3Jr
T25lIG1vcmUgcmVhc29uIGZvciBodHRwczovL2J1Z3MucnVieS1sYW5nLm9yZy9pc3N1ZXMvMTM2
[#87986] [Ruby trunk Feature#14915] Deprecate String#crypt, move implementation to string/crypt — mame@...
Issue #14915 has been updated by mame (Yusuke Endoh).
[email protected] wrote:
normalperson (Eric Wong) wrote:
[#88088] [Ruby trunk Misc#14937] [PATCH] thread_pthread: lazy-spawn timer-thread only on contention — normalperson@...
Issue #14937 has been reported by normalperson (Eric Wong).
[#88104] [Ruby trunk Bug#14898] test/lib/test/unit/parallel.rb: TestSocket#test_timestamp stuck sometimes — ko1@...
Issue #14898 has been updated by ko1 (Koichi Sasada).
[#88173] [Ruby trunk Bug#14950] r64109 thread.c: move ppoll wrapper before thread_pthread.c - Windows compile failure - thread.c — Greg.mpls@...
Issue #14950 has been reported by MSP-Greg (Greg L).
[#88189] [Ruby trunk Bug#14950] r64109 thread.c: move ppoll wrapper before thread_pthread.c - Windows compile failure - thread.c — nobu@...
Issue #14950 has been updated by nobu (Nobuyoshi Nakada).
[#88199] [Ruby trunk Misc#14937] [PATCH] thread_pthread: lazy-spawn timer-thread only on contention — takashikkbn@...
Issue #14937 has been updated by k0kubun (Takashi Kokubun).
[email protected] wrote:
> yet, sky3 had a failure at
> http://ci.rvm.jp/results/trunk@P895/1173951
> > http://ci.rvm.jp/results/trunk@P895/1173951
[ruby-core:88039] [Ruby trunk Feature#14859] [PATCH] implement Timeout in VM
Issue #14859 has been updated by funny_falcon (Yura Sokolov). normalperson (Eric Wong) wrote: > Yes. The "timeout scheduler" is the same idea I used for auto-fiber. > It uses ccan/list to manage a sorted list of timeouts. Still wonder, why you don't use binary min-heap for timers - most commonly used datastructure for this task. It has guaranteed O(log n) performance for insertion/deletion, and O(1) for check for min, and has very simple implementation. Note, that for insertion of new maximum value, binary min-heap also gives O(1) performance because item will not sift up. ---------------------------------------- Feature #14859: [PATCH] implement Timeout in VM https://bugs.ruby-lang.org/issues/14859#change-73055 * Author: normalperson (Eric Wong) * Status: Open * Priority: Normal * Assignee: ko1 (Koichi Sasada) * Target version: ---------------------------------------- implement Timeout in VM Based on the ugliness of handling partial writes with IO#write_nonblock and inability to use writev(2) effectively with write timeouts in Net::HTTP in r63587-r63589, I've decided Timeout to be the more programmer-friendly option to use and to improve it. Timeout is significantly faster with this patch, and stopping the timeout before expiration (common case) is optimized to be as fast as possible. This version relies on timer-thread to provide wakeup interrupts. This is a minimally intrusive patch. I also started working on a more intrusive patch to touch all sleep/waiting function calls, but this is easier-to-review for now. In the future, I will try per-thread timeouts and eliminate timer-thread for platforms with POSIX timers (timer_create/timer_settime) Speedup ratio: compare with the result of `trunk' (greater is better) timeout_mt_nested 3.887 timeout_mt_same 3.843 timeout_mt_ugly 1.335 timeout_nested 7.059 timeout_same 5.173 timeout_zero 2.587 ---Files-------------------------------- 0001-implement-Timeout-in-VM.patch (27.2 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>