From owner-freebsd-hackers Sun Sep 30 3:57:40 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from milliways.chance.ru (milliways.chance.ru [195.190.107.35]) by hub.freebsd.org (Postfix) with ESMTP id 2B10B37B408 for ; Sun, 30 Sep 2001 03:57:32 -0700 (PDT) Received: from do-labs.spb.ru (ppp-7.chance.ru [195.190.107.10]) by milliways.chance.ru (8.9.0/8.9.0) with SMTP id OAA03968 for ; Sun, 30 Sep 2001 14:57:28 +0400 (MSD) Received: (qmail 3905 invoked by uid 1000); 30 Sep 2001 15:00:31 -0000 Date: Sun, 30 Sep 2001 15:00:31 +0000 From: Vladimir Dozen To: Alfred Perlstein Cc: Vladimir Dozen , Matt Dillon , Wilko Bulte , hackers@FreeBSD.ORG Subject: Re: VM: dynamic swap remapping (patch) Message-ID: <20010930150031.C284@eix.do-labs.spb.ru> References: <20010929155941.A291@eix.do-labs.spb.ru> <20010929071024.Q59854@elvis.mu.org> <20010929141349.A80876@freebie.xs4all.nl> <200109291653.f8TGrRR37689@earth.backplane.com> <20010929232953.B341@eix.do-labs.spb.ru> <20010929175653.Z59854@elvis.mu.org> <20010930120328.A534@eix.do-labs.spb.ru> <20010930035529.G59854@elvis.mu.org> <20010930134437.B284@eix.do-labs.spb.ru> <20010930044411.I59854@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <20010930044411.I59854@elvis.mu.org>; from bright@mu.org on Sun, Sep 30, 2001 at 04:44:11AM -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ehlo. > You want to submit a patch? If not I can take a look at it, > but it's been a bit since I've looked at the vm system. except for sysctl, the patch is quite simple due to the fact that histeresis is already implemented in swap_pager.c, something like: ============================================ diff vm/swap_pager.c vm.new/swap_pager.c 217a218,219 > struct proc* p; > 218a221,225 > /* warn all processes */ > for( p = allproc.lh_first; p != 0; p = p->p_list.le_next ) > { > psignal(p,SIGDANGER); > } ============================================ ============================================ diff sys/signal.h sys.new/signal.h 105a106,109 > #ifndef _POSIX_SOURCE > #define SIGDANGER 32 /* close to out-of-memory */ > #endif > ============================================ ============================================ diff kern/kern_sig.c kern.new/kern_sig.c 165a166 > SA_IGNORE /* SIGDANGER */ ============================================ -- dozen @ home To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message