From owner-freebsd-current@freebsd.org Sat Jun 27 22:23:31 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1C47735E19B for ; Sat, 27 Jun 2020 22:23:31 +0000 (UTC) (envelope-from bsd-lists@BSDforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ultimatedns.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49vSvQ43p9z4Xrj for ; Sat, 27 Jun 2020 22:23:29 +0000 (UTC) (envelope-from bsd-lists@BSDforge.com) Received: from udns.ultimatedns.net (localhost [IPv6:0:0:0:0:0:0:0:1]) by udns.ultimatedns.net (8.15.2/8.15.2) with ESMTPS id 05RMNNqu037358 (version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Sat, 27 Jun 2020 15:23:29 -0700 (PDT) (envelope-from bsd-lists@BSDforge.com) X-Mailer: Cypht MIME-Version: 1.0 Cc: Michael Gmelin In-Reply-To: <20200627115910.4fe32aa6@bsd64.grem.de> From: Chris Reply-To: bsd-lists@BSDforge.com To: FreeBSD CURRENT Subject: Re: weird Ctrl-T debug messages Date: Sat, 27 Jun 2020 15:23:29 -0700 Message-Id: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 49vSvQ43p9z4Xrj X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; ASN(0.00)[asn:11404, ipnet:24.113.0.0/16, country:US]; local_wl_ip(0.00)[24.113.41.81] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 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: Sat, 27 Jun 2020 22:23:31 -0000 On Sat, 27 Jun 2020 11:59:10 +0200 Michael Gmelin freebsd@grem=2Ede said > On Sat, 27 Jun 2020 12:06:17 +0300 > Andriy Gapon wrote: >=20 > > On 27/06/2020 10:44, Li-Wen Hsu wrote: > > > On Sat, Jun 27, 2020 at 3:04 PM Hartmann, O=2E > > > wrote: =20 > > >> > > >> Running poudriere on recent CURRENT with (recent) 12-STABLE and > > >> CURRENT jails reveals a weird behaviour recently when hitting > > >> Ctrl-T: =20 > > > =2E=2E=2E =20 > > >> Is this debug fallout from /bin/sh? =20 > > >=20 > > > It's because kern=2Etty_info_kstacks is on by default now: > > >=20 > > > https://svnweb=2Efreebsd=2Eorg/changeset/base/362141 =20 > >=20 > > May I suggest that the stack trace is printed procstat -kk style > > (single line) ? I think that the more compact output would be more > > convenient=2E >=20 > It's a cool feature and having it on by default on CURRENT certainly > helps to discover it, which is great=2E Thanks for implementing this! >=20 > I wouldn't enable it by default on RELEASE versions though, as CTRL-T > is a user interface to get status information (at least this is how I > use it personally, e=2Eg=2E, while running commands like dd[0], cp, mv, > poudriere etc=2E), not for getting debug output=2E >=20 > Getting debug information every time I want to get the status seems > like something that would make my user experience worse=2E I understand > that this can be disabled locally, but that's a bit like changing > the default syslog=2Econf to write messages of log level LOG_DEBUG > to /var/log/messages=2E >=20 > So, in the long run (before 13-RELEASE) I would prefer to disable it by > default again, but maybe alter the default sysctl=2Econf to contain: >=20 > # Uncomment this to show stack traces on SIGINFO (ctrl-t) > #kern=2Etty_info_kstacks=3D1 >=20 > Question: Speaking of discovering the feature, wouldn't it make sense > to document this tunable on the stack(9) and/or tty(4) man page(s)? >=20 > Just my 2 cents A huge +1 here=2E I think you captured it well, Michael=2E Thanks=2E --Chris >=20 > [0] Typical use case: >=20 > $ dd if=3D/dev/random of=3D/dev/da0 bs=3D1m > > load: 0=2E37 cmd: dd 32247 [running] 0=2E91r 0=2E00u 0=2E88s 8% 2672k > 149+0 records in > 149+0 records out > 156237824 bytes transferred in 0=2E922956 secs (169279818 bytes/sec) > > load: 0=2E42 cmd: dd 32247 [running] 2=2E52r 0=2E00u 2=2E46s 21% 2676k > 398+0 records in > 398+0 records out > 417333248 bytes transferred in 2=2E528253 secs (165067835 bytes/sec) > =2E=2E=2E >=20 > --=20 > Michael Gmelin > _______________________________________________ > freebsd-current@freebsd=2Eorg mailing list > https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd=2Eorg= "