From owner-freebsd-current Mon Jan 3 18:36:33 2000 Delivered-To: freebsd-current@freebsd.org Received: from celery.dragondata.com (celery.dragondata.com [205.253.12.6]) by hub.freebsd.org (Postfix) with ESMTP id BCD5F1536C for ; Mon, 3 Jan 2000 18:36:28 -0800 (PST) (envelope-from toasty@celery.dragondata.com) Received: (from toasty@localhost) by celery.dragondata.com (8.9.3/8.9.3) id UAA34754; Mon, 3 Jan 2000 20:36:07 -0600 (CST) (envelope-from toasty) From: Kevin Day Message-Id: <200001040236.UAA34754@celery.dragondata.com> Subject: Re: 2 hours to compile mysql? To: sasha@mysql.com (Sasha Pachev) Date: Mon, 3 Jan 2000 20:36:07 -0600 (CST) Cc: leif@neland.dk (Leif Neland), monty@tcx.se, paul@snake.net (Paul DuBois), mysql@lists.mysql.com, freebsd-current@FreeBSD.ORG In-Reply-To: <387159A8.C46C69E1@mysql.com> from "Sasha Pachev" at Jan 03, 2000 07:23:36 PM X-Mailer: ELM [version 2.5 PL1] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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