Common OS/kernel code between freebsd and linux

Rayson Ho raysonlogin at gmail.com
Sat May 22 14:20:48 UTC 2010


The BSD TCP stack is at least in OpenVMS & QNX:

"Parallelism and Performance in the OpenVMS TCP/IP Kernel":
http://h71000.www7.hp.com/openvms/journal/v4/tcp_ip_scalable_kernel.html
http://h71000.www7.hp.com/openvms/journal/v4/tcp_ip_scalable_kernel.pdf

"Porting the NetBSD IP stack to a microkernel
RTOS":
http://www.bsdcan.org/2007/schedule/events/37.en.html

(The QNX guys emailed me the presentation PDF -- let me know if you
want a copy.)

But the design approach of each TCP stack is different - most are
designed for speed, some for small memory footprint, and the stack in
Solaris got rewritten in Solaris 10 because the old one was not good
enough on new multi-core machines (google: Solaris+FireEngine).

Further, the implementation & rules of synchronization point &
techniques in each OS is different, and thus I believe creating a
portable TCP stack is not easy - esp. you will need the Linux vs. *BSD
developers working together designing a common interface...

Rayson



On Sat, May 22, 2010 at 7:09 AM, Anjali Kulkarni <anjali at juniper.net> wrote:
> Hi Folks,
>
> I am not sure the right forum to ask this question - is there any effort done to find portable code between different OSes, particularly freebsd and linux?
> Specifically, the networking layer could be portable between the 2 and there could be some set of APIs to call into the OS specific parts. This could be modeled as - if I want to port the networking layer or other stuff to userland, what set of code could reside in userspace such that that layer is portable between OSes ? For eg, there could be an API to access mbufs or skbuffs in freebsd or linux respectively, but the processing to be done for IP etc could remain the same. I don't know if this is worth thinking about? Please share your thoughts.
>
> Anjali_______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>


More information about the freebsd-hackers mailing list