Date: Sun, 30 Sep 2001 15:00:31 +0000 From: Vladimir Dozen <vladimir-dozen@mail.ru> To: Alfred Perlstein <bright@mu.org> Cc: Vladimir Dozen <vladimir-dozen@mail.ru>, Matt Dillon <dillon@earth.backplane.com>, Wilko Bulte <wkb@freebie.xs4all.nl>, hackers@FreeBSD.ORG Subject: Re: VM: dynamic swap remapping (patch) Message-ID: <20010930150031.C284@eix.do-labs.spb.ru> In-Reply-To: <20010930044411.I59854@elvis.mu.org>; from bright@mu.org on Sun, Sep 30, 2001 at 04:44:11AM -0500 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010930150031.C284>