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
[EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message