From owner-freebsd-current@FreeBSD.ORG Mon May 19 06:45:02 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 209BC37B405 for ; Mon, 19 May 2003 06:45:02 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5C1843F3F for ; Mon, 19 May 2003 06:44:55 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h4JDioEd040305 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 19 May 2003 16:44:51 +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 h4JDioL4040304; Mon, 19 May 2003 16:44:50 +0300 (EEST) (envelope-from ru) Date: Mon, 19 May 2003 16:44:50 +0300 From: Ruslan Ermilov To: Andy Farkas Message-ID: <20030519134450.GF28176@sunbay.com> References: <20030519124329.GC28176@sunbay.com> <20030519224847.L93323-100000@hewey.af.speednet.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="juZjCTNxrMaZdGZC" Content-Disposition: inline In-Reply-To: <20030519224847.L93323-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 13:45:02 -0000 --juZjCTNxrMaZdGZC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 19, 2003 at 10:52:30PM +1000, Andy Farkas wrote: > On Mon, 19 May 2003, Ruslan Ermilov wrote: > > On Mon, May 19, 2003 at 10:21:58PM +1000, Andy Farkas wrote: > > > > > > Please realise what I've been trying to tell you: there is a differen= ce in > > > the user experience when one types `man ppp` on a 4.8 box and when one > > > types `man ppp` on a 5.1-B box. On a 4.8 box the user types `man ppp= `, > > > gets a message, then waits around 10 seconds for the page to display.= On a > > > 5.1-B box the user types `man ppp` and DOES NOT GET A MESSAGE BUT HAS= TO > > > WAIT 10 SECONDS before the page is displayed. > > > > > You got an explanation. >=20 > I still can't understand why you don't understand me, but I will shut up > now. I guess being a user on a slow box doesn't matter anymore. >=20 I DO understand what you're trying to tell me, I'm just trying to stand you corrected. ;) Facts: 1. When catpage is not created, the message is not displayed, purposedly, either on 4.x or 5.x, under root or non-root, doesn't matter. The message is only displayed the first time the catpage is created. 2. A catpage is always created for a root user. 3. A catpage (for a system manpage) is only created for a non-root user if man(1) is setuid "man". The facts are true for both 4.x and 5.x. If you remove the -DSETREUID bit from src/gnu/usr.bin/man/man/Makefile in 4.x, you won't get the message there too. So, to brought the message back in 5.x, we'd have to re- enable the setuid code in man(1), which we're not ready to yet. Got it? -- If catpages aren't created, my timings are as follows on a 500MHz Celeron box: $ /usr/bin/time -h man ppp >/dev/null 4,20s real 4,07s user 0,09s sys But if I just type "man ppp", I'm presented with the first page of output in about 1 second, so I roughly "don't have to wait when the whole manpage gets formatted". How much seconds does it take for some text to appear on a terminal attached to your slow box in this case? 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 --juZjCTNxrMaZdGZC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+yN/SUkv4P6juNwoRAjBlAJ9q7zb1MtamRaQ36SqsQr5Uh5nAAgCfYlA6 ADn+Y+dG8QiPNQXzcGlgUYM= =KMvL -----END PGP SIGNATURE----- --juZjCTNxrMaZdGZC--