Subject: Re: UPAGES on sparc? [was: pkg/8728: lavaps broken on sparc (fwd)]
To: Chris G. Demetriou <cgd@netbsd.org>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: tech-kern
Date: 11/02/1999 03:12:54
On 1 Nov 1999, Chris G. Demetriou wrote:
> you want to use USPACE rather than UPAGES * NBPG.

Um, I'm not familiar with that code, it doesn't read UPAGES*NBPG but
rather:

#if __FreeBSD__ < 3
        size = UPAGES + cur_kp_->kp_eproc.e_vm.vm_tsize 
                + cur_kp_->kp_eproc.e_vm.vm_dsize
                + cur_kp_->kp_eproc.e_vm.vm_ssize;
        pm->set_virtual_size(pages_to_kb(size));
#else
        // under FreeBSD 3.0 and higher, ps uses this value, which is
        // kept in bytes 
        size = UPAGES + cur_kp_->kp_eproc.e_vm.vm_map.size/1024;
        pm->set_virtual_size(size);
#endif 
        resident = UPAGES + cur_kp_->kp_eproc.e_vm.vm_rssize;

        pm->set_resident(pages_to_kb(resident));


Right now __FreeBSD__ is unset, so the first case should be used. 
Any ideas/patches against process_scan_freebsd.cc ?


 - Hubert

-- 
NetBSD - Better for your uptime than Viagra