9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Steve Simon" <steve@quintile.net>
To: 9fans@9fans.net
Subject: [9fans] disabling swap
Date: Tue, 15 Sep 2009 01:07:53 +0100	[thread overview]
Message-ID: <4ad0ed66d8a903a2b940d7d4a10914be@quintile.net> (raw)

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}



             reply	other threads:[~2009-09-15  0:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-15  0:07 Steve Simon [this message]
2009-09-15  0:51 ` erik quanstrom

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=4ad0ed66d8a903a2b940d7d4a10914be@quintile.net \
    --to=steve@quintile.net \
    --cc=9fans@9fans.net \
    /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).