From owner-freebsd-questions@FreeBSD.ORG Thu Apr 22 00:33:29 2010 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 7E1A21065677 for ; Thu, 22 Apr 2010 00:33:29 +0000 (UTC) (envelope-from vogelke@hcst.com) Received: from beta.hcst.com (beta.hcst.com [192.52.183.241]) by mx1.freebsd.org (Postfix) with ESMTP id 2CE218FC16 for ; Thu, 22 Apr 2010 00:33:28 +0000 (UTC) Received: from beta.hcst.com (localhost [127.0.0.1]) by beta.hcst.com (8.13.8/8.13.8/Debian-3) with ESMTP id o3M0XSmU007942 for ; Wed, 21 Apr 2010 20:33:28 -0400 Received: (from vogelke@localhost) by beta.hcst.com (8.13.8/8.13.8/Submit) id o3M0XPoe007941; Wed, 21 Apr 2010 20:33:25 -0400 Received: by bsd118.wpafb.af.mil (Postfix, from userid 583) id E4F35BDF4; Wed, 21 Apr 2010 19:56:51 -0400 (EDT) To: freebsd-questions@freebsd.org In-reply-to: <4BCEC689.4030300@infracaninophile.co.uk> (message from Matthew Seaman on Wed, 21 Apr 2010 10:34:01 +0100) Organization: Array Infotech X-Disclaimer: I don't speak for the USAF or Array Infotech. X-GPG-ID: 1024D/711752A0 2006-06-27 Karl Vogel X-GPG-Fingerprint: 56EB 6DBF 4224 C953 F417 CC99 4C7C 7D46 7117 52A0 References: <002c01cae05e$7eab3ea0$7c01bbe0$@wakefield.sch.uk> <20100420183859.C52D9BE09@bsd118.wpafb.af.mil> <86r5m9yk0q.fsf@red.stonehenge.com> <003e01cae12d$b9f2b770$2dd82650$@wakefield.sch.uk> <4BCEC689.4030300@infracaninophile.co.uk> Message-Id: <20100421235651.E4F35BDF4@bsd118.wpafb.af.mil> Date: Wed, 21 Apr 2010 19:56:51 -0400 (EDT) From: vogelke+unix@pobox.com (Karl Vogel) Subject: Re: Kill via Cron... 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: Thu, 22 Apr 2010 00:33:29 -0000 >> On 21/04/2010 09:36:24, mcoyles wrote: M> I'm actually trying to kill the following in one swep if they've taken M> more than 8 hours to complete... : M> 62221 ?? S 0:27.11 gzip -q M> 62223 ?? DL 0:01.80 /sbin/dump -0 -auf - /usr (dump) M> 62224 ?? DL 0:01.79 /sbin/dump -0 -auf - /usr (dump) M> 62225 ?? DL 0:01.81 /sbin/dump -0 -auf - /usr (dump) If they're running under the same process groupid, then sending it a signal via killpg(2) would kill them all. Two things that might help: * The default blocksize (Kb/output block) in dump used to be 10, but you could go as high as 64. Check the -b option. * Use "gzip -1q" for speed at the cost of slightly less compression. "compress -c" also works very well on dump images, and it's fast. -- Karl Vogel I don't speak for the USAF or my company phrasemonger, noun: a person who uses phrases or quotes that were coined by other people. --http://www.wordspy.com/TechWordSpy/