9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] disabling swap
@ 2009-09-15  0:07 Steve Simon
  2009-09-15  0:51 ` erik quanstrom
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Simon @ 2009-09-15  0:07 UTC (permalink / raw)
  To: 9fans

I have just hit a fossil deadlock. the symptom is simple enough,
fossil wedged, stats continued to be updated and I could run whatis
in a rio window but any attempt to access the local fossil caused
the command to hang.

I was trying to mirror sources when it happened so I had a lot of
processes all writing to fossil at the same time - well, perhaps a dozen.

If anyone is interested I have put my 9pccpuf and a phone camera
image of ^t^t^p of the hang in http://www.quintile.net/doorstep/deadlock.jpg
and http://www.quintile.net/doorstep/9pccpuf.

If anyone extracts info from this I would like to learn how they do it.

I made a feeble attempt to diagnose the problem myself (below) and it looks
as though it was trying to swap, however, though I do have a /dev/sdXX/swap
I believe I have disabled the one place where swap is enabled (/cfg/$sysname/cpurc).

having said this I think /dev/mem is indicating that I _do_ have swap enabled. either
way I should not have been swapping as I have masses of free RAM.

-Steve (confused)


cpu% acid /386/9pccpuf
/386/9pccpuf:386 plan 9 boot image
/sys/lib/acid/port
/sys/lib/acid/386
acid: src(0xf01d3968)
/sys/src/9/port/fault.c:231
 226		k = kmap(new);
 227		kaddr = (char*)VA(k);
 228
 229		if(loadrec == 0) {			/* This is demand load */
 230			c = s->image->c;
>231			while(waserror()) {
 232				if(strcmp(up->errstr, Eintr) == 0)
 233					continue;
 234				kunmap(k);
 235				putpage(new);
 236				faulterror("sys: demand load I/O error", c, 0);
acid: src(0xf01d730f)
/sys/src/9/port/proc.c:576
 571		/* Only reliable way to see if we are Running */
 572		if(p->mach == 0) {
 573			p->newtlb = 1;
 574			ok = 1;
 575		}
>576		unlock(runq);
 577		spllo();
 578
 579		return ok;
 580	}
 581
acid:
cpu%

cpu% cat /dev/swap
2134908928 memory
4096 pagesize
27037 kernel
112466/494181 user
0/160000 swap
4588640/71348716 kernel malloc
0/16777216 kernel draw

cpu% grep swap /cfg/$sysname/cpurc
# swap is broken
# swap `{ls /dev/fs/swap /dev/sd*/swap >[2] /dev/null | sed 1q}



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

end of thread, other threads:[~2009-09-15  0:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-15  0:07 [9fans] disabling swap Steve Simon
2009-09-15  0:51 ` erik quanstrom

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