Project

General

Profile

Actions

Bug #10009

open

IO operation is 10x slower in multi-thread environment

Added by ariveira (Alexandre Riveira) over 10 years ago. Updated 8 months ago.

Status:
Assigned
Target version:
-
ruby -v:
ruby 2.1 x ruby 1.9.2 with taskset
[ruby-core:63556]
Tags:

Description

I created this issue #9832 but not have io operation.
In the script attached I simulate IO operation in multi-thread environment.
For ruby 1.9.2 apply taskset -c -p 2 #{Process.pid} for regulates threads behavior.
The second Thread is a io operation

My results:

  1. ruby 2.1.2
    first 43500194
    second 95
    third 42184385

  2. ruby-2.0.0-p451
    first 38418401
    second 95
    third 37444470

  3. 1.9.3-p545
    first 121260313
    second 50
    third 44275164

  4. 1.9.2-p320
    first 31189901
    second 897 <============
    third 31190598

Regards

Alexandre Riveira


Files

teste_thread_schedule_2.rb (1.05 KB) teste_thread_schedule_2.rb ariveira (Alexandre Riveira), 07/06/2014 07:33 AM
teste_thread_schedule.py (953 Bytes) teste_thread_schedule.py ariveira (Alexandre Riveira), 07/08/2014 09:54 AM
teste_thread_schedule.rb (955 Bytes) teste_thread_schedule.rb ariveira (Alexandre Riveira), 07/08/2014 09:56 AM
test_thread_sched_pipe.rb (1.01 KB) test_thread_sched_pipe.rb normalperson (Eric Wong), 07/08/2014 08:37 PM
test_thread_sched.rb (2.82 KB) test_thread_sched.rb ariveira (Alexandre Riveira), 08/16/2014 03:55 PM
test_thread_sched.rb (2.88 KB) test_thread_sched.rb ariveira (Alexandre Riveira), 08/16/2014 05:50 PM
tests.txt (2.5 KB) tests.txt ariveira (Alexandre Riveira), 08/16/2014 05:50 PM
test.py (1.41 KB) test.py ariveira (Alexandre Riveira), 10/29/2014 01:23 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0