On 9/25/07, Dominic <[EMAIL PROTECTED]> 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
