From owner-freebsd-geom@FreeBSD.ORG Mon Dec 7 11:06:55 2009 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 4B6E7106568D for ; Mon, 7 Dec 2009 11:06:55 +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 30D708FC1A for ; Mon, 7 Dec 2009 11:06:55 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nB7B6tcU068483 for ; Mon, 7 Dec 2009 11:06:55 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nB7B6sbL068481 for freebsd-geom@FreeBSD.org; Mon, 7 Dec 2009 11:06:54 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 7 Dec 2009 11:06:54 GMT Message-Id: <200912071106.nB7B6sbL068481@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, 07 Dec 2009 11:06:55 -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/141011 geom [geli] Encrypted root, geli password at boot; enter ke o kern/140352 geom [geom] gjournal + glabel not working o kern/139847 geom [geom_mbr] load/unload causes system to hang 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/134044 geom [geom] gmirror(8) overwrites fs with stale data from r 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 f kern/132242 geom [gmirror] gmirror.ko fails to fully initialize o kern/131353 geom [geom] gjournal(8) kernel lock p docs/130548 geom [patch] gjournal(8) man page is missing sysctls 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 f kern/126902 geom [geom] geom_label: kernel panic during install boot 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 f kern/124294 geom [geom] gmirror(8) have inappropriate logic when workin 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 f kern/122415 geom [geom] UFS labels are being constantly created and rem o kern/122067 geom [geom] [panic] Geom crashed during boot o kern/121559 geom [patch] [geom] geom label class allows to create inacc 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/120021 geom [geom] [panic] net-p2p/qbittorrent crashes system when o kern/119743 geom [geom] geom label for cds is keeped after dismount and 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 o 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 p bin/110705 geom gmirror(8) control utility does not exit with correct o kern/107707 geom [geom] [patch] [request] add new class geom_xbox360 to o kern/104389 geom [geom] [patch] sys/geom/geom_dump.c doesn't encode XML o kern/98034 geom [geom] dereference of NULL pointer in acd_geom_detach 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 a kern/89660 geom [vinum] [patch] [panic] due to g_malloc returning null o kern/89546 geom [geom] GEOM error o 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 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. s kern/73177 geom kldload geom_* causes panic due to memory exhaustion 53 problems total. From owner-freebsd-geom@FreeBSD.ORG Mon Dec 7 21:34:17 2009 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 90C42106566C for ; Mon, 7 Dec 2009 21:34:17 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello089077043238.chello.pl [89.77.43.238]) by mx1.freebsd.org (Postfix) with ESMTP id CE31E8FC14 for ; Mon, 7 Dec 2009 21:34:16 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id E72CC45C9B; Mon, 7 Dec 2009 22:34:14 +0100 (CET) Received: from localhost (chello089077043238.chello.pl [89.77.43.238]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 24DD145C99; Mon, 7 Dec 2009 22:34:09 +0100 (CET) Date: Mon, 7 Dec 2009 22:34:08 +0100 From: Pawel Jakub Dawidek To: Wiktor Niesiobedzki Message-ID: <20091207213408.GE1795@garage.freebsd.pl> References: <2ae8edf30912050724i6f196e53y40ccd06970d59a7a@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RpqchZ26BWispMcB" Content-Disposition: inline In-Reply-To: <2ae8edf30912050724i6f196e53y40ccd06970d59a7a@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.6 required=4.5 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: freebsd-geom Subject: Re: geli freezing 8.0 RELEASE and 7.2-STABLE 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, 07 Dec 2009 21:34:17 -0000 --RpqchZ26BWispMcB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 05, 2009 at 04:24:25PM +0100, Wiktor Niesiobedzki wrote: > Hi, >=20 > I'm currently configuring new box with 8.0-RELEASE. I'm setting it up > together with geli. From time to time I notice some small freezes (for > 2-5 seconds) of the system. >=20 > I'm doing a small test. In one shell I'm running: >=20 > % while true ; do ; sleep 1; date ;done > sob 5 gru 2009 16:02:48 CET > sob 5 gru 2009 16:02:49 CET > sob 5 gru 2009 16:02:50 CET > sob 5 gru 2009 16:03:15 CET > sob 5 gru 2009 16:03:16 CET > sob 5 gru 2009 16:03:17 CET > sob 5 gru 2009 16:03:18 CET > sob 5 gru 2009 16:03:19 CET >=20 > (Note the gap between 16:02:50 and 16:03:15) Hi Wiktor:) My guess is that this is because GELI worker threads are running with too high priority (at least for your configuration). If I am right, the patch below should help you: http://people.freebsd.org/~pjd/patches/g_eli.c.2.patch --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --RpqchZ26BWispMcB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFLHXTQForvXbEpPzQRAgdYAJ9Sun2SK/xTz5rV7BThKLSSwf1utQCfUT8l GmgiNBbAU3dMHse7nzQVPaA= =FVra -----END PGP SIGNATURE----- --RpqchZ26BWispMcB-- From owner-freebsd-geom@FreeBSD.ORG Tue Dec 8 20:26:02 2009 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 83BAD106566B; Tue, 8 Dec 2009 20:26:02 +0000 (UTC) (envelope-from google@vink.pl) Received: from mail-ew0-f211.google.com (mail-ew0-f211.google.com [209.85.219.211]) by mx1.freebsd.org (Postfix) with ESMTP id 4C7FC8FC13; Tue, 8 Dec 2009 20:26:01 +0000 (UTC) Received: by ewy3 with SMTP id 3so67984ewy.13 for ; Tue, 08 Dec 2009 12:26:00 -0800 (PST) Received: by 10.216.86.72 with SMTP id v50mr2845605wee.184.1260303958372; Tue, 08 Dec 2009 12:25:58 -0800 (PST) Received: from mail-ew0-f211.google.com (mail-ew0-f211.google.com [209.85.219.211]) by mx.google.com with ESMTPS id 28sm4762305eye.7.2009.12.08.12.25.57 (version=SSLv3 cipher=RC4-MD5); Tue, 08 Dec 2009 12:25:57 -0800 (PST) Received: by ewy3 with SMTP id 3so67921ewy.13 for ; Tue, 08 Dec 2009 12:25:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.93.15 with SMTP id k15mr2921402wef.103.1260303955340; Tue, 08 Dec 2009 12:25:55 -0800 (PST) In-Reply-To: <20091207213408.GE1795@garage.freebsd.pl> References: <2ae8edf30912050724i6f196e53y40ccd06970d59a7a@mail.gmail.com> <20091207213408.GE1795@garage.freebsd.pl> Date: Tue, 8 Dec 2009 21:25:55 +0100 Message-ID: <2ae8edf30912081225i224de5cg3a76beb3fda85ff7@mail.gmail.com> From: Wiktor Niesiobedzki To: Pawel Jakub Dawidek Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-geom Subject: Re: geli freezing 8.0 RELEASE and 7.2-STABLE 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: Tue, 08 Dec 2009 20:26:02 -0000 2009/12/7 Pawel Jakub Dawidek : > Hi Wiktor:) > > My guess is that this is because GELI worker threads are running with > too high priority (at least for your configuration). > > If I am right, the patch below should help you: > > =C2=A0 =C2=A0 =C2=A0 =C2=A0http://people.freebsd.org/~pjd/patches/g_eli.c= .2.patch Hi, Yes, it looks like it is thread priority problem. With this patch applied I do not see any freezes nor lags as before. I also did some small check, how this affects the performance, and I see no significant change. I saw some similiar reports here: http://forums.freebsd.org/showthread.php?t=3D6230 (though here it is connected with ZFS and compression). As far as I can imagine, what happens is, that ZFS usually sends data to disks as bulk transfers (every 5-10 seconds), so when I'm using GELI, it has quite a lot of data to encrypt, hence I observe some lagging. But then, I'm not sure, if compression on ZFS could expose this scenario in more aparent way. After having a quick look on http://www.freebsd.org/doc/en/books/arch-handbook/smp-design.html Does it mean, that alawys, when we have a a PRIBIO kthread running (geli thread encrypting data), lower priority processes (esp. userland processes) will not get any CPU? Sounds bit different than what I expected... Cheers, Wiktor Niesiobedzki