Greg Ames wrote: >>Also, do we have any data on syscalls per request during the spikes? >>Based on Greg's vmstat data showing a spike in syscalls/second concurrent >>with the spike in load, I'd >>expect that either: >> * The number of requests/second increased, or >> * The number of syscalls/request increased >> > >That's a very interesting question. I wish I could give you a good answer. Is >there some function that returns the total number of syscalls a process has >done? If so, we could create a patch to log the delta in the number of syscalls >at the end of each request, like I'm doing for cpu ticks now. >
I can't think of a portable way to do this; getrusage doesn't supply the syscall data. But if the /proc interface on FreeBSD provides access to a syscall counter, that might work. --Brian
