From owner-freebsd-performance@FreeBSD.ORG Fri Oct 2 17:44:07 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 333CE1065696 for ; Fri, 2 Oct 2009 17:44:07 +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 CB8AE8FC19 for ; Fri, 2 Oct 2009 17:44:06 +0000 (UTC) Received: (qmail 40281 invoked by uid 60001); 2 Oct 2009 17:17:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1254503845; bh=BR07J/+Iv9dzIWCBDv5UL8ROL+fYAtCOLDQhU//7zFg=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=yOJsJ2jAmKX/GTIpQ3+DYf+Cv2ZI9ZLYGlgevZFzN2IU0PxnJJdn6ukhCZVW3XBZ/nEhFYQriPi1guLHFKlH2B0zbpMyOlbJ6zS7J5y+hcI2156UV0NRyss0LlRHOPZsbQsmlBw0ah4xkYO4z1zL4JxqkIdEBaDUpvHIqtUCXn4= 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=kigz5vJoijrU64lcrC84spkVOIWGsiS8nleE5TfwzW7DBgwdoKMa3PJEq4+gBapr4KTZoefCzIwuLLJFIuY/g8RLBQahncD9mowSZQVjU+pM8qZx0hsT1Q5R/PfPtgScTKzsflwbbeeC9aW9QKq9O6ky5ypSfKSSiDMuyQQTkHs=; Message-ID: <969908.40235.qm@web51006.mail.re2.yahoo.com> X-YMail-OSG: cXiXmxgVM1nAGkctbuiWM.Y8ehaYnVrdDWoDv9c.MfjOobhvlgQxEMSXIyKgtQIp53ay.WDPdDc8eA98bU8XIbYJ._kMjaJ6nyXtTQwG.X2zyjXQs55FP9bMjpZLhtRNNNwKUpxmsbMbWdD1EXDMA85hsdyBG9YOTs9Gi2ogvG3KWkVR1zCJ8xfLGVt5vO1GAY3CxbqBSVQLz1LC9q5yJXuJQXhXqK9Ez1dQgrMPhTmHGdZx.FU.8uPjH5TgyY_gHSDdPjUG2IUgNVYGGclkbMX8ciwHQIi737wdwiOxwExNJvapeAQ9k3tqzuHRsQl_nkGRdSEDmbMnU7gGVoXdwf7SRaCEfBBNmXTkhQRiK8hL.DjtJBP_zn3Pme2qnD3Z.2TDdXv7G4QNmqWVfKhDNqW0jGMY4ZQR2f_MIPwibs865mlkwmLyyIs- Received: from [74.40.57.42] by web51006.mail.re2.yahoo.com via HTTP; Fri, 02 Oct 2009 10:17:24 PDT X-Mailer: YahooMailClassic/7.0.14 YahooMailWebService/0.7.347.3 Date: Fri, 2 Oct 2009 10:17:24 -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:44:07 -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 # get baseline time for man command without >= competing i/o=0A>cat big_file > /dev/null=A0=A0=A0# flush man command and d= ata from memory=0A>cat big_file > /dev/null &=A0# generate i/o, attempt to = use up bottleneck=0A>time man de=A0 =A0=A0=A0 # see how much longer man tak= es with competing >i/o=0A=0ATrying it on something that surely will have i/= o issues: PIII 500 w/ 60 GB PATA drive and 128 MB RAM. Blank minimal insta= ll + man pages right now. I'm trying with a "file /etc/" command instead o= f trying to reliably time man... It seems the file command always hits the = disk. This should also make any sort of "flushing" unecessary, shouldn't i= t?=0A=0Aliebnitz# uname -a=0AFreeBSD xyz 7.2-RELEASE FreeBSD 7.2-RELEASE #0= : Fri May 1 08:49:13 UTC 2009 root@walker.cse.buffalo.edu:/usr/obj/usr= /src/sys/GENERIC i386=0A=0Aliebnitz# time dd if=3D/dev/zero of=3D/usr/bigf= ile count=3D4096 bs=3D1M=0A4096+0 records in=0A4096+0 records out=0A4294967= 296 bytes transferred in 363.700967 secs (11809062 bytes/sec)=0A0.055u 83.9= 71s 6:03.78 23.0% 25+1071k 128+34391io 0pf+0w=0A=0Aliebnitz# time file /= etc/ [run 5 times]=0A4.052u 0.047s 0:04.14 98.7% 15+1085k 0+0io 0pf+0w= =0A4.068u 0.031s 0:04.13 99.0% 16+1095k 0+0io 0pf+0w=0A4.052u 0.046s 0:= 04.13 99.0% 16+1101k 0+0io 0pf+0w=0A4.044u 0.054s 0:04.13 99.0% 16+= 1092k 0+0io 0pf+0w=0A4.052u 0.046s 0:04.13 99.0% 15+1091k 0+0io 0pf+0w= =0A=0AOk, so that looks pretty repeatable. Now...=0Aliebnitz# cat /usr/big= file > /dev/null &=0A[1] 37923=0Aliebnitz# time file /etc/* [again run 5 ti= mes]=0A4.146u 0.038s 0:06.80 61.3% 15+1103k 87+0io 8pf+0w=0A4.128u 0.05= 4s 0:06.73 61.9% 15+1095k 93+0io 6pf+0w=0A =0A=0A=0A=0A=0AFlush as exam= ple.=0Aliebnitz# cat /usr/bigfile > /dev/null=0Aliebnitz# cat /usr/bigfile = > /dev/null &=0A[1] 37890=0A=0A=0A=0A