From owner-freebsd-questions@FreeBSD.ORG Tue Apr 3 08:12:17 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06BCA1065672 for ; Tue, 3 Apr 2012 08:12:17 +0000 (UTC) (envelope-from docteur.blue@gmail.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id D2A828FC26 for ; Tue, 3 Apr 2012 08:12:16 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SEyqe-0004eZ-7N for freebsd-questions@freebsd.org; Tue, 03 Apr 2012 01:12:16 -0700 Date: Tue, 3 Apr 2012 01:12:16 -0700 (PDT) From: docblue To: freebsd-questions@freebsd.org Message-ID: <1333440736218-5614491.post@n5.nabble.com> In-Reply-To: References: <20120215165738.75518ea9@cox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: How to prevent gam_server from running? 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: Tue, 03 Apr 2012 08:12:17 -0000 Hi, is not a "system-level" service per se : it is not started via a well-defined /etc/rc.d/xxx or /usr/local/etc/rc.d script. Contrary to that, it is a "user-level" service started on-demand by other mechanisms, most often desktop related. Like polkit stuff. Therefore, it is not per se which is responsible for intensive CPU consumption, but rather whatever mechanism services higher in the stack that are launching it on their behalf to monitor files/directories activity. For instance, konqueror, dolphin, as well as many other file-related desktop apps, launch a instance to monitor on their behalf what's going on wherever they are looking at, so they can reflect file/dir changes in (almost) real-time. So they do not do polling themselves. What I did in my system (a PC-BSD running KDE) was to chmod o-rx any executable file related to polkit, akonadi, nepomuk, striggi, virtuoso : find -x / -type f -perm +0111 \( -name '*polkit*' -or -name '*nepomuk*' ... \) -print0 | xargs -0 chmod a-rx {} \; Then I would stop any remaining unnecessary running service. This served quite well for me, and things got much much better, though I never checked wether the apps were happy or not about my violent command. As a buzzy developer, I should confess that I do not care too much at all about most of the desktop apps (be KDE or Gnome), and mostly enjoy resorting to using Firefox, Thunderbird, Libreoffice, Evince and Konsole (I have loved this one for almost a decade) where I run tabs and Vim :) (I mostly never use any file wiewer, konqueror or Dolphin). So your mileage may vary ! In all case, please refrain from applying shutting down the gam_server file itself, or you will end-up having a really unusable system. It's better IMO to apply a fine-grained control wherever and as much as possible, identifying which app uses and decide on a case by case approach what to do. Of course, this is a tedious time-consuming unproductive job, but the price is a smoother system. Cheers, Franck Porcher -- View this message in context: http://freebsd.1045724.n5.nabble.com/How-to-prevent-gam-server-from-running-tp5487726p5614491.html Sent from the freebsd-questions mailing list archive at Nabble.com.