From owner-freebsd-questions@FreeBSD.ORG Sat Aug 2 12:19:14 2008 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 720051065685 for ; Sat, 2 Aug 2008 12:19:14 +0000 (UTC) (envelope-from fbsd06+YN=336cba11@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id 449F38FC08 for ; Sat, 2 Aug 2008 12:19:14 +0000 (UTC) (envelope-from fbsd06+YN=336cba11@mlists.homeunix.com) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 89E1A23E3E7 for ; Sat, 2 Aug 2008 08:19:12 -0400 (EDT) Date: Sat, 2 Aug 2008 13:19:09 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20080802131909.07ccddab@gumby.homeunix.com.> In-Reply-To: <88DEC8CC-1BBC-4AAA-AECF-0F8736043212@poughkeepsieschools.org> References: <88DEC8CC-1BBC-4AAA-AECF-0F8736043212@poughkeepsieschools.org> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: get periodic to not scan a partition 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: Sat, 02 Aug 2008 12:19:14 -0000 On Sat, 2 Aug 2008 06:22:17 -0400 "B. Cook" wrote: > hello all, > > I have a machine doing backups with backuppc (excellent program btw) > and I have them being stored in /exports > > /dev/ad4s1h 57G 31G 21G 60% /exports > > /dev/ad4s1h on /exports (ufs, local, noatime, soft-updates) > > it is now almost 6:20 am and periodic has been running since 3:01.. > and it will complete in another 4 hours.. > > root 92866 0.6 0.1 3064 1488 ?? D 3:01AM 1:00.93 > find / exports -xdev -type f ( -perm -u+x -or -perm -g+x -or -perm > -o+x ) ( - perm -u+s -or -perm -g+s ) -print0 > > is there something I can do to get periodic to not look in /exports? The above search is looking for setuid binaries, if you mount /exports as noexec and/or nosuid then it wont get searched. You may also need to curtail the locate search as someone already mentioned, although that's only weekly and it only searches directories that the user "nobody" can read. 7 hours does seem a very long time though, these searches only take a few minutes for 1.3TB on my desktop machine, and it's several years old.