Project

General

Profile

Actions

Backport #5335

closed

[RFC/PATCH] test_old_thread_select: timing tweaks

Added by normalperson (Eric Wong) almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:39618]

Description

I was getting timing errors and short select() timeouts on CentOS 5.6
2.6.18-238.9.1.el5xen most likely due to CONFIG_HZ=250 and the lack of dynticks,
but maybe being a Xen VM has this effect, too.

select() itself appears to just be inaccurate on this system:

strace -e select -T ./ruby -e 'select([STDIN],nil,nil,0.001)'
select(1, [0], NULL, NULL, {0, 1000})   = 0 (Timeout) <0.000046>

I'm not happy with timing tests, but I can't think of another way to test
functionality like this.


Files

Actions

Also available in: Atom PDF