[Groonga-commit] droonga/drnbench at 1d28359 [master] Disable GC in child processes to avoid slowing down

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Nov 28 16:16:06 JST 2014


YUKI Hiroshi	2014-11-28 16:16:06 +0900 (Fri, 28 Nov 2014)

  New Revision: 1d283594414579737534d8cdb1d6955379f30ddc
  https://github.com/droonga/drnbench/commit/1d283594414579737534d8cdb1d6955379f30ddc

  Message:
    Disable GC in child processes to avoid slowing down

  Modified files:
    lib/drnbench/request-response/runner.rb

  Modified: lib/drnbench/request-response/runner.rb (+4 -0)
===================================================================
--- lib/drnbench/request-response/runner.rb    2014-11-28 15:51:01 +0900 (03558bd)
+++ lib/drnbench/request-response/runner.rb    2014-11-28 16:16:06 +0900 (c47a6ee)
@@ -95,6 +95,10 @@ module Drnbench
         child_read, parent_write = IO.pipe
 
         pid = fork do
+          # Because continuous benchmark increases objects,
+          # GC painflly slows down the process.
+          GC.disable
+
           parent_write.close
           parent_read.close
           druby_uri = child_read.gets.chomp
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index