From owner-freebsd-questions@FreeBSD.ORG Wed Mar 21 01:23:12 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BFB5216A408 for ; Wed, 21 Mar 2007 01:23:12 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by mx1.freebsd.org (Postfix) with ESMTP id 9E32B13C4C6 for ; Wed, 21 Mar 2007 01:23:12 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.141] (may be forged)) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l2L1NCvd009525 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 20 Mar 2007 18:23:12 -0700 X-Auth-Received: from [192.168.10.41] (c-67-187-172-183.hsd1.ca.comcast.net [67.187.172.183]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l2L1NAjI020450 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 20 Mar 2007 18:23:11 -0700 Message-ID: <460088FA.6050703@u.washington.edu> Date: Tue, 20 Mar 2007 18:23:06 -0700 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.10 (X11/20070316) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20070321003056.GA66954@thought.org> In-Reply-To: <20070321003056.GA66954@thought.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.3.20.181433 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: How-to reprio gcc (by default)? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2007 01:23:12 -0000 Gary Kline wrote: > Guys, > > This may grab some interest from those running dog-slow servers > and using a GUI env. (Gotta fess up and admit it took me a > couple years in the late 80's before I would touch Sun's NeWS. > Then I got hooked on using multiple xterms; the rest is history.) > > Unless I'm having severe delusions, by tweaking the NICE > priorities on a bunch on std and added binaries, on my 400MHz. > Kayak (with gnome-lite), I'm getting good performance. Later > this year (or whenever hands can help me rob my junk Kayak's > memory) I'll boost the SRAM from 192 to 512MB. That ought to > allow me to run even more smoothly. > > The tuning so far has been done entirely by-hand. One example is > setting the sendmail priority from a nice of 0 down to 7. I've > nice'd xload down to 20; increased firefox to -17, and so forth. > top runs very well niced at 19 with "-s5". And it does keep the > 5-second update fairly well. I don't care about knowing what > the system is doing every second (or default two seconds). But > it's nice to know how things are generally going. ....So now for > some questions: I'm thinking of writing a script that, once it > know that X is running (and gnome/kde/<> is in the > table) will re-nice everything to my tastes. Is there any way of > setting things to run at a lower or higher nice value, other than > by-hand or by-script? Since I'm not that concerned with having a > port built in K minutes or N hours (or M days :-(), can I set gcc > down to 5 or 7 or whatever value? Any kernel hackers or *real* > sysadmins who can clue me in? > > If my backup server is still running in a few month, I'll write > up an article on "system tuning" and put it on my BSD site. > > thanks for any/all thoughts, > > gary Gary, Seems like /etc/login.conf is the winner if you're looking into setting the global priority to something a bit lower :).. but if everything runs at the same priority won't all your processes be slow at the same speed :)? -Garrett