看板 FB_smp 關於我們 聯絡資訊
2007/3/1, Keith Arner <vornum@gmail.com>: > I'm working on a project that needs high throughput, low latency TCP > traffic. > I'd like to be able to parallelize as much of the processing as possible, > across > several cores. > > I've done some early investigation in FreeBSD with direct dispatch enabled > (`sysctl net.isr.direct=1`). What I've discovered is that the system tends > to bottleneck with a lot of contention for INP_INFO_WLOCK(&tcbinfo). > Looking at the source code, it's apparent why this is; both tcp_input() > and tcp_usr_send() hold this mutex for the majority of their processing, > which effectively means that TCP input and output becomes single threaded. > (Though I see that this is relaxed in the output path in -CURRENT.) > > I see from Robert Watson's todo list (at http://wiki.freebsd.org/NetworkTodo > ) > that using a read/write lock over the pcb list is a work in progress. Are > there > any patches available that reflect whatever work has been done so far? Or > even any descriptions of what has been tried, and what the hard parts are? > > Keith Currently, the main problem for this is that somewhere (TM) there mutex gets recursed and recursion is not handled alredy for rwlocks, so kernel starts panicing. Patch for recursion in rwlock is not trivial, but there are ongoing discussions on it. Attilio -- Peace can only be achieved by understanding - A. Einstein _______________________________________________ freebsd-smp@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-smp To unsubscribe, send any mail to "freebsd-smp-unsubscribe@freebsd.org"