From owner-freebsd-current@freebsd.org Thu Nov 29 18:16:24 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 26AFD1147DD9; Thu, 29 Nov 2018 18:16:24 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 655677B3E1; Thu, 29 Nov 2018 18:16:23 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-lj1-f169.google.com with SMTP id z80-v6so2598709ljb.8; Thu, 29 Nov 2018 10:16:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WzJYCsZc4Xd9+SAKVLb+/OGPrzANSbW+hEScjstkYMo=; b=mlTxKy0GIBgmShOp6e3wkeg8D2sththnpqDvKWvB/PtnxvUZ3s8tlFC3aoIN8DF/SE bYJ1CRKiqs2708OkEVQ8C0f3kWRYH/mpa6iALYogNhvFl95Za3VbAzYU3p8F0zVx8tiq jDj3hS1m6jVK+MUhurIX2rd0ZsBdEmOB0Iu+5YyUfhgjEkohZkSiTd8nNh8ZOamq4fY3 yimU3EALNPN60qyUMcgecJ1+FzNCvf0Gv8J5oMbsXpeGmYOjHLj7w5VTCu5kUhf6roBa +OjzqI3LVCT1a3nqiV4x2gKp7PP43eFMYGt8ATS8yy1tlRXnUOXHXIHAnyvxY6lMXhVz zJLw== X-Gm-Message-State: AA+aEWbJG+Zn5cxL39RrD+WOAIbo0Rtvy9B11ll9hitZ/t9W1WchKLsC gpW0p9AJl8kN6E6OuyinunuwswR8z8ker36Yr570z3rD X-Google-Smtp-Source: AFSGD/VmJZUVufUXXeJpWKCcwkA3jqN+XSirtFqQ1VwpIC8MRE0mtGuv6szjcrq+ltCAfAWIj++dQNbMxAKZwW5+vCw= X-Received: by 2002:a2e:94ce:: with SMTP id r14-v6mr1823404ljh.34.1543515373300; Thu, 29 Nov 2018 10:16:13 -0800 (PST) MIME-Version: 1.0 References: <20181129180803.GB99411@spindle.one-eyed-alien.net> In-Reply-To: <20181129180803.GB99411@spindle.one-eyed-alien.net> From: Alan Somers Date: Thu, 29 Nov 2018 11:16:01 -0700 Message-ID: Subject: Re: SCSI and dmesg To: Brooks Davis Cc: Warner Losh , Maxim Sobolev , yuripv@yuripv.net, FreeBSD CURRENT , FreeBSD X-Rspamd-Queue-Id: 655677B3E1 X-Spamd-Result: default: False [-3.96 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[freebsd.org]; RCPT_COUNT_FIVE(0.00)[6]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.98)[-0.976,0]; RCVD_IN_DNSWL_NONE(0.00)[169.208.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-0.98)[ipnet: 209.85.128.0/17(-3.46), asn: 15169(-1.32), country: US(-0.09)]; FORGED_SENDER(0.30)[asomers@freebsd.org,asomers@gmail.com]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[asomers@freebsd.org,asomers@gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Thu, 29 Nov 2018 18:16:24 -0000 On Thu, Nov 29, 2018 at 11:08 AM Brooks Davis wrote: > On Thu, Nov 29, 2018 at 11:01:01AM -0700, Alan Somers wrote: > > On Thu, Nov 29, 2018 at 10:49 AM Warner Losh wrote: > > > > > > > > > > > On Thu, Nov 29, 2018 at 8:09 AM Alan Somers > wrote: > > > > > >> On Mon, Nov 26, 2018 at 3:57 PM Warner Losh wrote: > > >> > > >>> On Mon, Nov 26, 2018 at 3:32 PM Maxim Sobolev > > > >>> wrote: > > >>> > > >>> > Somebody needs to make collection/submission automatic and make a > port > > >>> out > > >>> > of it, so that it's as easy as pkg install dmesg_survey && > > >>> > dmesg_survey_enabled="YES" in the /etc/rc.conf. JIMHO. I'd gladly > make > > >>> it a > > >>> > default on all dev boxes within our organization. Might also make a > > >>> nice > > >>> > SoC project idea. > > >>> > > > >>> > > >>> It's barely a weekend hack, since with the curl 1 liner 95% of what > you > > >>> want is there. > > >>> > > >>> This service isn't suitable, though, to have it in rc.conf, I don't > > >>> think, > > >>> unless it's updated only when there's a material change... > > >>> > > >>> And I'd rather we get more nuanced data than dmesg can provide if we > were > > >>> to do the data collection. The admonition to submit to this site was > one > > >>> of > > >>> expedience... > > >>> > > >>> Warner > > >>> > > >> > > >> Sounds like somebody needs to adopt sysutils/bsdstats. It's a great > > >> start, but it needs some TLC. > > >> > > > > > > Except there's no available data from it. And it's not a great start, > but > > > a terrible one. It gathers the wrong things. > > > > > > Warner > > > > > > > What do you mean "no available data"? Are you saying that you'd prefer > > direct access to the server rather than access through the web UI? I'm > > sure Scrappy would allow that. He's implied that he'd like some help > with > > the server. What I like about bsdstats is that it's much more structured > > than your dmesg service. Instead of a big long string, it gathers > > structured info with sysctl, pciconf, and pkg. Plus, it already has a > > port, it's integrated into periodic(8), and it has a website. If it > omits > > some information that you would like to see, then you should enhance it; > > not replace it. > > The data isn't available through the UI because it's broken. Try > drilling down to find all the NIC types for example and you'll get: > > ERROR !! > > an e-mail has been sent to the staff > we are sorry for this problem > > I've reported this multiple time and at least once Scrappy claimed it > was fixed, but it wasn't. > > -- Brooks > Try drilling down to find all the NIC types in dmesgd and you'll get nothing at all, because that feature doesn't exist. bsdstats obviously needs some TLC, but why reinvent the wheel? -Alan