From owner-freebsd-performance@FreeBSD.ORG Fri Oct 2 17:29:51 2009 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43FD41065670 for ; Fri, 2 Oct 2009 17:29:51 +0000 (UTC) (envelope-from mahlerrd@yahoo.com) Received: from web51006.mail.re2.yahoo.com (web51006.mail.re2.yahoo.com [206.190.38.137]) by mx1.freebsd.org (Postfix) with SMTP id 00C068FC2B for ; Fri, 2 Oct 2009 17:29:50 +0000 (UTC) Received: (qmail 45683 invoked by uid 60001); 2 Oct 2009 17:29:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1254504590; bh=+Se53H9QsuJ1b3z2/BoWZIsAAgg1OUzQ9vFzJ+xk8o4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=kTdQUOQuNvPvugqy0vPuFld2uhI6nuCoIRsDE4hsESreagK51H/14Uolc4gKRrRvDRoKKrBr5qW4BLijvpMOkUzsthgI2PUaA7u69wp7nWjpqd1xGeBrgfBzbp0EoWbM9RbXhyCAdvbyUcZZllbnl/xgMD0eLn77X0d/DCgvc6o= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=I1ZXGhdchtuWdGenn1xQpfePAJC0pZt8yaaDBdyVDjafI4fKlKxxmONOPiW+Fj6ZM6sRMkLwyAvQfyTQLCceVof1mriam9sSb/iEi38fg3XRTm+lm8bF7pKfjXwp4zYfmNmxMadeQFkOwr3AyGcYQiAYqYLY7blTTwxc5hQ4W7k=; Message-ID: <160343.45338.qm@web51006.mail.re2.yahoo.com> X-YMail-OSG: 67hAajcVM1m5kdXdfxDLIVDxjCnZ1BhWpdQjPcCHcENSzX8v2A6YLFTaPlQy5VBEe2q.Rs._IDw6UyA8zpa69iiAhjXgdhA.wBx664WBcfCHPaH8OOtTQWOjnLaBgSpOXPvUv1_PIXhfU1izd99EG4Rc42B5U0UA5mSXx5U27ez2Bs93vLNMiCxbPgwTSuF2cfkKnHGTH_NXDbzD_nxpX6v6tZtJ5mob3SesqY8J4rJFvuP2ONzH7v0yO6wfxKdflOzGJLnNespeJb3c4vcXGf.fIcXCq6AKyPGEo.w6guO7gCR8nwV8l5jfHP5Dz9kwuGI4t3DAPqIE_Xe8gRharQG8ZAE7FtS.YMg4kvtHEnaknogHLfgz5pX1oD6has4405N7NBWyQcnsqaKGVXH_E5fzTMw- Received: from [74.40.57.42] by web51006.mail.re2.yahoo.com via HTTP; Fri, 02 Oct 2009 10:29:50 PDT X-Mailer: YahooMailClassic/7.0.14 YahooMailWebService/0.7.347.3 Date: Fri, 2 Oct 2009 10:29:50 -0700 (PDT) From: Richard Mahlerwein To: freebsd-performance@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: A specific example of a disk i/o problem X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mahlerrd@yahoo.com List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Oct 2009 17:29:51 -0000 >From: Dieter =0A>Subject: Re: A specific exa= mple of a disk i/o problem=0A>To: freebsd-performance@freebsd.org=0A>Date: = Friday, October 2, 2009, 1:07 AM=0A>=0A>Updated demo, just to make sure:=0A= >=0A># big_file is larger than main memory, on same disk as man (/usr)=0A>t= ime man de=A0=A0=A0 =A0=A0=A0 =0A>cat big_file > /dev/null=A0=A0=A0=0A>cat = big_file > /dev/null &=A0=0A>time man de=0A=0ATrying it on something that s= urely will have i/o issues:=0APIII 500 w/ 60 GB PATA drive and 256 MB RAM.= =A0 Blank=0Aminimal install + man pages right now.=A0 I'm trying with=0Aa "= file /etc/" command instead of trying to reliably time=0Aman... It seems th= e file command always hits the disk.=A0=0AThis should also make any sort of= "flushing" unecessary,=0Ashouldn't it? Anyway, I tried it with the man co= mmand but couldn't discern any difference at all with it, so I'm repeating = with "file" which at least gives SOME variance.=0A =0Aliebnitz# uname -a=0A= FreeBSD xyz 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May=A0 1 08:49:13 UTC 2= 009=A0 =A0=A0=A0root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC=A0= =0Ai386=0A=0Aliebnitz# time dd if=3D/dev/zero of=3D/usr/bigfile count=3D409= 6 bs=3D1M=0A4096+0 records in=0A4096+0 records out=0A4294967296 bytes trans= ferred in 363.700967 secs (11809062 bytes/sec)=0A0.055u 83.971s 6:03.78 23.= 0%=A0 =A0 25+1071k 128+34391io 0pf+0w=0A=0Aliebnitz# time file /etc/ [run 5= times]=0A4.052u 0.047s 0:04.14 98.7%=A0 =A0=A015+1085k 0+0io 0pf+0w=0A4.06= 8u 0.031s 0:04.13 99.0%=A0=A0=A0=A016+1095k 0+0io 0pf+0w=0A4.052u 0.046s 0:= 04.13 99.0%=A0=A0=A0=A016+1101k 0+0io 0pf+0w=0A4.044u 0.054s 0:04.13 99.0%= =A0=A0=A0=A016+1092k 0+0io 0pf+0w=0A4.052u 0.046s 0:04.13 99.0%=A0=A0=A0=A0= 15+1091k 0+0io 0pf+0w=0A=0AOk, so that looks pretty repeatable.=A0 Now...= =0A=0Aliebnitz# cat /usr/bigfile > /dev/null &=0A[1] 37923=0Aliebnitz# time= file /etc/* [again run 5 times]=0A4.146u 0.038s 0:06.80 61.3%=A0=A0=A0=A01= 5+1103k 87+0io 8pf+0w=0A4.128u 0.054s 0:06.73 61.9%=A0=A0=A0=A015+1095k 93+= 0io 6pf+0w=0A4.127u 0.056s 0:06.65 62.7% 14+1058k 88+0io 4pf+0w=0A4.111u= 0.072s 0:06.84 61.1% 15+1049k 91+0io 6pf+0w=0A4.115u 0.066s 0:06.86 60.= 7% 15+1022k 91+0io 6pf+0w=0A=0ABTW, after the cat is done...=0Aliebnitz#= time file /etc/*=0A4.051u 0.047s 0:04.13 99.0% 15+1078k 0+0io 0pf+0w= =0A=0AI see no unexpected issues, only a minor slowdown, and that could be = processer contention, IMO. =0A=0A(Sorry for duplicate, I was rewriting wit= h the change to "file" instead of "man" and the two year old decided to pre= ss some keys and sent the message.)=0A=0A=0A