Date: Sun, 29 Jun 2008 07:17:58 -0500 From: "Diego F. Arias R." <dak.col@gmail.com> To: freebsd-questions@freebsd.org Subject: Problem With ZFS script Message-ID: <3b93bd110806290517k2050b114g984b9e4186a3beda@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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.....
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3b93bd110806290517k2050b114g984b9e4186a3beda>