From owner-freebsd-hackers@freebsd.org Thu Jul 12 14:31:27 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 31A74103F33C for ; Thu, 12 Jul 2018 14:31:27 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B884394602 for ; Thu, 12 Jul 2018 14:31:26 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 6F844103F333; Thu, 12 Jul 2018 14:31:26 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4ABCE103F32E for ; Thu, 12 Jul 2018 14:31:26 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pf0-x235.google.com (mail-pf0-x235.google.com [IPv6:2607:f8b0:400e:c00::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C68EE945FC; Thu, 12 Jul 2018 14:31:25 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-pf0-x235.google.com with SMTP id e13-v6so7330868pff.7; Thu, 12 Jul 2018 07:31:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=RTZngxXh5FPmRkjIkGWN+bYgjjZcCS9aLdntj0JhCRw=; b=fGxpI788ARQyw0SvGrvN9LzJn4Cu4j1m199bBMY2Ml3Ab/63s/n4b+Jb8BNfPLgHPo Q0fb3pSK09gHgqzYApr7+iRT7umHXGZVinDfUZCePNrN2W+6vW9HqV9jTkkWD7a/5rdb eQwqrIG1uaBdNLVS07E+1mtRPY3y7F2Z7ESscpqv5A6VpudBHDCj03AcNX+7QOUJzza4 2JvM4q0jZdmNV9AC5ZKMz0CR4e8IcZhk8TsFsPK11ZCjZAMh21eiEzeX82k4N4hlX7oc +t3fagmwx7h2gBx4B7h6lxl8Uxy3I60aAAJxsWWFe1GRTiCgRfR/5/5GVR7LCEuhOg56 i/jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=RTZngxXh5FPmRkjIkGWN+bYgjjZcCS9aLdntj0JhCRw=; b=Dh89j/00YHN0rUuIWia/L621SpfiFecq+sDg4de7MhGNBbLXH0CI6ff68UEA+ZegOk DPGLFNi23dHL0lnu/EoeBfWdJSmOyYBnok89THyH2lNkc1IMH+YK574pSsFzAg8RAzqg gF3oQhXQBIgVrtnKEOFCSlD0wk67OWp2i9W3trTVHH+sF/Jvz/+iaL4er0AzQNoUBukm NHnshwn4DK8YNcp/z8sEOoHH29qI8bI6WUbXGz++5gwlJlxdYL5OUUnWmO4+BpeNbdk9 IR6PTWm9QTL+UJ+iHrqACym1TPDVVvM86vLYtMh3YuuTKMIOm7eJ0lcIFAZ5pGixRukI ZAuw== X-Gm-Message-State: AOUpUlH2FMRDu70pbrdnM2dM3gaU4frFcFDP22LfgQKhbR4Cz+iSWOKj OV1ZOSuLDdcY6y3oMn7vmvBAhA== X-Google-Smtp-Source: AAOMgpffPfg1vZveNZfGfmEP1n3A35vP0uwLWTrOQmydYwR9+cFW3yx9C+tn+HwUXHpMhJPanIM1+w== X-Received: by 2002:a65:62ce:: with SMTP id m14-v6mr2330438pgv.407.1531405884786; Thu, 12 Jul 2018 07:31:24 -0700 (PDT) Received: from raichu (toroon0560w-lp130-09-70-52-224-107.dsl.bell.ca. [70.52.224.107]) by smtp.gmail.com with ESMTPSA id b1-v6sm40716439pff.141.2018.07.12.07.31.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jul 2018 07:31:24 -0700 (PDT) Sender: Mark Johnston Date: Thu, 12 Jul 2018 10:31:18 -0400 From: Mark Johnston To: Alexander Leidinger Cc: hackers@freebsd.org, jhb@freebsd.org Subject: Re: crashinfo doesn't support compressed crashdumps - which way forward? Message-ID: <20180712143118.GA15892@raichu> References: <20180712141409.Horde.NVSzLsvqE-2PCSDqhhfb0Xd@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180712141409.Horde.NVSzLsvqE-2PCSDqhhfb0Xd@webmail.leidinger.net> User-Agent: Mutt/1.10.0 (2018-05-17) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2018 14:31:27 -0000 On Thu, Jul 12, 2018 at 02:14:09PM +0200, Alexander Leidinger wrote: > Hi, > > the crashinfo script doesn't know how to handle compressed coredumps. > What would be acceptable behavior (ordered by my preferrence)? > 1) decompress in /var/crash and then proceed normally (already > implemented locally) > 2) decompress to CRASHTMPDIR:/var/tmp/xxx and delete when finished > 3) keep it like it is > 4) teach tools to understand compressed dumps (gzip / zstd) > > Implicitly there is the question what what is the purpose of > compressing crashdumps, to have more RAM than space in dumpdev (which > is valid in my case), or to save space in /var/crash (which I don't > care much about). I think jhb has a patch which implements 2). I do not have strong feelings on which is the right way forward, but I mildly prefer 2) to 1). It looks like crashinfo can be disabled in rc.conf, so users who are space-constrained in /var/crash can take the additional step of setting crashinfo_enable=NO. FWIW, when I committed the compression support, my use-case involved both a small dump device and a small /var filesystem.