9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Newbie questions.
Date: Wed,  7 Feb 2001 12:21:30 -0500	[thread overview]
Message-ID: <200102071721.MAA24998@smtp2.fas.harvard.edu> (raw)

	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



             reply	other threads:[~2001-02-07 17:21 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-07 17:21 Russ Cox [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-09-18  1:14 Terry Wendt
2013-09-18  5:42 ` Deepak Chawla
2013-09-18  8:02   ` Richard Miller
2013-09-18  8:23     ` Jens Staal
2013-09-18 12:41       ` erik quanstrom
2013-09-19 14:02         ` Matthew Veety
2007-12-07  9:58 Bob
2007-12-07 12:17 ` Steve Simon
2007-12-07 14:33   ` C H Forsyth
2007-06-01  8:44 [9fans] Newbie Questions chutsu
2007-06-01 10:40 ` cej
2007-06-01  8:44 chutsu
2007-06-01  9:06 ` Gabriel Diaz
2007-06-01 11:17 ` erik quanstrom
2007-06-01 15:25   ` Lorenzo Fernando Bivens de la Fuente
2007-06-01 15:33     ` Laurent Malvert
2007-06-01 15:39       ` Lorenzo Fernando Bivens de la Fuente
2007-06-01 15:46         ` andrey mirtchovski
2007-06-01 16:06           ` Laurent Malvert
2007-06-01 16:09             ` Lorenzo Fernando Bivens de la Fuente
2007-06-01 18:07               ` Laurent Malvert
2007-06-01 17:23           ` Kris Maglione
2001-02-08 22:21 [9fans] Newbie questions forsyth
2001-02-09  9:40 ` Michael Collins
2001-02-09 15:36   ` Douglas A. Gwyn
2001-02-08 19:29 anothy
2001-02-07 21:05 Russ Cox
2001-02-08  9:42 ` Michael Collins
2001-02-07 19:05 Russ Cox
2001-02-07 18:13 ` mike
2001-02-08  9:42 ` Michael Collins
2001-02-07 18:12 nigel
2001-02-07 17:04 Russ Cox
2001-02-07 17:53 ` mike
2001-02-07 10:08 nigel
2001-02-07  9:46 Michael Collins
2001-02-07 17:13 ` Lucio De Re

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200102071721.MAA24998@smtp2.fas.harvard.edu \
    --to=rsc@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).