From owner-freebsd-questions Fri Jun 14 14:16:11 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA18495 for questions-outgoing; Fri, 14 Jun 1996 14:16:11 -0700 (PDT) Received: from mistery.mcafee.com (jimd@mistery.mcafee.com [192.187.128.69]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id OAA18461 for ; Fri, 14 Jun 1996 14:16:01 -0700 (PDT) Received: (from jimd@localhost) by mistery.mcafee.com (8.6.11/8.6.9) id OAA17660; Mon, 14 Jun 2010 14:19:37 -0700 From: Jim Dennis Message-Id: <201006142119.OAA17660@mistery.mcafee.com> Subject: Re: swapper To: khetan@iafrica.com (Khetan Gajjar) Date: Mon, 14 Jun 110 14:19:36 -0700 (PDT) Cc: jimd@mcafee.com, questions@freebsd.org In-Reply-To: from "Khetan Gajjar" at Jun 14, 96 11:10:46 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > On Mon, 14 Jun 110, Jim Dennis wrote: > > > Please tell me more about this syntax. > > There's nothing to it, really. kill -1 hups a process, > and swapper runs as process 0. Therefore kill -1 0 as root will hup > the swapper and restart it (effectively). It'll kill your current session, > but hey.... Ahhh! -- that's what I thought it would do. That's why I've never tried it (I hate killing my connections -- and I hate killing *everyone's* connections even more). I misunderstood your message and thought you were giving us a way to selectively kill just the processes that are swapped to disk (some special signal handling in the 'swapper'). > > > Where could I read more about this? > > I couldn't find anything about it. One of the ugu (unix gurus) I know > does it. Considering the side effects I don't see the advantage over just restarting the whole machine.