From owner-freebsd-drivers@FreeBSD.ORG Mon May 17 21:51:11 2010 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5232106566C for ; Mon, 17 May 2010 21:51:11 +0000 (UTC) (envelope-from dieterbsd@engineer.com) Received: from imr-ma04.mx.aol.com (imr-ma04.mx.aol.com [64.12.206.42]) by mx1.freebsd.org (Postfix) with ESMTP id A67C08FC08 for ; Mon, 17 May 2010 21:51:11 +0000 (UTC) Received: from imo-da04.mx.aol.com (imo-da04.mx.aol.com [205.188.169.202]) by imr-ma04.mx.aol.com (8.14.1/8.14.1) with ESMTP id o4HLf5le026929 for ; Mon, 17 May 2010 17:41:05 -0400 Received: from dieterbsd@engineer.com by imo-da04.mx.aol.com (mail_out_v42.9.) id n.df0.6a75e30 (43999) for ; Mon, 17 May 2010 17:41:04 -0400 (EDT) Received: from smtprly-me02.mx.aol.com (smtprly-me02.mx.aol.com [64.12.95.103]) by cia-dd06.mx.aol.com (v129.4) with ESMTP id MAILCIADD068-b2ca4bf1b7e337c; Mon, 17 May 2010 17:41:04 -0400 Received: from web-mmc-m09 (web-mmc-m09.sim.aol.com [64.12.224.142]) by smtprly-me02.mx.aol.com (v129.4) with ESMTP id MAILSMTPRLYME024-b2ca4bf1b7e337c; Mon, 17 May 2010 17:40:51 -0400 To: freebsd-drivers@freebsd.org Content-Transfer-Encoding: quoted-printable Date: Mon, 17 May 2010 17:40:51 -0400 X-MB-Message-Source: WebUI X-AOL-IP: 72.251.79.159 X-MB-Message-Type: User MIME-Version: 1.0 From: dieterbsd@engineer.com Content-Type: text/plain; charset="us-ascii"; format=flowed X-Mailer: Mail.com Webmail 31650-STANDARD Received: from 72.251.79.159 by web-mmc-m09.sysops.aol.com (64.12.224.142) with HTTP (WebMailUI); Mon, 17 May 2010 17:40:51 -0400 Message-Id: <8CCC420C1490C4B-1B6C-360B@web-mmc-m09.sysops.aol.com> X-Spam-Flag: NO X-AOL-SENDER: dieterbsd@engineer.com Subject: NCQ for nforce4-ultra? X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 May 2010 21:51:12 -0000 FreeBSD 8.0 amd64 FFS w/softdeps Performance writing a single file: device r/s w/s kr/s kw/s wait svc_t %b ada5 2.5 728.0 40.0 93184.1 7 5.5 76 Copy 4 files from 4 disks to one disk, to test write performance when seeking: device r/s w/s kr/s kw/s wait svc_t %b ada5 2.0 556.4 32.0 71213.9 44 114.1 100 NCQ is helping even more than I expected. Without NCQ, write speed runs only 6-7 MB/s writing a single file (minimal seeking). I don't want to think about how slow it would be trying to write multiple files at once. Plus, writing to a non-NCQ disk affects unrelated processes accessing other disks. My theory is that the buffer cache gets clogged up. This destroys the performance of the entire system. Processes hang for tens of minutes. Unfortunately, neither achi(4) nor siis(4) support the nforce4-ultra chipset. Is there a driver I can load to get NCQ with the=20 nforce4-ultra? From owner-freebsd-drivers@FreeBSD.ORG Tue May 18 08:49:35 2010 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8F36106564A for ; Tue, 18 May 2010 08:49:35 +0000 (UTC) (envelope-from indranil@virident.com) Received: from caexchgw.virident.com (caexchgw.virident.com [209.31.25.116]) by mx1.freebsd.org (Postfix) with ESMTP id 865508FC1A for ; Tue, 18 May 2010 08:49:35 +0000 (UTC) Received: from caexch1.virident.info ([172.16.32.15]) by caexchgw.virident.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 18 May 2010 01:49:29 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Tue, 18 May 2010 01:49:26 -0700 Message-ID: <28631E6913C8074E95A698E8AC93D09101B5C093@caexch1.virident.info> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Storage driver design question Thread-Index: Acr2ZwVszeFegUKXQJi2HRY2mOrGpA== From: "Indranil Bhattacharya" To: X-OriginalArrivalTime: 18 May 2010 08:49:29.0870 (UTC) FILETIME=[075732E0:01CAF667] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Storage driver design question X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 May 2010 08:49:35 -0000 Hi, =20 I am writing the driver for a storage device on the latest freebsd kernel. The device will sit on the PCIe bus.=20 As a starting point; I have written a very simple memory-disk driver that implements a geom-class. It implements the init() method by writing & reading from memory (that it has earlier allocated) as part of BIO_WRITE & BIO_READ respectively. I am able to create a filesystem on this driver & read/write files on this filesystem. I am also writing a PCI driver for the actual hardware device. Once that is done, I will modify the memory-disk driver to talk to this PCI driver instead of just operating from memory. Does this look like a correct design ? Or should the entry point to my driver sit somewhere else in the I/O stack ? =20 Thanks in advance, Indranil=20 =20 =20 From owner-freebsd-drivers@FreeBSD.ORG Thu May 20 11:34:37 2010 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2CB561065672 for ; Thu, 20 May 2010 11:34:37 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 0A7628FC1E for ; Thu, 20 May 2010 11:34:36 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OF3i4-0000iK-Vz for freebsd-drivers@freebsd.org; Thu, 20 May 2010 04:14:40 -0700 Message-ID: <28619788.post@talk.nabble.com> Date: Thu, 20 May 2010 04:14:40 -0700 (PDT) From: Pavel Timofeev To: freebsd-drivers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: timp87@gmail.com Subject: snd_ich and Gens X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2010 11:34:37 -0000 Hi everyone! I found the problem a long time ago, but only now writing about it. My computer (with motherboard asus p4p800-vm) has a sound card. [root@timbsd ~]# dmesg | grep pcm pcm0: port 0xe800-0xe8ff,0xee80-0xeebf mem 0xfebff800-0xfebff9ff,0xfebff400-0xfebff4ff irq 17 at device 31.5 on pci0 pcm0: [ITHREAD] pcm0: I use FreeBSD 8.0 RELEASE i386 and snd_ich driver. It works perfectly. Ussually =) So, I have installed lastest xorg-7.5 from ports and openbox-3.4.11.1 as WM. FreeBSD ports have a gaming console emulator Sega, which is called Gens (/usr/ports/emulators/gens). I have installed it too. Always when I run Gens and then start to play, the system begins greatly hampers (holds, slow down). CPU utilization increases over 100%. But when I disable a sound in Gens, all is well. Same situation when I unload snd_ich. This problem is not related with the video subsystem. I tried different video cards (ati and nvidia, and of course the latest drivers from ports), but got the same result. Maybe I need write to another mailing list? If you have any ideas please help! -- View this message in context: http://old.nabble.com/snd_ich-and-Gens-tp28619788p28619788.html Sent from the freebsd-drivers mailing list archive at Nabble.com. From owner-freebsd-drivers@FreeBSD.ORG Thu May 20 11:34:37 2010 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 662F61065673 for ; Thu, 20 May 2010 11:34:37 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 4443A8FC1F for ; Thu, 20 May 2010 11:34:37 +0000 (UTC) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OF3j5-0000n5-Dz for freebsd-drivers@freebsd.org; Thu, 20 May 2010 04:15:43 -0700 Message-ID: <28619788.post@talk.nabble.com> Date: Thu, 20 May 2010 04:15:43 -0700 (PDT) From: Pavel Timofeev To: freebsd-drivers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: timp87@gmail.com Subject: snd_ich and Gens X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2010 11:34:37 -0000 Hi everyone! I found the problem a long time ago, but only now writing about it. My computer (with motherboard asus p4p800-vm) has a sound card. [root@timbsd ~]# dmesg | grep pcm pcm0: port 0xe800-0xe8ff,0xee80-0xeebf mem 0xfebff800-0xfebff9ff,0xfebff400-0xfebff4ff irq 17 at device 31.5 on pci0 pcm0: [ITHREAD] pcm0: I use FreeBSD 8.0 RELEASE i386 and snd_ich driver. It works perfectly. Ussually =) So, I have installed lastest xorg-7.5 from ports and openbox-3.4.11.1 as WM. FreeBSD ports have a gaming console emulator Sega, which is called Gens (/usr/ports/emulators/gens). I have installed it too. Always when I run Gens and then start to play, the system begins greatly hampers (holds, slow down). CPU utilization increases over 100%. But when I disable a sound in Gens, all is well. Same situation when I unload snd_ich. This problem is not related with the video subsystem. I tried different video cards (ati and nvidia, and of course the latest drivers from ports), but got the same result. On another system with other sound card all os ok! Maybe I need write to another mailing list? If you have any ideas please help! -- View this message in context: http://old.nabble.com/snd_ich-and-Gens-tp28619788p28619788.html Sent from the freebsd-drivers mailing list archive at Nabble.com.