From owner-freebsd-current@FreeBSD.ORG Mon May 19 04:31:48 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E426C37B401 for ; Mon, 19 May 2003 04:31:47 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26D9643FAF for ; Mon, 19 May 2003 04:31:43 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h4JBVcEd024141 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 19 May 2003 14:31:38 +0300 (EEST) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h4JBVccr024136; Mon, 19 May 2003 14:31:38 +0300 (EEST) (envelope-from ru) Date: Mon, 19 May 2003 14:31:37 +0300 From: Ruslan Ermilov To: Andy Farkas Message-ID: <20030519113137.GF17366@sunbay.com> References: <20030519104226.GA17366@sunbay.com> <20030519210120.K93323-100000@hewey.af.speednet.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WlEyl6ow+jlIgNUh" Content-Disposition: inline In-Reply-To: <20030519210120.K93323-100000@hewey.af.speednet.com.au> User-Agent: Mutt/1.5.4i cc: current@freebsd.org Subject: Re: man(1) oddity - was: HEADS UP: bzip2(1) compression for manpages... X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 19 May 2003 11:31:48 -0000 --WlEyl6ow+jlIgNUh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 19, 2003 at 09:26:26PM +1000, Andy Farkas wrote: > On Mon, 19 May 2003, Ruslan Ermilov wrote: > > > A normal user has to wait staring at a flashing cursor for 11.5 secon= ds > > > before *anything* happens, but root is told "Formatting page, please > > > wait..." > > > > > > Am I explaining it enough? > > > > > You're not being quite right here. Just to demonstrate things, > > take a 4-STABLE box, then temporary rename /usr/share/man/cat8 to > > something else, and try "man 8 ppp"; you'll be presented with the > > output shortly after (without any message), and much quicker than > > after 11.5 seconds, as you trying to tell me. >=20 > # grep CPU /var/run/dmesg.boot > CPU: Pentium Pro (199.74-MHz 686-class CPU) > # > # sysctl -a | grep kern.version > kern.version: FreeBSD 4.8-RELEASE #0: Sat Apr 5 15:40:01 EST 2003 > # > # mv /usr/share/man/cat8 /usr/share/man/cat8- > # > # logout > $ > $ /usr/bin/time man ppp > /dev/null > 14.20 real 10.34 user 0.18 sys > $ /usr/bin/time man ppp > /dev/null > 11.53 real 10.22 user 0.15 sys >=20 > (yes, i did it twice) >=20 > No message, similar to fbsd 5.1-B. >=20 > Now I put cat8/ back: >=20 > (in other window) > # mv /usr/share/man/cat8- /usr/share/man/cat8 > # rm -f /usr/share/man/cat8/ppp.8.gz > (back to 1st window) >=20 > $ /usr/bin/time man ppp > /dev/null > Formatting page, please wait...Done. > 12.07 real 10.45 user 0.22 sys > $ /usr/bin/time man ppp > /dev/null > 0.12 real 0.08 user 0.03 sys >=20 > (yes, i did it twice again. no message the 2nd time) >=20 > User gets a message (1st time) before waiting 12 seconds, unlike in 5.1-B. >=20 >=20 > > When catpages get > > created, the text is displayed only after the whole manpage was > > formatted (and saved to a .cat file). When not creating catpages, > > the formatter passes the output directly to your ${PAGER}, so > > while groff(1) is still formatting the manpage, you can already > > view it (head of it). >=20 >=20 > Here is a table of what I *really* see: >=20 > FreeBSD-4.8: > | no catpage | catpage > Normal user | fmt msg, waits | no msg, no wait > Super user | fmt msg, waits | no msg, no wait >=20 > FreeBSD-5.1-B: >=20 > Normal user | no msg, waits | no msg, no wait > Super user | fmt msg, waits | no msg, no wait >=20 >=20 > The difference is Normal user. >=20 This example is wrong. With your example you're timing the formatting of the whole manpage, and I'm telling you that normal man(1) invocation (with PAGER) will start showing you something on your terminal much sooner. Again: "Formatting page, please wait..." is only displayed if the output will be sent only after the whole manpage is formatte, which is NOT the case when not creating catpages. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --WlEyl6ow+jlIgNUh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+yMCZUkv4P6juNwoRAmPWAJ4yU/mKCNAQVd9zxSXG/xXCGEiQUwCffFSO OTTLl26SkNJIs26u2UNmwXc= =divz -----END PGP SIGNATURE----- --WlEyl6ow+jlIgNUh--