Issue #5688 has been updated by okkez _.

Assignee changed from Yukihiro Matsumoto to okkez _

??????????権????????????????????????????????

----------------------------------------
Bug #5688: Solaris10 ??? spawn ???繰???????????????????
http://redmine.ruby-lang.org/issues/5688

Author: okkez _
Status: Assigned
Priority: Normal
Assignee: okkez _
Category: core
Target version: 2.0.0
ruby -v: -


Solaris10 ??? spawn ???繰???????????????????????
Ruby ??? Solaris ??? gcc ??????????????????????32bit ???? 64bit ?????????????????????????
1.9.2-p180(64bit), 1.9.2-p290(32bit), 1.9.3-p0(64bit) ??確??????????????

???????????以???????????????
spawn-sleep.rb ???以??????容?????????????

  #!/usr/bin/env ruby
  ARGV[0].to_i.times do |n|
    spawn("sleep", "5")
    sleep 0.2
    GC.start if n % 100 == 0
  end

spawn-sleep.sh ???以??????容?????????????

  #!/bin/bash
  ./spawn-sleep.rb 3000 &
  pid=$!
  echo spawn-sleep:$pid
  trap "kill $pid; exit" INT TERM
  
  count=0
  while true; do
      date "+%Y-%m-%d %H:%M:%S"
      ps -o pid,ppid,vsz,rss,args | head -1 
      ps -o pid,ppid,vsz,rss,args | grep spawn-sleep.rb | grep -v grep
      echo "=========="
      sleep 1
  done

????????? spawn-sleep.sh ?????????????? spawn-sleep.rb ??? VSZ ??? RSS ????????????????????????????
??????????????????????????????????Debian(sid) ?????????????????????????
???????spawn ???????? system ?????????????????????????



-- 
http://redmine.ruby-lang.org