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
[-- Attachment #1 --] 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. > > This perl + mysql combination is causing problems for our app and I'd like > to run them at a low priority. What nice value should I give them - should I > lower the value of just the perl, or both, or make the high priority app'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). From 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 =20. > Thanks > Dave HTH, Karol -- Karol Kwiatkowski <freebsd at orchid dot homeunix dot org> OpenPGP: http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc [-- Attachment #2 --] -----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44EDB7EE.50604>
