Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jan 2000 20:36:07 -0600 (CST)
From:      Kevin Day <toasty@dragondata.com>
To:        sasha@mysql.com (Sasha Pachev)
Cc:        leif@neland.dk (Leif Neland), monty@tcx.se, paul@snake.net (Paul DuBois), mysql@lists.mysql.com, freebsd-current@FreeBSD.ORG
Subject:   Re: 2 hours to compile mysql?
Message-ID:  <200001040236.UAA34754@celery.dragondata.com>
In-Reply-To: <387159A8.C46C69E1@mysql.com> from "Sasha Pachev" at Jan 03, 2000 07:23:36 PM

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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 majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001040236.UAA34754>