From owner-freebsd-questions@FreeBSD.ORG Wed Aug 17 23:33:12 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB85116A41F for ; Wed, 17 Aug 2005 23:33:12 +0000 (GMT) (envelope-from garys@opusnet.com) Received: from opusnet.com (mail.opusnet.com [209.210.200.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A14143D45 for ; Wed, 17 Aug 2005 23:33:12 +0000 (GMT) (envelope-from garys@opusnet.com) Received: from localhost.localhost [70.98.246.232] by opusnet.com with ESMTP (SMTPD32-8.05) id A934C71F006E; Wed, 17 Aug 2005 16:33:08 -0700 Received: from localhost.localhost (localhost.localhost [127.0.0.1]) by localhost.localhost (8.13.3/8.13.3) with ESMTP id j7HNY6cX076806; Wed, 17 Aug 2005 16:34:06 -0700 (PDT) (envelope-from garys@opusnet.com) Received: (from jojo@localhost) by localhost.localhost (8.13.3/8.13.3/Submit) id j7HNY0N7076805; Wed, 17 Aug 2005 16:34:00 -0700 (PDT) (envelope-from garys@opusnet.com) To: Carstea Catalin References: From: garys@opusnet.com (Gary W. Swearingen) Date: Wed, 17 Aug 2005 16:34:00 -0700 In-Reply-To: (Carstea Catalin's message of "Wed, 17 Aug 2005 13:27:04 -0700") Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.17 (Jumbo Shrimp, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: I need one command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2005 23:33:13 -0000 Carstea Catalin writes: > I run squid on my freebsd box and i need to know the free memory. > In redhat exist a nice command #free to show the free memory. In $ top | grep Mem: Mem: 91M Active, 271M Inact, 91M Wired, 232K Cache, 60M Buf, 45M Free $ top | awk '/Mem:/ { print $12 }' 45M $ vmstat procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 ad2 in sy cs us sy id 2 2 0 207316 46040 47 0 0 0 37 0 0 0 341 485 363 0 0 99 $ vmstat | tail -1 | awk '{ print $5 }' 46040