From owner-freebsd-current@FreeBSD.ORG Wed Aug 27 11:46:26 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4BC4106564A for ; Wed, 27 Aug 2008 11:46:26 +0000 (UTC) (envelope-from roberto@keltia.freenix.fr) Received: from keltia.freenix.fr (keltia.freenix.org [IPv6:2001:660:330f:f820:213:72ff:fe15:f44]) by mx1.freebsd.org (Postfix) with ESMTP id 468B68FC1A for ; Wed, 27 Aug 2008 11:46:26 +0000 (UTC) (envelope-from roberto@keltia.freenix.fr) Received: from localhost (localhost [127.0.0.1]) by keltia.freenix.fr (Postfix/TLS) with ESMTP id BCBB23AAA7 for ; Wed, 27 Aug 2008 13:46:23 +0200 (CEST) X-Virus-Scanned: amavisd-new at keltia.freenix.fr Received: from keltia.freenix.fr ([127.0.0.1]) by localhost (keltia.freenix.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nXmgbAX1Pl-l for ; Wed, 27 Aug 2008 13:46:23 +0200 (CEST) Received: by keltia.freenix.fr (Postfix/TLS, from userid 101) id 63ED63AAA2; Wed, 27 Aug 2008 13:46:23 +0200 (CEST) Date: Wed, 27 Aug 2008 13:46:23 +0200 From: Ollivier Robert To: freebsd-current@freebsd.org Message-ID: <20080827114623.GA52927@keltia.freenix.fr> References: <20080826124335.GD3305@carrot.paeps.cx> <48B416E7.70905@163.com> <20080827091255.GH3305@carrot.paeps.cx> <20080827132141.593e728d@peedub.jennejohn.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080827132141.593e728d@peedub.jennejohn.org> X-Operating-System: MacOS X / Macbook Pro - FreeBSD 7 / Dell D820 SMP User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: Enormous utmp since mpsafetty X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 27 Aug 2008 11:46:26 -0000 According to Gary Jennejohn: > There are many more pseudo-ttys in /etc/ttys now. AFAIK utmp allocates > an entry for every one of them at startup. utmp concepts are ancient. It is indexed by the tty/pty number so can grow rather large but it should be a sparse one too. I remember talks about replacing it with something a bit more modern. Backward compatibility is assured through login(3) although it would break programs digging in the utmp file itself. SVR4 had utmp/utmpx and setutline/getutline BTW... cf. sessreg(1) System V has a better interface to utmp than BSD; it dynamically allo- cates entries in the file, instead of writing them at fixed positions indexed by position in /etc/ttys. -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr Darwin sidhe.keltia.net Version 9.2.0: Tue Feb 5 16:13:22 PST 2008; i386