From owner-freebsd-geom@FreeBSD.ORG Mon Mar 28 08:10:16 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BE4C1065673; Mon, 28 Mar 2011 08:10:16 +0000 (UTC) (envelope-from eugene@home.wdc.spb.ru) Received: from mail.wdc.spb.ru (mail.wdc.spb.ru [89.223.110.23]) by mx1.freebsd.org (Postfix) with ESMTP id C41528FC13; Mon, 28 Mar 2011 08:10:15 +0000 (UTC) Received: from mail.wdc.spb.ru (localhost [127.0.0.1]) by mail.wdc.spb.ru (Postfix) with ESMTP id 681F87FF490; Mon, 28 Mar 2011 11:55:08 +0400 (MSD) Received: by mail.wdc.spb.ru (Postfix, from userid 66) id 672637FF76A; Mon, 28 Mar 2011 11:55:08 +0400 (MSD) Received: from home.my.intranet (localhost [127.0.0.1]) by home.my.intranet (Postfix) with ESMTP id 8F8CD416BBB; Mon, 28 Mar 2011 11:52:22 +0400 (MSD) Received: from home.my.intranet (home.my.intranet [192.168.2.1]) by home.my.intranet (Postfix) with ESMTP id 4A20E416BB9; Mon, 28 Mar 2011 11:52:22 +0400 (MSD) Message-ID: <4D903E36.9060004@home.wdc.spb.ru> Date: Mon, 28 Mar 2011 11:52:22 +0400 From: "Eugene V. Boontseff" Organization: warm home company User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110306 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-geom@freebsd.org References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------090001080509020001010909" X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Scanned: ClamAV using ClamSMTP X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org Subject: Long =?utf-8?q?=C2=ABSuspend_time=C2=BB_when_reading_large_files_?= =?utf-8?q?from_gjournal_partions=2E?= X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: eugene@wdc.spb.ru List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2011 08:10:16 -0000 This is a multi-part message in MIME format. --------------090001080509020001010909 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hello, freebsd-geom. On FreeBSD 8.2-RELEASE long periods of «Suspend time» have been detected - tens of seconds - while reading large files from gjournal partition: For example: root@mail [/var/tmp]# du -h /var/tmp/access.log 8.3G /var/tmp/access.log root@mail[/var/tmp]# dd if=/var/tmp/access.log of=/dev/null 17417604 +1 records in 17417604 +1 records out 8917813440 bytes transferred in 50.760701 secs (175,683,418 bytes/sec) root@mail[/var/tmp] # grep \/var/var/log/messages ... Mar 27 14:48:08 mail kernel: GEOM_JOURNAL [1]: Suspend time of /var: 0.018053s Mar 27 14:48:18 mail kernel: GEOM_JOURNAL [1]: Msync time of /var: 0.020182s Mar 27 14:49:03 mail kernel: GEOM_JOURNAL [1]: Sync time of /var: 0.022150s Mar 27 14:49:03 mail kernel: GEOM_JOURNAL [1]: Suspend time of /var: 45.187463s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Mar 27 14:49:13 mail kernel: GEOM_JOURNAL [1]: Msync time of /var: 0.014821s Mar 27 14:49:13 mail kernel: GEOM_JOURNAL [1]: Sync time of /var: 0.017499s Mar 27 14:49:13 mail kernel: GEOM_JOURNAL [1]: Suspend time of /var: 0.016974s ... At the time when «Suspend time» = 45.187463s, all operations on the disk (gjournal partition) are blocked. All processes (htttp, squid, sshd, pop3d, imapd, and even login) are waiting for the expiration of this time. And only after that continue to operate normally. This does not happen if not only read but also simultaneously write to the partition with gjournal. (dd if=/var/tmp/access.log of=/var/tmp/a.log or cp /var/tmp /access.log /var/spool/uucppublic) Partion with gjournal is located on a hardware RAID 10 - driver aac. I put a ordinary sata disk in the computer and create a gjournal partition on it.. On the sata drive it worked fine. So I guess that the problem is in the driver aac. Could it be so because the aac driver does not support BIO_FLUSH? PS. root@mail[/var/tmp]# gjournal list Geom name: gjournal 609973015 ID: 609973015 Providers: 1. Name: ad6p4.journal Mediasize: 456084396032 (425G) Sectorsize: 512 Mode: r0w0e0 Consumers: 1. Name: ad6p4 Mediasize: 494739102208 (461G) Sectorsize: 512 Mode: r1w1e1 Jend: 494739101696 Jstart: 456084396032 Role: Data, Journal Geom name: gjournal 2757859993 ID: 2757859993 Providers: 1. Name: aacd0p5.journal Mediasize: 498216205824 (464G) Sectorsize: 512 Mode: r1w1e2 Consumers: 1. Name: aacd0p5 Mediasize: 536870912000 (500G) Sectorsize: 512 Mode: r1w1e1 Jend: 536870911488 Jstart: 498216205824 Role: Data, Journal Server uses 12 G memory. --------------090001080509020001010909-- From owner-freebsd-geom@FreeBSD.ORG Mon Mar 28 11:06:56 2011 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2BC9106566B for ; Mon, 28 Mar 2011 11:06:56 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8EFB88FC2A for ; Mon, 28 Mar 2011 11:06:56 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p2SB6utG026642 for ; Mon, 28 Mar 2011 11:06:56 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p2SB6trL026640 for freebsd-geom@FreeBSD.org; Mon, 28 Mar 2011 11:06:55 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 28 Mar 2011 11:06:55 GMT Message-Id: <201103281106.p2SB6trL026640@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-geom@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-geom@FreeBSD.org X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2011 11:06:56 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/154226 geom [geom] GEOM label does not change when you modify them o kern/152609 geom [geli] geli onetime on gzero panics o kern/150858 geom [geom] [geom_label] [patch] glabel(8) is not compatibl o kern/150626 geom [geom] [gjournal] gjournal(8) destroys label o kern/150555 geom [geom] gjournal unusable on GPT partitions o kern/150334 geom [geom] [udf] [patch] geom label does not support UDF o kern/149762 geom volume labels with rogue characters o bin/149215 geom [panic] [geom_part] gpart(8): Delete linux's slice via o kern/147667 geom [gmirror] Booting with one component of a gmirror, the o kern/145818 geom [geom] geom_stat_open showing cached information for n o kern/145042 geom [geom] System stops booting after printing message "GE o kern/144905 geom [geom][geom_part] panic in gpart_ctlreq when unpluggin o kern/143455 geom gstripe(8) in RELENG_8 (31st Jan 2010) broken o kern/142563 geom [geom] [hang] ioctl freeze in zpool o kern/141740 geom [geom] gjournal(8): g_journal_destroy concurrent error o kern/140352 geom [geom] gjournal + glabel not working o kern/135898 geom [geom] Severe filesystem corruption - large files or l o kern/134922 geom [gmirror] [panic] kernel panic when use fdisk on disk o kern/134113 geom [geli] Problem setting secondary GELI key o kern/133931 geom [geli] [request] intentionally wrong password to destr o bin/132845 geom [geom] [patch] ggated(8) does not close files opened a o kern/132273 geom glabel(8): [patch] failing on journaled partition o kern/131353 geom [geom] gjournal(8) kernel lock o kern/129674 geom [geom] gjournal root did not mount on boot o kern/129645 geom gjournal(8): GEOM_JOURNAL causes system to fail to boo o kern/129245 geom [geom] gcache is more suitable for suffix based provid f kern/128276 geom [gmirror] machine lock up when gmirror module is used o kern/127420 geom [geom] [gjournal] [panic] Journal overflow on gmirrore o kern/124973 geom [gjournal] [patch] boot order affects geom_journal con o kern/124969 geom gvinum(8): gvinum raid5 plex does not detect missing s o kern/123962 geom [panic] [gjournal] gjournal (455Gb data, 8Gb journal), o kern/123122 geom [geom] GEOM / gjournal kernel lock o kern/122738 geom [geom] gmirror list "losts consumers" after gmirror de o kern/122067 geom [geom] [panic] Geom crashed during boot o kern/121364 geom [gmirror] Removing all providers create a "zombie" mir o kern/120091 geom [geom] [geli] [gjournal] geli does not prompt for pass o kern/115856 geom [geli] ZFS thought it was degraded when it should have o kern/115547 geom [geom] [patch] [request] let GEOM Eli get password fro o kern/114532 geom [geom] GEOM_MIRROR shows up in kldstat even if compile f kern/113957 geom [gmirror] gmirror is intermittently reporting a degrad o kern/113837 geom [geom] unable to access 1024 sector size storage o kern/113419 geom [geom] geom fox multipathing not failing back o kern/107707 geom [geom] [patch] [request] add new class geom_xbox360 to o kern/94632 geom [geom] Kernel output resets input while GELI asks for o kern/90582 geom [geom] [panic] Restore cause panic string (ffs_blkfree o bin/90093 geom fdisk(8) incapable of altering in-core geometry f kern/88601 geom [geli] geli cause kernel panic under heavy disk usage o kern/87544 geom [gbde] mmaping large files on a gbde filesystem deadlo o bin/86388 geom [geom] [geom_part] periodic(8) daily should backup gpa o kern/84556 geom [geom] [panic] GBDE-encrypted swap causes panic at shu o kern/79251 geom [2TB] newfs fails on 2.6TB gbde device o kern/79035 geom [vinum] gvinum unable to create a striped set of mirro o bin/78131 geom gbde(8) "destroy" not working. 53 problems total. From owner-freebsd-geom@FreeBSD.ORG Wed Mar 30 16:15:16 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 02E8E106566B; Wed, 30 Mar 2011 16:15:16 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 924648FC21; Wed, 30 Mar 2011 16:15:15 +0000 (UTC) Received: by vxc34 with SMTP id 34so1384040vxc.13 for ; Wed, 30 Mar 2011 09:15:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:reply-to:from:to:cc:subject:date:message-id :mime-version:content-type:content-transfer-encoding:x-mailer :thread-index:content-language; bh=Z8aSzJRqu0kvKx1WGQ4ayeOdcRC4ZjTGxFinMuipluU=; b=wQBPlIjwGODxu2VWq2JShFKxbla5sYAHtSrLXDHFmYSkGBZIerSoGmbIxhnV9Ssd0c 0vZczE3FAUDV8q7bOSom/N8keCpGZdGzlTp3kxW5yME6FKHZ78nBu4+mh9crIwZbaXr1 6dCjZCFMU5QSQN/aXWjVrM+5oQ2t82RYAMifY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=reply-to:from:to:cc:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:thread-index :content-language; b=Zxb703lYVxwnGm9c8kpqlyjCqgRyEyC62mzG4kdwDjzbTBchupKDrv+wx54byIcQWr 6k05UK8dGpmqaWtZT5rFyEk1IfQVPVsxrC7rHQC8rFE0HERbX2nYcZ3rMcPN/wr6leLb k26r7FC5ogu7ra/oaGPDD3KHeIFDbAshEwcwA= Received: by 10.52.99.39 with SMTP id en7mr1844275vdb.170.1301500412223; Wed, 30 Mar 2011 08:53:32 -0700 (PDT) Received: from rimwks1x64 ([92.124.37.123]) by mx.google.com with ESMTPS id x29sm66779vcf.26.2011.03.30.08.53.29 (version=SSLv3 cipher=OTHER); Wed, 30 Mar 2011 08:53:31 -0700 (PDT) From: rozhuk.im@gmail.com To: Date: Thu, 31 Mar 2011 00:53:26 +0900 Message-ID: <4d9351fb.1d32dc0a.2d95.070c@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acvu8psz9rYxmgRRSpGOlirHCnGFKQ== Content-Language: ru Cc: freebsd-geom@freebsd.org Subject: merge geom redboot and map X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rozhuk.IM@gmail.com List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2011 16:15:16 -0000 Hi! geom_redboot and geom_map ( = http://my.ddteam.net/hg/BASE/file/783974ced979/head/sys/geom/geom_map.c = - based on redboot) Do same things: allow access to memory blocks on cfi/spi flash like partitions on disk. Redboot - Flash Image System (FIS), stored on flash Map - like linux MTD, blocks (partitions) table hardcoded via "hints"=20 I can merge them together into one geom. geom_flash, for example. Addition build flags may be: GEOM_FLASH_NO_REDBOOT GEOM_FLASH_NO_MAP If redboot and map not excluded, then first node will see hardcoded in hints, then try to read FIS from flash. I need your opinions, suggestions and help with testing and including = code to main stream source tree. PS: I can test only "map" part on my Agestar LB2. =A0 -- Rozhuk Ivan =A0=20 From owner-freebsd-geom@FreeBSD.ORG Wed Mar 30 18:01:18 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D8061065674; Wed, 30 Mar 2011 18:01:18 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id C07348FC19; Wed, 30 Mar 2011 18:01:17 +0000 (UTC) Received: from warner-losh.int.fusionio.com (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id p2UHtQCi032719; Wed, 30 Mar 2011 11:55:26 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <4d9351fb.1d32dc0a.2d95.070c@mx.google.com> Date: Wed, 30 Mar 2011 11:55:25 -0600 Content-Transfer-Encoding: 7bit Message-Id: <56D961DF-74C4-4E1B-B7F5-60E0E939DE8E@bsdimp.com> References: <4d9351fb.1d32dc0a.2d95.070c@mx.google.com> To: Rozhuk.IM@gmail.com X-Mailer: Apple Mail (2.1082) Cc: freebsd-arm@freebsd.org, freebsd-geom@freebsd.org Subject: Re: merge geom redboot and map X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2011 18:01:18 -0000 On Mar 30, 2011, at 9:53 AM, rozhuk.im@gmail.com wrote: > Hi! > > geom_redboot and geom_map > ( http://my.ddteam.net/hg/BASE/file/783974ced979/head/sys/geom/geom_map.c - > based on redboot) > > Do same things: allow access to memory blocks on cfi/spi flash like > partitions on disk. > Redboot - Flash Image System (FIS), stored on flash > Map - like linux MTD, blocks (partitions) table hardcoded via > "hints" > > > I can merge them together into one geom. > geom_flash, for example. > > Addition build flags may be: > GEOM_FLASH_NO_REDBOOT > GEOM_FLASH_NO_MAP > > If redboot and map not excluded, then first node will see hardcoded in > hints, then try to read FIS from flash. > > > I need your opinions, suggestions and help with testing and including code > to main stream source tree. I think this likely is a good refactoring. > PS: I can test only "map" part on my Agestar LB2. But please make sure FIS still works. Warner > > > -- > Rozhuk Ivan > > > > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > From owner-freebsd-geom@FreeBSD.ORG Wed Mar 30 19:19:16 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECB72106564A; Wed, 30 Mar 2011 19:19:16 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 87DD18FC0A; Wed, 30 Mar 2011 19:19:16 +0000 (UTC) Received: by vws18 with SMTP id 18so1584442vws.13 for ; Wed, 30 Mar 2011 12:19:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:reply-to:from:to:cc:references:in-reply-to :subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:thread-index:content-language; bh=Mi0+IlcsNqqe7WfJdIGza+cky2u1lsMQ7Lm3LTnmZMQ=; b=UgVZ84+ibxW/ADW60ZtjPRemMQAScFDnS8TbAb7bYeT7fjFP5IQhHGAa7JyxBrJRrK QzpUcuffQBSyWRKnsgU2GkWz61U4qycB+UniLY4lYgGYBMx27B48EblR0qlDAn3EOyxo 9i0lWptncWH0Z0+XtoQVkWaF0d55+Ed1CIuQs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=reply-to:from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:x-mailer :thread-index:content-language; b=m+yOK+UDBdBFbK/4JX5JTDn0d4eMLmKxBhRrmTEauu3R/vNmaNN5grtvkrNJYqYt6L N7xojEHYN9HuAn2kAyqnvxE3b1hz2aAkMOM/+ix8AX2eZYKiIbiG5L/a7eyZKhqF0svN SUV98t1G12P9nv7hX62YhnpeY8fsnSi+/tbNs= Received: by 10.52.100.1 with SMTP id eu1mr1817410vdb.174.1301512755785; Wed, 30 Mar 2011 12:19:15 -0700 (PDT) Received: from rimwks1x64 ([92.124.37.123]) by mx.google.com with ESMTPS id f17sm195977vbv.6.2011.03.30.12.19.13 (version=SSLv3 cipher=OTHER); Wed, 30 Mar 2011 12:19:15 -0700 (PDT) From: rozhuk.im@gmail.com To: "'Warner Losh'" References: <4d9351fb.1d32dc0a.2d95.070c@mx.google.com> <56D961DF-74C4-4E1B-B7F5-60E0E939DE8E@bsdimp.com> In-Reply-To: <56D961DF-74C4-4E1B-B7F5-60E0E939DE8E@bsdimp.com> Date: Thu, 31 Mar 2011 04:19:11 +0900 Message-ID: <4d938233.1192e60a.2761.1205@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcvvBHo+Au9fxmokTZutyFXNmDL99QACPxXQ Content-Language: ru Cc: freebsd-arm@freebsd.org, freebsd-geom@freebsd.org Subject: RE: merge geom redboot and map X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rozhuk.IM@gmail.com List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2011 19:19:17 -0000 > > I need your opinions, suggestions and help with testing and including > code > > to main stream source tree. > > I think this likely is a good refactoring. > > > PS: I can test only "map" part on my Agestar LB2. > > But please make sure FIS still works. I hope peoples with redboot hardware help with testing. Another question is path to mapped block (partition)? Now - redboot: /dev/redboot/%name - map: /dev/map/%name Variants: 1. stay as is 2. /dev/flash/%name 3. ? From owner-freebsd-geom@FreeBSD.ORG Wed Mar 30 20:55:14 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F975106567B; Wed, 30 Mar 2011 20:55:14 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8B5EF8FC1D; Wed, 30 Mar 2011 20:55:08 +0000 (UTC) Received: by fxm11 with SMTP id 11so1771381fxm.13 for ; Wed, 30 Mar 2011 13:55:07 -0700 (PDT) Received: by 10.223.5.78 with SMTP id 14mr367101fau.135.1301516868968; Wed, 30 Mar 2011 13:27:48 -0700 (PDT) Received: from rnote.ddteam.net (29-134-133-95.pool.ukrtel.net [95.133.134.29]) by mx.google.com with ESMTPS id 14sm164654fae.23.2011.03.30.13.27.46 (version=SSLv3 cipher=OTHER); Wed, 30 Mar 2011 13:27:47 -0700 (PDT) Date: Wed, 30 Mar 2011 23:27:35 +0300 From: Aleksandr Rybalko To: Rozhuk.IM@gmail.com Message-Id: <20110330232735.3768cbb6.ray@ddteam.net> In-Reply-To: <4d938233.1192e60a.2761.1205@mx.google.com> References: <4d9351fb.1d32dc0a.2d95.070c@mx.google.com> <56D961DF-74C4-4E1B-B7F5-60E0E939DE8E@bsdimp.com> <4d938233.1192e60a.2761.1205@mx.google.com> X-Mailer: Sylpheed 3.1.0 (GTK+ 2.22.1; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org, rozhuk.im@gmail.com, 'Warner Losh' , freebsd-geom@freebsd.org Subject: Re: merge geom redboot and map X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2011 20:55:14 -0000 Hi all, On Thu, 31 Mar 2011 04:19:11 +0900 rozhuk.im@gmail.com wrote: > > > > I need your opinions, suggestions and help with testing and > > > including > > code > > > to main stream source tree. > > > > I think this likely is a good refactoring. > > > > > PS: I can test only "map" part on my Agestar LB2. > > > > But please make sure FIS still works. > > I hope peoples with redboot hardware help with testing. > > > Another question is path to mapped block (partition)? > > Now > - redboot: /dev/redboot/%name > - map: /dev/map/%name > > Variants: > 1. stay as is > 2. /dev/flash/%name > 3. ? 3. /dev/flash/spi0kernel, /dev/flash/spi0rootfs, ... IMO, /dev/map/ more generic :) > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" P.S. I think GEOM_FLASH_NO_MAP not needed, because this modules differ only on configuration source, REDBOOT partition map and hints, so maybe only GEOM_FLASH_NO_REDBOOT to avoid unwanted read. WBW -- Aleksandr Rybalko From owner-freebsd-geom@FreeBSD.ORG Fri Apr 1 16:20:31 2011 Return-Path: Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79CA7106566B for ; Fri, 1 Apr 2011 16:20:31 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id F2E6C8FC0C for ; Fri, 1 Apr 2011 16:20:30 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id p31GKDk9036601; Fri, 1 Apr 2011 18:20:29 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id p31GKDbM036600; Fri, 1 Apr 2011 18:20:13 +0200 (CEST) (envelope-from olli) Date: Fri, 1 Apr 2011 18:20:13 +0200 (CEST) Message-Id: <201104011620.p31GKDbM036600@lurza.secnetix.de> From: Oliver Fromme To: freebsd-geom@FreeBSD.ORG X-Newsgroups: list.freebsd-geom User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Fri, 01 Apr 2011 18:20:29 +0200 (CEST) Cc: Subject: gmirror question X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2011 16:20:31 -0000 Hi, I just logged into a machine when my zsh shell died before even printing the prompt. The machine runs with a gmirror of two disks (ad0 and ad1). ad1 has always been a little flaky, throwing errors every few weeks or months, then being disconnected by gmirror. This never caused any problems in the past; the machine just continued running with ad0 alone. A reboot always brought ad1 back, and after syncing gmirror, everything continued running fine for some weeks or months. However, when the same thing happened today, gmirror wasn't able to reroute all requests to ad0, it seems. That's why my shell died. I would like to understand *why* this could happen. I thought that it's the purpose of gmirror to keep everything running when one disk dies. This is what the kernel logged during the event: 17:50:42 ad1: TIMEOUT - READ_DMA retrying (1 retry left) LBA=778951 17:50:53 ad1: TIMEOUT - READ_DMA retrying (1 retry left) LBA=778215 17:51:36 unknown: TIMEOUT - READ_DMA retrying (1 retry left) LBA=777767 17:51:36 ata3: timeout waiting to issue command 17:51:36 ata3: error issuing READ_DMA command 17:51:36 GEOM_MIRROR: Request failed (error=6). ad1[WRITE(offset=155136, length=16384)] 17:51:36 GEOM_MIRROR: Device gm0: provider ad1 disconnected. 17:51:36 g_vfs_done():mirror/gm0s1a[READ(offset=398176256, length=45056)]error = 5 17:51:36 vnode_pager_getpages: I/O read error 17:51:36 vm_fault: pager read error, pid 78331 (zsh) 17:51:36 pid 78331 (zsh), uid 1000: exited on signal 11 (core dumped) In particular, I wonder about the third line which mentions an "unknown" device. I assume this comes from ad1 while it is being disconnected. Can anybody explain why the I/O error on gm0s1a happened? If it matters, this is a single-core machine (not SMP) running FreeBSD running 8-stable csupped on 2010-10-22. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd C++: "an octopus made by nailing extra legs onto a dog" -- Steve Taylor, 1998