9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] disturbing disk access
Date: Sat,  2 Oct 2010 08:20:02 -0400	[thread overview]
Message-ID: <d5a0a4472fc7851d5903113bdedede31@plug.quanstro.net> (raw)
In-Reply-To: <AANLkTimjDj=Ap0dL=iGhBxG7WgAOVnKSt2+PDerbLbfz@mail.gmail.com>

> even when I 'do nothing' there is a disk access every cca 15 seconds
> on my plan9 notebook.
> Can anyone tell me why this happens? Can I find what causes it?

you can start with
	grep '(#S|/dev/sd..)/' /proc/*/fd

but obviously, that's just going to give you fossil or venti.

you can try looking for programs that might be sleeping for 15
seconds at a time,

minooka;  g 'sleep\(15[^)][^)]' . | awk -F: '{if($1 != o)print; o = $1}'
./faces/plumb.c:119: 			sleep(15000);
./upas/fs/fs.c:1603: 	sleep(15*1000);
./upas/pop3/pop3.c:710: 		sleep(15*1000);
./upas/imap4d/imap4d.c:858: 				sleep(15*1000);

if one of these is the culprit, it may be that your fs is writing
atimes to disk every 15 seconds.

> It's quite disturbing and perhaps unnecessary...

if the wild guess above is correct, you can either
- not run these programs, or
- use kfs with atime turned off rather than your current
fs setup.

- erik



  reply	other threads:[~2010-10-02 12:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-02  9:36 Rudolf Sykora
2010-10-02 12:20 ` erik quanstrom [this message]
2010-10-02 15:54   ` Rudolf Sykora
2010-10-02 16:03     ` erik quanstrom
2010-10-02 16:31       ` Rudolf Sykora
2010-10-02 16:39         ` 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=d5a0a4472fc7851d5903113bdedede31@plug.quanstro.net \
    --to=quanstro@quanstro.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).