From owner-freebsd-fs@FreeBSD.ORG Sun May 31 18:25:37 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB8F51065672 for ; Sun, 31 May 2009 18:25:37 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: from mail-ew0-f212.google.com (mail-ew0-f212.google.com [209.85.219.212]) by mx1.freebsd.org (Postfix) with ESMTP id 560978FC13 for ; Sun, 31 May 2009 18:25:37 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: by ewy8 with SMTP id 8so3905221ewy.43 for ; Sun, 31 May 2009 11:25:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=4SqknlYz8GqZ4YlocUuuPKnKgCdoFY8UkDmK2PSI6so=; b=IRs6t/eCI6+XFQggaKmiGPZ2mWoAIDbdQqIIk8YE+FWM/D9WpE43hO9lIOFpAccyBH 18RekU6a9ZygskULIaHkmHgh1udvkYkrLgxMm6yihOGhJWkVIB2n/xnubBXNWI/c/0qo SvbyN4M1zVXr6FBw9lFaC1HJ0C839AhasYmac= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=l9VzepTo3OuzVa26mgIc/fYMdcNuoINXemD0RYEhASuL625S8HbeQadf1OPx8Dmdi6 OeZGZynf5VzJ5Sdwvcpq6pqCrXfzM4IgjXASI8mjEGrRgdhCqxIgJTwPVbm9qwAsCtDd r1U9iUoSTvJlovIgHE/i1i4J8OfgBbcXtwY68= MIME-Version: 1.0 Received: by 10.210.38.5 with SMTP id l5mr3038631ebl.16.1243794336231; Sun, 31 May 2009 11:25:36 -0700 (PDT) Date: Sun, 31 May 2009 14:25:36 -0400 Message-ID: From: grarpamp To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: ZFS and idprio X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 May 2009 18:25:38 -0000 On an i386 with 1GB ram and P4 2.x GHz single core with arc_max at 64MiB and everything else from RELENG_7_1_0_RELEASE left at default, with this disk layering: PDC20269@100 > PATA > geli > zfs [gzip sha256]. The system become unusable slow when doing heavy sequential disk IO. Such as copy 50G data, zpool scrub, etc. These two processes [*] eat the cpu. I did idprio 31 on them and got 'ki-1' in the nice column [was '-'] and seemed some responsiveness back after a few minutes. Should I be able to nice these kernel threads? Any other way to drop their priority? What is 'ki-1'? Top doesn't seem to show that field right as with say nice -20 sleep 60? Sorted by time: 11 root 1 171 ki31 0K 8K RUN 25.2H 93.90% idle: cpu0 * 594 root 1 -8 - 0K 8K geli:w 321:27 0.68% g_eli[0] ad4 * 695 root 1 -16 - 0K 24K tq->tq 252:33 0.00% spa_zio_intr_1 * 597 root 1 -8 - 0K 8K geli:w 181:52 0.00% g_eli[0] ad5 * 729 root 1 101 - 0K 24K tq->tq 131:01 0.00% spa_zio_intr_1 758 iso 1 44 0 172M 49572K select 62:43 0.00% XFree86 740 root 1 -16 - 0K 24K tx->tx 44:00 0.00% txg_thread_enter Not under load: load averages: 0.12, 0.40, 0.51 up 2+01:11:50 14:19:22 164 processes: 4 running, 141 sleeping, 19 waiting CPU: 0.8% user, 0.0% nice, 15.0% system, 0.8% interrupt, 83.5% idle Mem: 147M Active, 146M Inact, 265M Wired, 24M Cache, 47M Buf, 410M Free