From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: pi+piham Delivered-To: pi+piham@dcvr.yhbt.net Received: by dcvr.yhbt.net (Postfix, from userid 1000) id 524741F734; Wed, 23 Apr 2014 08:26:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS33070 50.56.128.0/17 X-Spam-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,RDNS_NONE,T_DKIM_INVALID shortcircuit=no autolearn=no version=3.3.2 X-Original-To: normalperson@yhbt.net Delivered-To: ew@dcvr.yhbt.net Received: from rubyforge.org (unknown [50.56.192.79]) by dcvr.yhbt.net (Postfix) with ESMTP id 9DD521F6FD for ; Wed, 23 Apr 2014 02:10:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 42D312E20B; Wed, 23 Apr 2014 02:10:29 +0000 (UTC) X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org Received: from mail-qc0-f178.google.com (mail-qc0-f178.google.com [209.85.216.178]) by rubyforge.org (Postfix) with ESMTP id E5DE72E20A for ; Wed, 23 Apr 2014 02:10:22 +0000 (UTC) Received: by mail-qc0-f178.google.com with SMTP id i8so328812qcq.9 for ; Tue, 22 Apr 2014 19:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=5zVHPqsnU9O8veRC9VlSU7ThnurZOMn69OF5Zq0McLo=; b=fbCP1sZ24pC09b0jYOI36vgndCr0hsN6aBiKyCF3thjDfmSh1HG8WF2kyN1T5l3CxP BpvrMuvWP4NUy5HE/4nEWl8CcIu7feNdis8Lv5dzOOFhmWKcWqJdtLQ9mCLnOCtoQmta lXwRvoN9/QFuK05o1hpzyQ+p583dmK0mBFtpoazqdwJh060zdFRiLK+nq5cU63pjn//W YOINQpvusomPXggeMbAGviQ8ddpCGNpLJZbYKK+3aAM4Soqp9BsFTfe/agZ7U9E9sVQX lu0VnLhvYSLnfKGf5f2r2tALmiZloAIICZDPTnJ7XezDadUK/7kfH05ONJC/LVwGMv1J OwbA== MIME-Version: 1.0 X-Received: by 10.140.87.207 with SMTP id r73mr7255158qgd.110.1398218642950; Tue, 22 Apr 2014 19:04:02 -0700 (PDT) Received: by 10.229.28.138 with HTTP; Tue, 22 Apr 2014 19:04:02 -0700 (PDT) In-Reply-To: References: Date: Wed, 23 Apr 2014 12:04:02 +1000 Message-ID: Subject: Re: Is there a cleaner way of hooking into the event loop? From: Sam Saffron To: unicorn list X-BeenThere: mongrel-unicorn@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: unicorn list List-Id: unicorn list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: mongrel-unicorn-bounces@rubyforge.org Errors-To: mongrel-unicorn-bounces@rubyforge.org "like a significant premature optimization." Funny, tell that to the people freaking out about Discourse's minimum RAM requirements :), it clearly saves 50-60MB on PSS which is pretty handy. On Wed, Apr 23, 2014 at 11:30 AM, Michael Fischer wrote: > On Tue, Apr 22, 2014 at 6:21 PM, Sam Saffron wrote: >> I am spawning sidekiqs from the master process so I share memory >> better, added this patch >> >> https://github.com/discourse/discourse/commit/4aaedb82d09d53159a99c3c94c0232c3cf5b0725 >> >> Thing is I need to be in the master thread for both checks and >> spawning cause of this https://bugs.ruby-lang.org/issues/9751 >> >> Is there a cleaner way to hook in? > > >From an operational perspective this seems like a significant > premature optimization. I'd think twice before doing it. IME you > really don't want asynchronous job handling in the same process space > as a synchronous preforking webserver. Best to keep your concerns > separated. And RAM is cheap. > > --Michael > _______________________________________________ > Unicorn mailing list - mongrel-unicorn@rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-unicorn > Do not quote signatures (like this one) or top post when replying _______________________________________________ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying