From owner-freebsd-questions@FreeBSD.ORG Thu Aug 2 10:52:33 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 617D716A418 for ; Thu, 2 Aug 2007 10:52:33 +0000 (UTC) (envelope-from zbigniew@szalbot.homedns.org) Received: from szalbot.homedns.org (lists.lc-words.com [83.19.156.210]) by mx1.freebsd.org (Postfix) with ESMTP id 064FC13C4A6 for ; Thu, 2 Aug 2007 10:52:33 +0000 (UTC) (envelope-from zbigniew@szalbot.homedns.org) Received: from www (helo=www) by szalbot.homedns.org with local ; Thu, 02 Aug 2007 12:52:20 +0200 To: Nikos Vassiliadis X-PHP-Script: https://poczta.szalbot.homedns.org/index.php for 192.168.11.1 MIME-Version: 1.0 Date: Thu, 2 Aug 2007 12:52:20 +0200 From: Zbigniew Szalbot In-Reply-To: <200708021344.34110.nvass@teledomenet.gr> References: <200708021344.34110.nvass@teledomenet.gr> Message-ID: <29ffef3611266e3465b2ec20c079dc69@szalbot.homedns.org> X-Sender: zbigniew@szalbot.homedns.org User-Agent: RoundCube Webmail/0.1b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org, 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:52:33 -0000 Hello, On Thu, 2 Aug 2007 13:44:33 +0300, Nikos Vassiliadis wrote: > 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. Thanks but that wouldn't record the time, would it? With uptime it is nice to have the current time also recorded and I can compare logs to load by time. -- Zbigniew Szalbot