From owner-freebsd-fs@FreeBSD.ORG Tue Jul 16 21:55:05 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8B745278 for ; Tue, 16 Jul 2013 21:55:05 +0000 (UTC) (envelope-from javocado@gmail.com) Received: from mail-la0-x231.google.com (mail-la0-x231.google.com [IPv6:2a00:1450:4010:c03::231]) by mx1.freebsd.org (Postfix) with ESMTP id 15383385 for ; Tue, 16 Jul 2013 21:55:04 +0000 (UTC) Received: by mail-la0-f49.google.com with SMTP id ea20so941602lab.22 for ; Tue, 16 Jul 2013 14:55:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RyM3e43SBQoypfvbI0MCPx2WFRYOHVndSDQUETGCKNI=; b=bSvnIHDiuzoz61XNg0tipW+Fded7gVwEt3V/oV37s+VW+vzhIRrPWKsscDJ5n46w8Y 3tYEB8Y1Rnjlmhq8ytUlqaBjf+OKK/uMKQdeHERakuuAL+y04gWdsWME3CwPXP4JaIAJ VU7dLt/TTEu8BFKNnyqOx6sCkVu8keMfWscf+d7gVb+iUEtCE+Ad9V7mN20PXvRsuwd2 syqbaChJaZPbHqaKd6fmigXMufGuzxgTfzGV+PVtgUrft8mk3tAGFn4FfCO/9upqK5g0 jCVZYksSUCLZPGHuoduEnp7bY42BkvoHUx85pUjGE4R6Ce0IzdoMHtZyaLvgqrF3Vkq9 UBlw== MIME-Version: 1.0 X-Received: by 10.152.25.169 with SMTP id d9mr1594497lag.63.1374011704047; Tue, 16 Jul 2013 14:55:04 -0700 (PDT) Received: by 10.114.98.42 with HTTP; Tue, 16 Jul 2013 14:55:04 -0700 (PDT) In-Reply-To: References: Date: Tue, 16 Jul 2013 14:55:04 -0700 Message-ID: Subject: Re: ZFS memory exhaustion? From: javocado To: Freddie Cash Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Filesystems X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jul 2013 21:55:05 -0000 Thank you. Is gstat the best way to watch zfs i/o ? On Tue, Jul 16, 2013 at 1:50 PM, Freddie Cash wrote: > On Tue, Jul 16, 2013 at 1:26 PM, javocado wrote: > >> I have a couple questions: >> >> - what does it look like when zfs needs more physical memory / is running >> out of memory for its operations? >> > > Disk I/O drops to 0, reading/writing any file from the pool appears to > "hang" the console, programs already loaded into RAM continue to work so > long as they don't touch the pool, etc. > > >> >> - what diagnostic numbers (vmstat, etc.) should I watch for that? >> >> Top output will show Wired at/near 100% of RAM. > > >> swapinfo shows zero (basically zero) swap usage, so it doesn't look like >> things get that bad. >> >> > ZFS uses non-swappable kernel memory, so you won't ever see swap used when > ZFS runs out of RAM. > > Those are the symptoms we've noticed when our ZFS systems have run out of > RAM. > > > -- > Freddie Cash > fjwcash@gmail.com >