From owner-freebsd-current@FreeBSD.ORG Mon Sep 17 08:04:28 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D724816A421 for ; Mon, 17 Sep 2007 08:04:28 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay02.kiev.sovam.com (relay02.kiev.sovam.com [62.64.120.197]) by mx1.freebsd.org (Postfix) with ESMTP id 65ED713C45D for ; Mon, 17 Sep 2007 08:04:28 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [212.82.216.226] (helo=deviant.kiev.zoral.com.ua) by relay02.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1IXBad-0005Xs-0g for freebsd-current@freebsd.org; Mon, 17 Sep 2007 11:04:27 +0300 Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1) with ESMTP id l8H84FwO041495; Mon, 17 Sep 2007 11:04:15 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1/Submit) id l8H84Fll041494; Mon, 17 Sep 2007 11:04:15 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 17 Sep 2007 11:04:15 +0300 From: Kostik Belousov To: Boris Samorodov Message-ID: <20070917080415.GL79542@deviant.kiev.zoral.com.ua> References: <96972293@srv.sem.ipt.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dfmC41YZQlborXoK" Content-Disposition: inline In-Reply-To: <96972293@srv.sem.ipt.ru> User-Agent: Mutt/1.4.2.3i X-Scanner-Signature: e96c530ffe2851dcaf18cfd7e0b7e933 X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 1482 [September 17 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {received from trusted relay: not dialup} X-SpamTest-Method: none X-SpamTest-Method: Local Lists X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: freebsd-current@freebsd.org Subject: Re: twa + dump = sbwait X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Sep 2007 08:04:29 -0000 --dfmC41YZQlborXoK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 17, 2007 at 11:28:58AM +0400, Boris Samorodov wrote: > Hi! >=20 >=20 > I can't use dump at -CURRENT with twa. The process goes to sbwait > state forever. Here are the details. >=20 > $ uname -a > FreeBSD test.ipt.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Sep 15 19:37:= 17 MSD 2007 bsam@test.ipt.ru:/usr/obj/usr/src/sys/TEST amd64 >=20 > The controller: > twa0: <3ware 9000 series Storage Controller> port 0x3000-0x30ff mem 0xd80= 00000-0xd9ffffff,0xda300000-0xda300fff irq 16 at device 0.0 on pci8 > twa0: [GIANT-LOCKED] > twa0: [ITHREAD] > twa0: INFO: (0x04: 0x0053): Battery capacity test is overdue:=20 > twa0: INFO: (0x15: 0x1300): Controller details:: Model 9650SE-8LPML, 8 po= rts, Firmware FE9X 3.06.00.005, BIOS BE9X 3.06.00.002 >=20 > Two disks at stripe: > da1 at twa0 bus 0 target 1 lun 0 > da1: Fixed Direct Access SCSI-5 device=20 > da1: 100.000MB/s transfers > da1: 476816MB (976519168 512 byte sectors: 255H 63S/T 60785C) >=20 > Mounted as: > /dev/da1 /s ufs rw 2 2 >=20 > The command: > $ dump -0Luan -f s.dump /s > DUMP: Date of this level 0 dump: Mon Sep 17 10:26:21 2007 > DUMP: Date of last level 0 dump: the epoch > DUMP: Dumping snapshot of /dev/da1 (/s) to s.dump > DUMP: mapping (Pass I) [regular files] > DUMP: mapping (Pass II) [directories] > DUMP: estimated 432054 tape blocks. > DUMP: dumping (Pass III) [directories] > DUMP: dumping (Pass IV) [regular files] > [wait here forever] >=20 > The relevant part of iostat -w 10 and top: > ----- > tty da0 da1 cpu > tin tout KB/t tps MB/s KB/t tps MB/s us ni sy in id > 0 231 16.00 0 0.01 16.00 152 2.37 0 0 1 0 99 > 0 257 16.00 1 0.02 16.00 147 2.29 0 0 1 0 99 > 0 310 16.00 1 0.01 16.00 146 2.28 0 0 1 0 99 > 0 265 16.00 0 0.01 16.00 152 2.38 0 0 1 0 99 > 0 442 16.00 0 0.00 15.98 299 4.66 0 0 1 0 99 > 0 620 15.54 3 0.04 3.46 1999 6.76 0 0 2 1 96 > 0 363 16.00 0 0.01 2.77 5141 13.90 0 0 5 2 93 > 0 309 0.00 0 0.00 3.22 114 0.36 0 0 0 0 100 > 0 260 16.00 1 0.01 0.00 0 0.00 0 0 0 0 100 > 0 263 0.00 0 0.00 0.00 0 0.00 0 0 0 0 100 >=20 > last pid: 74610; load averages: 0.01, 0.06, 0.01 up 1+09:53:34 10= :32:34 > 98 processes: 98 sleeping > CPU states: 0.0% user, 0.0% nice, 0.3% system, 0.0% interrupt, 99.6% = idle > Mem: 113M Active, 2374M Inact, 337M Wired, 480K Cache, 214M Buf, 4935M Fr= ee > Swap: 4096M Total, 4096M Free >=20 > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > 74595 duser 1 20 0 28248K 26000K pause 5 0:01 0.00% dump > 74596 duser 1 20 0 28248K 26000K pause 2 0:01 0.00% dump > 74594 duser 1 20 0 28248K 26000K pause 5 0:01 0.00% dump > 74593 duser 1 4 0 28248K 26020K sbwait 7 0:01 0.00% dump > 74530 duser 1 8 0 28248K 26000K wait 6 0:01 0.00% dump > 74443 duser 1 8 0 6216K 1904K wait 5 0:00 0.00% sh > ----- >=20 > Gdb shows nothing interesting: > # gdb dump 74593 > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you = are > welcome to change it and/or distribute copies of it under certain conditi= ons. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for detail= s. > This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols= found)... > Attaching to program: /sbin/dump, process 74593 > Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done. > Loaded symbols for /lib/libc.so.7 > Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found).= ..done. > Loaded symbols for /libexec/ld-elf.so.1 > 0x000000080071b34a in read () from /lib/libc.so.7 >=20 > Shall I do some more debugging? Thanks! Please, verify that you have rev. 1.39 of sys/kern/subr_sleepqueue.c. --dfmC41YZQlborXoK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFG7jT+C3+MBN1Mb4gRAvtuAKDDocoWrpFel6rNwQLwYOHhO+QzegCbBC+B OmMOX4VYDvdOwDq2G/HEK7g= =n2dX -----END PGP SIGNATURE----- --dfmC41YZQlborXoK--