*BSD News Article 45974


Return to BSD News archive

Xref: sserve comp.unix.questions:65907 comp.unix.bsd.misc:88 comp.unix.bsd.bsdi.misc:297
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nexus.coast.net!news.kei.com!news.mathworks.com!solaris.cc.vt.edu!usenet
From: mmead@Glock.COM (matthew c. mead)
Newsgroups: comp.unix.questions,comp.unix.bsd.misc,comp.unix.bsd.bsdi.misc
Subject: Re: help with 'w'
Date: 23 Jun 1995 05:47:22 GMT
Organization: Glock Telecommunications
Lines: 20
Message-ID: <MMEAD.95Jun23014722@Glock.COM>
References: <3schl4$120@news.mtu.edu>
NNTP-Posting-Host: glock.com
NNTP-Posting-User: mmead
In-reply-to: babucher@mtu.edu's message of 22 Jun 1995 19:52:04 GMT

>   What would slow down ONLY the w command while everything else
>   on the system (that I've tried) continues to run smoothly.
>   I type w and hit return, and it takes over a minute for there
>   to be any output from the w command concerning the users...
>   it gives the load average fine.

	If you're running 4.4 BSD, the entries in the utmp file are now ip
addresses if longer than a given limit.  Thus when you use "w," it's doing
a gethostbyname() on each of those to give you a hostname.  Hope this
helps...



-matt

-- 
Matthew C. Mead              | Network Administration: Virginia Tech Center for
                             | Transportation Research ->      mmead@ctr.vt.edu
mmead@Glock.COM              | Network Administration and Software Development
http://www.Glock.COM/~mmead/ | Consulting: BizNet Technologies -> mmead@bnt.com