Question(s) kernel

Sepherosa Ziehau sepherosa at gmail.com
Tue Sep 25 08:47:25 PDT 2007


On 9/25/07, Dominic <nospam at nospam.com> wrote:
> Hi
>
> I have been browsing the Dragonfly kernel code and two questions came up:
>
> (1) if a user process causes many "lwkt_sendmsg", either by directly
> invoking it or through
>      some table based system call. Could this lead to memory exhaustion in
> the kernel by flooding
>      the target port and eventually crash the system?
>
> (2) http://fxr.watson.org/fxr/source/netinet/if_ether.c?v=DFBSD#L832
>    "lwkt_domsg(rtable_portfn(0), &msg.netmsg.nm_lmsg, 0);"
>    Is this always using cpu 0 ? And if, why?

Yes and no.  It does send message to CPU0, but you need to take a look
at the associated massage handler, which forwards the message to the
rest of CPUs.

Best Regards,
sephe

-- 
Live Free or Die





More information about the Kernel mailing list