DragonFly kernel List (threaded) for 2007-09
DragonFly BSD
DragonFly kernel List (threaded) for 2007-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Question(s) kernel


From: "Sepherosa Ziehau" <sepherosa@xxxxxxxxx>
Date: Tue, 25 Sep 2007 23:41:55 +0800

On 9/25/07, Dominic <nospam@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]