9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@swtch.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] syscall spikes
Date: Wed, 18 Apr 2007 12:53:12 -0400	[thread overview]
Message-ID: <20070418165314.CC74B1E8C26@holo.morphisms.net> (raw)
In-Reply-To: <9ab217670704170715i1e62ed48k9817177886add100@mail.gmail.com>

> I've been having syscall spikes. It's really weird. There will be
>>40,000 in 1 second, (according to stats(8)) and it appears at a
> fairly regular interval. I've tried running kprof, but I'm not sure
> that it's running a global profile. Namely, when I come out of it, I
> have tons of time spent in ``halt'', with very, very few (<100)
> syscalls. Any ideas what I can do to find the culprit? It's gapping
> sound playback, which is really annoying.

You figured out that this is caused by two timesyncs.

However, it might not be caused by the timesyncs actually
issuing that many system calls as much as fighting over
what time means.  So probably you're not having 40,000
system calls but in fact the clock is being slowed/stopped
in the kernel, which makes the devaudio sleep take too long.

Russ



  parent reply	other threads:[~2007-04-18 16:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-17 14:15 Devon H. O'Dell
2007-04-17 14:36 ` Uriel
2007-04-17 15:22   ` Devon H. O'Dell
2007-04-17 15:38     ` Devon H. O'Dell
2007-04-17 15:45       ` erik quanstrom
2007-04-17 15:56         ` Devon H. O'Dell
2007-04-17 16:29           ` Devon H. O'Dell
2007-04-17 16:39             ` Devon H. O'Dell
2007-04-17 15:49       ` Charles Forsyth
2007-04-18 16:53 ` Russ Cox [this message]
2007-04-18 16:59   ` Devon H. O'Dell

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=20070418165314.CC74B1E8C26@holo.morphisms.net \
    --to=rsc@swtch.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).