From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS6939 64.71.128.0/18 X-Spam-Status: No, score=-1.1 required=3.0 tests=AWL,BAYES_00,FREEMAIL_FROM, FROM_STARTS_WITH_NUMS,MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=no version=3.3.2 Path: news.gmane.org!not-for-mail From: Hleb Valoshka <375gnu@gmail.com> Newsgroups: gmane.comp.lang.ruby.raindrops.general Subject: raindrops tests fail on smp, fork is to blame Date: Sat, 23 Jun 2012 00:06:30 +0300 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1340399200 9613 80.91.229.3 (22 Jun 2012 21:06:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 22 Jun 2012 21:06:40 +0000 (UTC) To: raindrops@librelist.org Original-X-From: raindrops@librelist.org Fri Jun 22 23:06:39 2012 Return-path: Envelope-to: gclrrg-raindrops@m.gmane.org In-Reply-To: List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: raindrops@librelist.org Xref: news.gmane.org gmane.comp.lang.ruby.raindrops.general:95 Archived-At: Received: from zedshaw.xen.prgmr.com ([64.71.167.205]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SiB3s-0004Z2-7L for gclrrg-raindrops@m.gmane.org; Fri, 22 Jun 2012 23:06:36 +0200 Received: from zedshaw.xen.prgmr.com (localhost [IPv6:::1]) by zedshaw.xen.prgmr.com (Postfix) with ESMTP id B8FF421DEB6 for ; Fri, 22 Jun 2012 21:15:01 +0000 (UTC) Hello! Raindrops build hangs on debian's build servers, but not on my local box. This occurs when tests are run under ruby1.9.1. You can see example of build log in [0]. It took a lot of time to understand that the main difference between build and my box is number of CPUs: debian's servers are smp, my kvm box had only 1 cpu. Today I decided to start kvm with option -smp 2, and voila! build hung. The more tests with fork() you have the higher probability build will hang. When all tests are enabled, the probability of hang is about 100% when tests are run by gem2deb (it loads all test files simultaneously) and about 5-10% with "make test". When test_concurrect from test_middleware.rb and test_incr_shared, test_incr_decr and test_evaporate_with_fork from test_raindrops.rb are disabled build runs without hangs. Any ideas? [0] https://buildd.debian.org/status/fetch.php?pkg=ruby-raindrops&arch=kfreebsd-amd64&ver=0.9.0-1&stamp=1340389966