From owner-freebsd-questions@FreeBSD.ORG Thu Mar 12 01:32:09 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DD0048E1 for ; Thu, 12 Mar 2015 01:32:09 +0000 (UTC) Received: from smtp2.hushmail.com (smtp2.hushmail.com [65.39.178.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.hushmail.com", Issuer "smtp.hushmail.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C0987D86 for ; Thu, 12 Mar 2015 01:32:09 +0000 (UTC) Received: from smtp2.hushmail.com (localhost [127.0.0.1]) by smtp2.hushmail.com (Postfix) with SMTP id 7AD24A0182 for ; Thu, 12 Mar 2015 01:32:08 +0000 (UTC) Received: from smtp.hushmail.com (w2.hushmail.com [65.39.178.46]) by smtp2.hushmail.com (Postfix) with ESMTP; Thu, 12 Mar 2015 01:32:08 +0000 (UTC) Received: by smtp.hushmail.com (Postfix, from userid 99) id 66869E0403; Thu, 12 Mar 2015 01:32:08 +0000 (UTC) MIME-Version: 1.0 Date: Thu, 12 Mar 2015 01:32:08 +0000 To: "Roland Smith" Subject: Re: Limiting CPU on some processes on web server From: opendaddy@hushmail.com In-Reply-To: <20150311194628.GB8178@slackbox.erewhon.home> References: <20150311122656.96F2020341@smtp.hushmail.com> <20150311194628.GB8178@slackbox.erewhon.home> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="UTF-8" Message-Id: <20150312013208.66869E0403@smtp.hushmail.com> Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2015 01:32:09 -0000 Hi, On 11. mars 2015 at 7:37 PM, "Roland Smith" wrote: > >*How* does the web app actually start those programs? Unfortunately I'm getting the same 100% if I run ImageMagick / ffmpeg separately. >Have you verified with `ps -l` (or `ps -xal`) that the ffmeg and >convert processes are actually running at a lower priority? No, but isn't this whole nice thing a dead end? Often times when ImageMagick / ffmpeg run there are no competing processes (ie. no visitors). But then if a visitor appears while ImageMagick / ffmpeg is running, it is already too late. >Run you web app stack with a higher priority. I'll look into it. A lot of great advice here, thanks a lot! O.D. > >Roland >-- >R.F.Smith >http://rsmith.home.xs4all.nl/ >[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much >appreciated] >pgp: 5753 3324 1661 B0FE 8D93 FCED 40F6 D5DC A38A 33E0 (keyID: >A38A33E0)