Date: Thu, 24 Aug 2006 16:30:06 +0200 From: Karol Kwiatkowski <freebsd@orchid.homeunix.org> To: Dave Raven <dave@raven.za.net> Cc: freebsd-questions@freebsd.org Subject: Re: Low Priority Apps Message-ID: <44EDB7EE.50604@orchid.homeunix.org> In-Reply-To: <022201c6c73c$a9c67a80$c802a8c0@lucy> References: <022201c6c73c$a9c67a80$c802a8c0@lucy>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <freebsd at orchid dot homeunix dot org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44EDB7EE.50604>