From owner-freebsd-current@freebsd.org Wed Aug 29 05:44:44 2018 Return-Path: Delivered-To: freebsd-current@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 EC3B410A20C3 for ; Wed, 29 Aug 2018 05:44:43 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (bastille.leidinger.net [89.238.82.207]) (using TLSv1.2 with cipher DHE-RSA-CAMELLIA128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8C2C37D2CC for ; Wed, 29 Aug 2018 05:44:43 +0000 (UTC) (envelope-from Alexander@leidinger.net) Date: Wed, 29 Aug 2018 07:44:31 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=leidinger.net; s=outgoing-alex; t=1535521482; bh=fP7E+388MhXG9CTXCFktFWEss0ERtssRyTzmZnt2ANE=; h=Date:From:To:Subject:References:In-Reply-To; b=ywEl4OwapM6vbqo2N7G/2xA6UNgWRFNjV9Vy/kDLlCM9mqoT2F7xt4+11er9eeL98 0sMBRB8wwxE0w9mb2DStwGhfETNYYakwcSQzIxUMtZaHx3BN/LcREKpJEMdO4gyNFS rDkBv9RFTuysHBTPvaFoSfsznEgZF+twq2esWdo/zAEN5a4vtI+bT/uzdlUQgkoVaw ETE3c0ACkkGYA6hFpJ12KggJkL8/W0A5wVb4BIlCZClYr320t4EOO683dvMekUhD2T LVV73knd4MHOPGkCRr6vksKnqIEdtBe5HcMR1ml2BjGMQ7CVHF9kF14OqD2eQj6067 nTQ/db2ghShng== Message-ID: <20180829074431.Horde.NYx7i7jvhNMNuTj-hSYfzSk@webmail.leidinger.net> From: Alexander Leidinger To: freebsd-current@freebsd.org Subject: Re: old top and new -current: missing arcstat sysctl References: <20180828084015.Horde.JUeG828X_SDlJjeJdfmH7pV@webmail.leidinger.net> <20180828144842.GA29917@raichu> In-Reply-To: <20180828144842.GA29917@raichu> User-Agent: Horde Application Framework 5 Accept-Language: de,en Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2018 05:44:44 -0000 Quoting Mark Johnston (from Tue, 28 Aug 2018 10:48:42 -0400): > On Tue, Aug 28, 2018 at 10:25:39AM -0400, Allan Jude wrote: >> On 2018-08-28 02:40, Alexander Leidinger wrote: >> > Hi, >> > >> > top reports missing sysctl kstat.zfs.misc.arcstats.other_size for >> > 12.0-alpha3 with a top from an old-ish -current. >> > >> > Is/will this be handled via a compat-11 sysctl (my kernel is without >> > compat-xx), or did this slip through? >> That is not something that a compat-xx package can handle. > > s/package/kernel option/? Sorry, the COMPAT_FREEBSDx kernel options was what I had in mind when I wrote this. >> That arcstat was broken up into 3 individual stats, which the >> 12.0-alpha3 version of top will sum together for you. >> >> I don't think we've had compat shims like this for previous versions of >> top, I recall having similar issues when the 'laundry' counter was >> introduced. > > IIRC that would have been the inverted case of running a newer top(1) > with an older kernel lacking the v_laundry_pages sysctl. In general I'd > expect us to support running an older top(1) with newer kernels if we > don't have to bend over backwards to provide compatibility. If the new top is summing the 3 up anyway, it sounds like we could provide the old one as backwards compatibility, even if it is redundant. I rather have an redundant counter and an old top working (in the generic case of what we promise to our users; in this specific case for me I just need to get around to update the jails on the corresponding systems), than bailing out without displaying anything. Bye, Alexander. -- http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF