pmap->pm_stats.resident_count

2008-08-24 Thread Rao, Nikhil
vm_daemon() looks at pmap->pm_stats.resident_count in the pmap structure using vmspace_resident_count() which calls pmap_resident_count(), pm_stats.resident_count is also incremented for device memory either if the device memory has been mapped using pmap_object_init_pt or using pmap_enter. Since

Multiple page support

2008-08-18 Thread Rao, Nikhil
What is the current status of multiple page sizes for applications (4K and 2MB) in FreeBSD 8-CURRENT ? It is enabled by default for the amd64 arch and only available in the amd64 and i386 architectures. >From reading the source code, there is support for "reservations" as described in the origina

RE: pfind() and the proc structure

2008-04-02 Thread Rao, Nikhil
PROC_LOCK(p); -Original Message- From: Giorgos Keramidas [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2008 10:58 AM To: Rao, Nikhil Cc: Roman Divacky; freebsd-hackers@freebsd.org Subject: Re: pfind() and the proc structure On Tue, 1 Apr 2008 07:23:58 -0700, "Rao, Nikhil" <

RE: pfind() and the proc structure

2008-04-01 Thread Rao, Nikhil
day, April 01, 2008 12:56 AM To: Rao, Nikhil Cc: freebsd-hackers@freebsd.org Subject: Re: pfind() and the proc structure On Mon, Mar 31, 2008 at 11:03:31PM -0700, Rao, Nikhil wrote: > Hi List, > > The pfind(..) (in kern_proc.c) function below returns the proc structure > for the PI

pfind() and the proc structure

2008-03-31 Thread Rao, Nikhil
Hi List, The pfind(..) (in kern_proc.c) function below returns the proc structure for the PID passed in Say the thread that calls pfind() gets blocked at PROC_LOCK(p) (line 255 below), in the meantime what prevents the process from exiting and deallocating the proc structure ? Maybe I am missing

RE: Shared VM address range across processes

2008-03-13 Thread Rao, Nikhil
You still need to add the VA range to the proc->vm_space of every process right ? Nikhil -Original Message- From: John Giacomoni [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 2:50 PM To: Rao, Nikhil Cc: freebsd-hackers@freebsd.org Subject: Re: Shared VM address range acr

RE: Shared VM address range across processes

2008-03-13 Thread Rao, Nikhil
: freebsd-hackers@freebsd.org Cc: Rao, Nikhil Subject: Re: Shared VM address range across processes Nihkil, I'm working on something similar for a research project and the answer is that it is possible but ugly. First, are you sure you need to do this? Ensuring safety by checking pointers b

Shared VM address range across processes

2008-03-12 Thread Rao, Nikhil
Hi, I want to map device memory into the same virtual address range in multiple processes, this means I would have to add a vm_map_entry per address range in every process, since the list of processes can be potentially huge .. Is it allowed to point to the same list of vm_map_entrys from mult