From owner-freebsd-usb@FreeBSD.ORG Wed Mar 4 08:28:39 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF0C1106564A for ; Wed, 4 Mar 2009 08:28:39 +0000 (UTC) (envelope-from man@email.com.ua) Received: from mail.alkar.net (mail.alkar.net [195.248.191.95]) by mx1.freebsd.org (Postfix) with ESMTP id 73D838FC16 for ; Wed, 4 Mar 2009 08:28:39 +0000 (UTC) (envelope-from man@email.com.ua) Received: from [212.86.226.26] (HELO man.alkar.net) by mail.alkar.net (CommuniGate Pro SMTP 5.2.12) with ESMTP id 1886919780; Wed, 04 Mar 2009 10:28:37 +0200 From: Artyom Mirgorodsky To: Hans Petter Selasky Date: Wed, 4 Mar 2009 10:28:36 +0200 User-Agent: KMail/1.11.0 (FreeBSD/7.0-STABLE; KDE/4.2.0; i386; svn-916705; 2009-01-20) References: <200903010045.44904.man@email.com.ua> <200903032006.54451.man@email.com.ua> <200903032243.31914.hselasky@c2i.net> In-Reply-To: <200903032243.31914.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903041028.37027.man@email.com.ua> Cc: freebsd-usb@freebsd.org Subject: Re: Low perfomance when read from usb flash drive X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2009 08:28:40 -0000 >Repeat the same test using FreeBSD -current. >a) On the machine where it is slow. vmstat -i ; sleep 1 ; vmstat -i interrupt total rate irq1: atkbd0 233 2 irq14: ata0 85 0 irq16: vgapci0 5377 52 irq21: hdac0 ohci0 742 7 irq22: nfe0 ehci0 23610 229 irq23: atapci1 5405 52 cpu0: timer 203959 1980 cpu1: timer 200914 1950 Total 440325 4275 interrupt total rate irq1: atkbd0 234 2 irq14: ata0 85 0 irq16: vgapci0 5439 52 irq21: hdac0 ohci0 742 7 irq22: nfe0 ehci0 24621 236 irq23: atapci1 5405 51 cpu0: timer 205981 1980 cpu1: timer 202937 1951 Total 445444 4283 >I think the reduced performance can be explained by a clamp on the interrupt >rate around 1000 interrupts per second instead of 8000. Maybe someone has an >explanation for this? You right, the interrupt rate around 1000 (1011) on this machine, but on FreeBSD 7.1 more 3000. If it is some kind of interrupt aggregation, may be I can try to turn it off? >b) On the machine where it is fast. vmstat -i ; sleep 1 ; vmstat -i interrupt total rate irq4: uart0 4154 0 irq14: ata0 472922 0 irq15: ata1 26 0 irq18: em0 752711 0 irq21: ahc0 53 0 irq23: ehci0 103456 0 irq24: em1 147 0 cpu0: timer 1551216517 2000 cpu1: timer 1551195251 2000 Total 3103745237 4001 interrupt total rate irq4: uart0 4154 0 irq14: ata0 472923 0 irq15: ata1 26 0 irq18: em0 752713 0 irq21: ahc0 53 0 irq23: ehci0 110949 0 irq24: em1 147 0 cpu0: timer 1551218551 2000 cpu1: timer 1551197285 2000 Total 3103756801 4001