From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200102071721.MAA24998@smtp2.fas.harvard.edu> To: 9fans@cse.psu.edu Subject: Re: [9fans] Newbie questions. From: "Russ Cox" MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Wed, 7 Feb 2001 12:21:30 -0500 Topicbox-Message-UUID: 5bb1687c-eac9-11e9-9e20-41e7f4b1d025 The reason the sysload graph doesn't reflect packets is because it is activated early, before the ethernet card is activated. The graph's namespace does not include an active view of the network devices. Took me a little while to puzzle that one out :-( Aha. Didn't realize that was the question. It's not namespace but rather that the stats file doesn't exist until a connection has been established. Look in stats.c:/^initmach: snprint(buf, sizeof buf, "%s/net/ether0/0/stats", mpt); m->etherfd = open(buf, OREAD); before these two lines add /* open ether0/clone so ether0/0 exists */ snprint(buf, sizeof buf, "%s/net/ether0/clone", mpt); close(open(buf, OREAD)); and you won't have the problem anymore. Russ