9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] strangeness on a server
       [not found] <<13426df10911291403m64599f85mfcc91325b63a661@mail.gmail.com>
@ 2009-11-29 22:34 ` erik quanstrom
  2009-11-29 23:08   ` ron minnich
  0 siblings, 1 reply; 4+ messages in thread
From: erik quanstrom @ 2009-11-29 22:34 UTC (permalink / raw)
  To: 9fans

> one thing that I don't understand: when it starts up I get a line like this:
> mem -1 bcmem 0 icmem 0
>
> Does this point to misconfiguration or will venti do something reasonable here?

it looks like a little bit of misconfiguration, which the current
code makes too easy.  i'm not sure this is the root cause of
your problems.  since venti also does a big dance to try to make
memory misconfiguration non-fatal.

did you upgrade the hardware?  i have some tricks in
9atom (source ftp://ftp.quanstro.net/other/kernel.mkfs.bz2)
in particular, /dev/irqalloc has an extra field that will tell you
how many interrupts a particular vector has taken.  this
can be useful in narrowing down the guilty parties.

- erik

/n/dump/2009/1129/sys/src/cmd/venti/srv/venti.c:54,59 - /sys/src/cmd/venti/srv/venti.c:54,70
  }

  void
+ minmem(u32int *mem, u32int *icmem, u32int *bcmem)
+ {
+ 	if ((int)*icmem < 6 * 1024 * 1024)
+ 		*icmem = 6 * 1024 * 1024;
+ 	if ((int)*mem < 1 * 1024 * 1024)		/* lumps */
+ 		*mem = 1 * 1024 * 1024;
+ 	if ((int)*bcmem < 2 * 1024 * 1024)
+ 		*bcmem = 2 * 1024 * 1024;
+ }
+
+ void
  usage(void)
  {
  	fprint(2, "usage: venti [-Ldrsw] [-a ventiaddr] [-c config] "
/n/dump/2009/1129/sys/src/cmd/venti/srv/venti.c:184,195 - /sys/src/cmd/venti/srv/venti.c:195,201
  			mem = avail;
  			bcmem = 2 * avail;
  		}
- 		if (icmem < 6 * 1024 * 1024)
- 			icmem = 6 * 1024 * 1024;
- 		if (mem < 1 * 1024 * 1024)		/* lumps */
- 			mem = 1 * 1024 * 1024;
- 		if (bcmem < 2 * 1024 * 1024)
- 			bcmem = 2 * 1024 * 1024;
+ 		minmem(&mem, &icmem, &bcmem);
  		config.mem = mem;
  		config.bcmem = bcmem;
  		config.icmem = icmem;
/n/dump/2009/1129/sys/src/cmd/venti/srv/venti.c:201,207 - /sys/src/cmd/venti/srv/venti.c:207,214
  		bcmem = config.bcmem;
  	if(icmem == 0)
  		icmem = config.icmem;
- 	fprint(2, "%s: mem %d bcmem %d icmem %d...", argv0, mem, bcmem, icmem);
+ 	minmem(&mem, &icmem, &bcmem);
+ 	fprint(2, "%s: mem %ud bcmem %ud icmem %ud...", argv0, mem, bcmem, icmem);

  	if(haddr == nil)
  		haddr = config.haddr;



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] strangeness on a server
  2009-11-29 22:34 ` [9fans] strangeness on a server erik quanstrom
@ 2009-11-29 23:08   ` ron minnich
  0 siblings, 0 replies; 4+ messages in thread
From: ron minnich @ 2009-11-29 23:08 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On a hint from Geoff I did this:

Nov 29 17:57:56 EST 2009 local.c 5559 [bootes]
local.c:227 c /n/dump/2009/1129/sys/src/9/boot/local.c:227
< 			run("/boot/venti", "-c", f[0], "-m", "20", "-a", f[1], "-h", f[2], 0);
---
> 			run("/boot/venti", "-c", f[0], "-a", f[1], "-h", f[2], 0);

And things are *much* better.

I wonder if this should not be the default for local.c.

ron



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] strangeness on a server
       [not found] <<13426df10911291508n197d48b8ia9276c094f16a7d7@mail.gmail.com>
@ 2009-11-30  1:07 ` erik quanstrom
  0 siblings, 0 replies; 4+ messages in thread
From: erik quanstrom @ 2009-11-30  1:07 UTC (permalink / raw)
  To: 9fans

> Nov 29 17:57:56 EST 2009 local.c 5559 [bootes]
> local.c:227 c /n/dump/2009/1129/sys/src/9/boot/local.c:227
> < 			run("/boot/venti", "-c", f[0], "-m", "20", "-a", f[1], "-h", f[2], 0);
> ---
> > 			run("/boot/venti", "-c", f[0], "-a", f[1], "-h", f[2], 0);
>
> And things are *much* better.
>
> I wonder if this should not be the default for local.c.

that makes sense.  the problem i have is that venti is
either trying too hard to fix bad defaults, or not hard
enough.  i think it should just do what we tell it and
crash if it gets unreasonable input.

- erik



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [9fans] strangeness on a server
@ 2009-11-29 22:03 ron minnich
  0 siblings, 0 replies; 4+ messages in thread
From: ron minnich @ 2009-11-29 22:03 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

OK, I'm seeing the following: 1500 syscalls/second, steady disk
activity, pegged really, while I'm not really doing anything, tends to
climb to 10000 (!). This just started 2 days ago when I upgraded ...
it had been a while. dma is enabled.

I'm suspecting venti or fossil or interaction but ... what's a good
way to tell. I also just realized that this is an old disk and I'm
running new venti. I don't have a bloom filter. Will that cause huge
trouble -- it does not seem to have.

I assume it is still safe to write a new config to /dev/sdC0/arenas as
in old venti? I want to set up the http port on venti to a more useful
value for me.

one thing that I don't understand: when it starts up I get a line like this:
mem -1 bcmem 0 icmem 0

Does this point to misconfiguration or will venti do something reasonable here?

thanks

ron



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-30  1:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <<13426df10911291403m64599f85mfcc91325b63a661@mail.gmail.com>
2009-11-29 22:34 ` [9fans] strangeness on a server erik quanstrom
2009-11-29 23:08   ` ron minnich
     [not found] <<13426df10911291508n197d48b8ia9276c094f16a7d7@mail.gmail.com>
2009-11-30  1:07 ` erik quanstrom
2009-11-29 22:03 ron minnich

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).