> > Is amount of ram available (portably) to configure?
> > So configure could decide to use --low-memory by itself? Allowing
> > overrides, naturally.
> > 
> > Leif
> > 
> 
> There is actually a method to portably guess how much RAM your have available
> from configure -- just write a small C program that will keep malloc()-ing until
> it gets an error, but I do not think it is worth the effort.
> 
> -- 
> Sasha Pachev


How much ram you have and how much ram+swap you have before you hit your
limit is quite different. :)

# sysctl hw.physmem
hw.physmem: 400883712

This will return the amount of ram you have minus your kernel size, though.
Perhaps helpful if you really want to do this. :)



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to