From owner-freebsd-questions@FreeBSD.ORG Thu Aug 2 10:45:27 2007 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 27B4216A41F for ; Thu, 2 Aug 2007 10:45:27 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from smtp.teledomenet.gr (smtp.teledomenet.gr [213.142.128.2]) by mx1.freebsd.org (Postfix) with ESMTP id 7D0D913C45A for ; Thu, 2 Aug 2007 10:45:26 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from iris (unknown [192.168.1.71]) by smtp.teledomenet.gr (Postfix) with ESMTP id AABCA1420CA; Thu, 2 Aug 2007 13:43:35 +0300 (EEST) From: Nikos Vassiliadis To: freebsd-questions@freebsd.org Date: Thu, 2 Aug 2007 13:44:33 +0300 User-Agent: KMail/1.9.1 References: <45aa0f1ea2aa8ccfedf482bc63ea8723@szalbot.homedns.org> <200707251950.16938.idiotbg@gmail.com> In-Reply-To: <200707251950.16938.idiotbg@gmail.com> X-NCC-RegID: gr.telehouse MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200708021344.34110.nvass@teledomenet.gr> Cc: Zbigniew Szalbot , Momchil Ivanov Subject: Re: logging system load 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: Thu, 02 Aug 2007 10:45:27 -0000 On Wednesday 25 July 2007 20:50, Momchil Ivanov wrote: > На Wednesday 25 July 2007 19:38:41 Zbigniew Szalbot написа: > > Dear all, > > > > Is there a tool similar to top which would measure system load and > > write it to a file that could later be analyzed? The time when my > > system is most loaded happens between 3 and 5 a.m. so a trace of the > > system load would be a wonderful thing to have. I need it to tailor > > some of the jobs accordingly. Any advice? > > > > Thanks in advance! > > You can make a cronjob doing "uptime >> /path/to/logfile" every minute Or perhaps "sysctl -n vm.loadavg" instead of uptime, which is the same information, but requires less scrubbing. Nikos