Date: Fri, 8 Oct 1999 15:36:47 -0500 From: Dan Nelson <dnelson@emsphone.com> To: Mike Smith <mike@smith.net.au> Cc: Zhihui Zhang <zzhang@cs.binghamton.edu>, freebsd-hackers@FreeBSD.ORG Subject: Re: Questions regarding memory usage Message-ID: <19991008153647.A76552@dan.emsphone.com> In-Reply-To: <199910081910.MAA01047@dingo.cdrom.com> References: <Pine.GSO.3.96.991008145353.22257B-100000@sol.cs.binghamton.edu> <199910081910.MAA01047@dingo.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Oct 08), Mike Smith said: > > > > Does FreeBSD have the following features: > > > > (1) Limit the physical memory it uses even if the machine has larger > > memory without having to pull out the memory chip physically. This should > > be done at the boot time. > > In -current and (I think) -stable, you can set the 'hw.physmem' tunable > in the loader. See 'help set tunables' in the loader, or read > /boot/loader.help. > > > (2) Tell if a particular program has ever been swapped out. > > There is no trivial way to determine this, no. > The getrusage() function returns a structure with the follwing field in it: ru_nswap the number of times a process was swapped out of main memory. Would this do the trick? It only works for yourself or your child processes though. -- Dan Nelson dnelson@emsphone.com 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?19991008153647.A76552>