From owner-freebsd-questions@FreeBSD.ORG Sun Jun 29 12:44:07 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85D5D1065674 for ; Sun, 29 Jun 2008 12:44:07 +0000 (UTC) (envelope-from dak.col@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by mx1.freebsd.org (Postfix) with ESMTP id 5D7468FC16 for ; Sun, 29 Jun 2008 12:44:07 +0000 (UTC) (envelope-from dak.col@gmail.com) Received: by wa-out-1112.google.com with SMTP id j4so794146wah.3 for ; Sun, 29 Jun 2008 05:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=SoFSbY5C6OaLBB5TK+Ld/ucgBc7eJYua5gEG/zK2Abc=; b=FgSvsxcfybgwvY0zVQenWNUod3mkY+sfrCHqnfYi13dl8lwl7G0IxwHaLIMl2NhoiR 4eRwq/OR6yxcw6QYUhR/X6BIZ4uIubvK8gCIP7V/y+BX6GfoXiWvH9T9fdeAmJrWe0Xp 8lJp1WJvTXOpw0/cewFGHB8IFfy6FQKsxl0o4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=EGi1LwxLnrLVA/nM2QzqwWpWSGPzEy4HgiBBjDyUHb5gf81r39v7uqq/qkK9VFscMO 3fXAuB1O/Jb+1Zfo9xl3IEy6R9caCaSqBQRRy8Oxej7i+j0XnG3LjRDbMKQhiHF3IqUR uUq2QNUmqh/XvXbn/FexzF1JNZsIZLdEQZ2Ys= Received: by 10.114.25.3 with SMTP id 3mr3110688way.22.1214741879117; Sun, 29 Jun 2008 05:17:59 -0700 (PDT) Received: by 10.114.127.18 with HTTP; Sun, 29 Jun 2008 05:17:58 -0700 (PDT) Message-ID: <3b93bd110806290517k2050b114g984b9e4186a3beda@mail.gmail.com> Date: Sun, 29 Jun 2008 07:17:58 -0500 From: "Diego F. Arias R." To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Problem With ZFS script 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: Sun, 29 Jun 2008 12:44:07 -0000 Hi: Im testing the new ZFS feature on freebsd. On the page i got a script to monitor kernel memory but the script dont works. --------------------------------------------------------------------------------------------------------------------------------------------------- #!/bin/sh - TEXT=kldstat | tr a-f A-F | awk 'BEGIN {print "ibase=16"}; NR > 1 {print $4}' | bc | awk '{a+=$1}; END {print a}' DATA=vmstat -m | sed 's/K//' | awk '{a+=$3}; END {print a*1024}' TOTAL=echo $DATA $TEXT | awk '{print $1+$2}' echo TEXT=$TEXT, echo $TEXT | awk '{print $1/1048576 " MB"}' echo DATA=$DATA, echo $DATA | awk '{print $1/1048576 " MB"}' echo TOTAL=$TOTAL, echo $TOTAL | awk '{print $1/1048576 " MB"}' --------------------------------------------------------------------------------------------------------------------------------------------------- link: http://wiki.freebsd.org/ZFSTuningGuide the error i got is freebsd# ./kernmem.sh -m: not found Thanks. -- mmm, interesante.....