From owner-freebsd-questions@FreeBSD.ORG Thu Aug 24 14:30:31 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84BED16A4F1 for ; Thu, 24 Aug 2006 14:30:31 +0000 (UTC) (envelope-from freebsd@orchid.homeunix.org) Received: from orchid.homeunix.org (avf195.neoplus.adsl.tpnet.pl [83.27.39.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8752143D45 for ; Thu, 24 Aug 2006 14:30:27 +0000 (GMT) (envelope-from freebsd@orchid.homeunix.org) Received: from [192.168.1.66] (blackacidevil.orchid.homeunix.org [192.168.1.66]) (authenticated bits=0) by orchid.homeunix.org (8.13.6/8.13.6) with ESMTP id k7OEUEJk005412 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 24 Aug 2006 16:30:24 +0200 (CEST) (envelope-from freebsd@orchid.homeunix.org) Message-ID: <44EDB7EE.50604@orchid.homeunix.org> Date: Thu, 24 Aug 2006 16:30:06 +0200 From: Karol Kwiatkowski User-Agent: Thunderbird 1.5.0.5 (X11/20060731) MIME-Version: 1.0 To: Dave Raven References: <022201c6c73c$a9c67a80$c802a8c0@lucy> In-Reply-To: <022201c6c73c$a9c67a80$c802a8c0@lucy> X-Enigmail-Version: 0.94.1.0 OpenPGP: id=06E09309; url=http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig97A7F8A31D32659C08E72565" X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on orchid.homeunix.org X-Virus-Status: Clean Cc: freebsd-questions@freebsd.org Subject: Re: Low Priority Apps X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@orchid.homeunix.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 14:30:31 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig97A7F8A31D32659C08E72565 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 24/08/2006 07:17, Dave Raven wrote: > Hi all, Hi Dave, > I have a FreeBSD 4.x box running an app that uses 30-50% of the > processor. Periodically (through cron) we run a perl app that processes= log > files and inserts the entries to sql. >=20 > This perl + mysql combination is causing problems for our app and I'd l= ike > to run them at a low priority. What nice value should I give them - sho= uld I > lower the value of just the perl, or both, or make the high priority ap= p's > value higher? I'd say make both perl and mysql processes 'nicer', say, both to value of 10 (YMMV, you may want to experiment with it). =46rom your post I'm not sure if you're aware - the lower the value of 'nice' the higher priority the process has. Check getpriority(2) for the details. On the side note, I'm doing it all the time - I can watch tv (with some filters it takes about 20% CPU) perfectly fine while building world with nice =3D20. > Thanks > Dave HTH, Karol --=20 Karol Kwiatkowski OpenPGP: http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc --------------enig97A7F8A31D32659C08E72565 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE7bf2ezeoPAwGIYsRAgArAKCZdIkvAOjuuCBIAWvNZpVPmgyCJQCfasd4 5kw6kKbCDW9+FuEXVugX2ic= =rmt2 -----END PGP SIGNATURE----- --------------enig97A7F8A31D32659C08E72565--