Alfred Perlstein wrote:
>
> * Thierry Herbelot <[EMAIL PROTECTED]> [010319 11:43] wrote:
> > Hello,
> >
> > I'm developping a network benchmark application ("packet blaster").
> >
> > The current version uses many processes, to send and receive packets,
> > and collate statistics.
> > when I look at top(1), I see most of the time taken is in the "system"
> > category. I assume this is due to the many context switches between the
> > collaborating processes.
>
> You're incorrect. System means just about any time spent inside the
> kernel (except interrupts), so basically syscalls count towards this
> meaning that your application is driving the kernel pretty hard.
>
> This is easy for a team of processes, but nearly impossible with
> a thread based approach.
could you please elaborate ? (indeed, if you could also shed some light
on the first question : how frequently are threads rescheduled ?)
>
> You don't want to use threads.
>
> --
> -Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
PS : the TI-RPC commit was a nice one !
--
Thierry Herbelot
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message