Wednesday, January 12, 2011

Packet receiving flow on NetBSD/i386

OpenBSD forked from NetBSD long years ago, but the code are still similar.
I even could reuse the OpenBSD chart for this.

I checked lock granularity and how parallelized, unfortunately it doesn't allow multiple cpus process hw interrupt or software interrupt in parallel.
It does allow multiple cpus entering system call on same time, but only one processor can run network software interrupt because it locks whole network subsystem.
And hw interrupt takes big kernel lock.


2 comments:

  1. Thank you for this! I like your useful blog :)
    Here is inteetsting company that offers pipe renovations, maintenance, drainage, insulation and other services: www.lvisalmenautio.fi

    ReplyDelete