From owner-freebsd-bugs Fri Jan 7 6:46: 3 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from kronos.alcnet.com (kronos.alcnet.com [63.69.28.22]) by hub.freebsd.org (Postfix) with ESMTP id 33F4514FE9 for ; Fri, 7 Jan 2000 06:46:00 -0800 (PST) (envelope-from kbyanc@posi.net) X-Provider: ALC Communications, Inc. http://www.alcnet.com/ Received: from localhost (kbyanc@localhost) by kronos.alcnet.com (8.9.3/8.9.3/antispam) with ESMTP id JAA15020; Fri, 7 Jan 2000 09:45:54 -0500 (EST) Date: Fri, 7 Jan 2000 09:45:54 -0500 (EST) From: Kelly Yancey X-Sender: kbyanc@kronos.alcnet.com To: Jens Schweikhardt Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/15832: the w commands can show a bad result on the idle time In-Reply-To: <200001070940.BAA96650@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 7 Jan 2000, Jens Schweikhardt wrote: > The following reply was made to PR bin/15832; it has been noted by GNATS. > > From: Jens Schweikhardt > To: freebsd-gnats-submit@FreeBSD.org, admin@ewan.qc.ca > Cc: > Subject: Re: bin/15832: the w commands can show a bad result on the idle time > Date: Fri, 07 Jan 2000 10:32:30 +0100 > > I have discovered the same and tried to investigate > a little (last night at 11pm... so beware). > > The bogus idle time happens on my 3.2-RELEASE system > when I (eg) start a new xterm which needs a new pty, > say /dev/ttypq. If I do not type anything in the new > xterm's shell, /usr/bin/w uses /dev/ttypq's st_atimesec > (as displayed by ls -u /dev/ttypq) > as the last "active" point in time which can well be > beyond the uptime. > > I'm not sure if this is w's fault or if the st_atimesec > of the pty is not properly updated when the pty is used > (opened?). As soon as I run some command in that pty, > everything is okay. > I don't suppose you have the noatime option set for the root filesystem? Kelly -- Kelly Yancey - kbyanc@posi.net - Richmond, VA Analyst / E-business Development, Bell Industries http://www.bellind.com/ Maintainer, BSD Driver Database http://www.posi.net/freebsd/drivers/ Coordinator, Team FreeBSD http://www.posi.net/freebsd/Team-FreeBSD/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message