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: AS14383 205.234.109.0/24 X-Spam-Status: No, score=0.0 required=3.0 tests=MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Kyle Drake Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: Rainbows and 2.0.0pre - thread safety Date: Mon, 20 Jun 2011 13:51:23 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1308603725 20391 80.91.229.12 (20 Jun 2011 21:02:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Jun 2011 21:02:05 +0000 (UTC) To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Mon Jun 20 23:01:56 2011 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=+aPA3oohQLnzLwRYIXHxz6Ll9vWpUqkZVdD9isRY6Hs=; b=VjC7mnMHJyETt9QuX/ubX84+R4liYoVZLYWUseAO/7TdC8TO4/lr+rpHG574WlUD42 UpEV/xBmB3no2epErk1FJ8jhK+c4OBauCC3r3jGsxmXdbQxFJzN+1zp5695Qc+ggnWjd SgHZe5iJFceRD4bixp7PzBQQJofa0ZRBU580A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=nLKCmy0Il8OmakX5tzqWrZWDz1TBzWHQNflWA2MiEJWV0mcwBCKrBN4J8mzWDPMxHs ZuabWptBiq45NY+G+tpx1bqk/xZ2dTEsK0i53hLSZ1gNf1Bgo6Kq8hx9H1aRBTZ+2wGI OUgPNjAtQkRmzjxvyw9JDZSCbfNrsxSpuas8M= X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:264 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QYlbV-0005Yc-7W for gclrrg-rainbows-talk@m.gmane.org; Mon, 20 Jun 2011 23:01:53 +0200 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id C4F831858361; Mon, 20 Jun 2011 17:01:50 -0400 (EDT) Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54]) by rubyforge.org (Postfix) with ESMTP id 922F61858361 for ; Mon, 20 Jun 2011 16:51:24 -0400 (EDT) Received: by wwf4 with SMTP id 4so2019871wwf.23 for ; Mon, 20 Jun 2011 13:51:23 -0700 (PDT) Received: by 10.216.140.219 with SMTP id e69mr2651227wej.45.1308603083419; Mon, 20 Jun 2011 13:51:23 -0700 (PDT) Received: by 10.216.72.9 with HTTP; Mon, 20 Jun 2011 13:51:23 -0700 (PDT) Hi guys, I've setup a load test for Rainbows with Rubinius 2.0.0pre: https://github.com/kyledrake/rubinius-sinatra-loadtesting/tree/master/rainbows When I load test it on 2.0.0pre (via rvm and with apache bench), it has a lot of weird, random errors. My current hypothesis is this is a bug pertaining to thread safety in Rubinius, but someone suggested I post it here so you could take a look. Tried both ThreadSpawn and ThreadPool. I also made a test for Mongrel (which has similar errors), and Thin (which works fine, but doesn't really utilize threads so it doesn't mean anything). It would also be nice to know which deploy strategy would work well for Rubinius' threading. I wasn't sure if ThreadSpawn or ThreadPool made more sense so I tried both. Cheers! -Kyle _______________________________________________ Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org http://rubyforge.org/mailman/listinfo/rainbows-talk Do not quote signatures (like this one) or top post when replying