diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2006-06-21 16:20:06 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2006-06-21 16:20:06 +0000 |
commit | 9a8f5eb89d71175984d0bf3fa601941bcb8bbc1b (patch) | |
tree | c9aa284236c49f3e822b33c425cf48b4ccf8a712 /lib | |
parent | 7e13fccd703da0bc68c2560a3c6687efdafc9273 (diff) |
from netbsd: make anons dynamically allocated from pool.
this results in lesse kva waste due to static preallocation of those
for every phys page and also every swap page.
tested by beck krw miod
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libkvm/kvm_proc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libkvm/kvm_proc.c b/lib/libkvm/kvm_proc.c index 48b269698e3..b44ad1e16e6 100644 --- a/lib/libkvm/kvm_proc.c +++ b/lib/libkvm/kvm_proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_proc.c,v 1.28 2006/03/31 03:59:40 deraadt Exp $ */ +/* $OpenBSD: kvm_proc.c,v 1.29 2006/06/21 16:20:05 mickey Exp $ */ /* $NetBSD: kvm_proc.c,v 1.30 1999/03/24 05:50:50 mrg Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -73,7 +73,7 @@ #if 0 static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93"; #else -static char *rcsid = "$OpenBSD: kvm_proc.c,v 1.28 2006/03/31 03:59:40 deraadt Exp $"; +static char *rcsid = "$OpenBSD: kvm_proc.c,v 1.29 2006/06/21 16:20:05 mickey Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -228,7 +228,7 @@ _kvm_ureadm(kvm_t *kd, const struct miniproc *p, u_long va, u_long *cnt) if (KREAD(kd, addr, &anon)) return (NULL); - addr = (u_long)anon.u.an_page; + addr = (u_long)anon.an_page; if (addr) { if (KREAD(kd, addr, &pg)) return (NULL); |