From owner-freebsd-geom@FreeBSD.ORG Sat Dec 5 15:52:09 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 34E371065707 for ; Sat, 5 Dec 2009 15:52:09 +0000 (UTC) (envelope-from google@vink.pl) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id C76CE8FC15 for ; Sat, 5 Dec 2009 15:52:08 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 16so230048fgg.13 for ; Sat, 05 Dec 2009 07:52:08 -0800 (PST) Received: by 10.87.70.37 with SMTP id x37mr3678293fgk.36.1260026669114; Sat, 05 Dec 2009 07:24:29 -0800 (PST) Received: from mail-fx0-f209.google.com (mail-fx0-f209.google.com [209.85.220.209]) by mx.google.com with ESMTPS id e11sm12639828fga.24.2009.12.05.07.24.28 (version=SSLv3 cipher=RC4-MD5); Sat, 05 Dec 2009 07:24:28 -0800 (PST) Received: by fxm2 with SMTP id 2so916720fxm.13 for ; Sat, 05 Dec 2009 07:24:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.54.15 with SMTP id o15mr677456fag.96.1260026665375; Sat, 05 Dec 2009 07:24:25 -0800 (PST) Date: Sat, 5 Dec 2009 16:24:25 +0100 Message-ID: <2ae8edf30912050724i6f196e53y40ccd06970d59a7a@mail.gmail.com> From: Wiktor Niesiobedzki To: freebsd-geom Content-Type: text/plain; charset=UTF-8 Subject: 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: Sat, 05 Dec 2009 15:52:09 -0000 Hi, 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. I'm doing a small test. In one shell I'm running: % 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 (Note the gap between 16:02:50 and 16:03:15) In mean time I'm runnig following in the second terminal: # dd if=/dev/gzero.eli of=/dev/null bs=1M ^C3955+0 records in 3955+0 records out 4147118080 bytes transferred in 23.919693 secs (173376727 bytes/sec) As I've noticed, for the time, when dd is working, top reports, that all CPU is used by system by g_eli[0] gzero process. Until I interrupt the dd process, it is +/- fully busy with encryption. I've setup the geli as following: # kldload geom_zero # geli onetime -s 4096 -l 256 gzero GEOM_ELI: Device gzero.eli created. GEOM_ELI: Encryption: AES-CBC 256 GEOM_ELI: Crypto: hardware # sysctl kern.geom.zero.clear=0 (setting the last one to 1 doesn't make any change). On this system I have VIA Padlock device as crypto hardware. I've tried the same on 7.2-STABLE and got similiar result (though the interrupt signal wasn't delivered to dd process so I need to do a hard reset). Is this a problem within GEOM, or is this related to scheduler? On 8.0-Release I'm still running GENERIC kernel (with SCHED_ULE). Cheers, Wiktor Niesiobedzki