From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] syscall spikes From: "Russ Cox" Date: Wed, 18 Apr 2007 12:53:12 -0400 In-Reply-To: <9ab217670704170715i1e62ed48k9817177886add100@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20070418165314.CC74B1E8C26@holo.morphisms.net> Topicbox-Message-UUID: 4c15341c-ead2-11e9-9d60-3106f5b1d025 > 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