From owner-freebsd-questions@FreeBSD.ORG Wed Nov 18 20:59:09 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 950FD1065670 for ; Wed, 18 Nov 2009 20:59:09 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: from mail-qy0-f204.google.com (mail-qy0-f204.google.com [209.85.221.204]) by mx1.freebsd.org (Postfix) with ESMTP id 561C18FC1F for ; Wed, 18 Nov 2009 20:59:09 +0000 (UTC) Received: by qyk42 with SMTP id 42so888963qyk.28 for ; Wed, 18 Nov 2009 12:59:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=I8So850GNywG/YIsEIL0Lyib8VWYJKB3BYF6PD2Uke0=; b=o+bFwLU7oCMN93X46kQKO7t95z9e9dmOZvtFNiiWy+jJ8duzXkWVTFyt+BXS5mOv5e SxdhenfWw0rkjjPjSOl7VS9YgKcQjVm2MU37lg4NODyd4ymXxJE7WPk78p+CBH4nwr5J Gjp9AVSDfrRz3Ru8tXKAcYdZlUTuSeooLayBA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=woI82zqI6L7Ee+/1XFmY41UKNUwhYJTfe2+B/EqAgAPNCCXd02Ibp316Jl6Vyqqnvv 9wdV8r7CrpWqGTgtg/gn5YW9hWtJ9kLKp611EzcYfZROz34nq3mE7kAPhEjDBiNyF3+W e0w/xyNz7SIaSrjjOy6kxSYFLLBilQU/qJY+A= MIME-Version: 1.0 Received: by 10.229.33.201 with SMTP id i9mr1502300qcd.83.1258577948670; Wed, 18 Nov 2009 12:59:08 -0800 (PST) Date: Wed, 18 Nov 2009 12:59:08 -0800 Message-ID: <560f92640911181259m37d2659w775fa3fafd9499b6@mail.gmail.com> From: Nerius Landys To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Measuring disk I/O 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, 18 Nov 2009 20:59:09 -0000 A friend and I are working on a small video-game related project as a hobby. We're running several scripts 24/7 that make lots of calls to a MySQL database. The mysql server process shows an average CPU use of 1% (reported by top) and it never goes above about 2% The tables it's hitting are myisam tables. I'm a little bit worried that the mysql process is using a lot of disk access. I don't know too much about hard disks but my feeling is that too much disk use could slow the machine down or cause a premature hard disk failure. WD Raptor model. I don't know if my concerns are well-founded, but I would like to measure impact on the hard disk somehow. I don't know how to see disk I/O. I do know how to use top. How do I measure disk I/O? Any other thoughts?