Quick Multi-Core Question

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Quick Multi-Core Question

Post by 01000101 »

Hi, I've recently been thinking of implementing dual-core support in my OS. Does each core end up getting its own registeres? pipes? If so, would it be possible to set one core to take on network/packet handling and analysis while the other handle .... everything else (basic stuff, no instensity involved)?
User avatar
bluecode
Member
Member
Posts: 202
Joined: Wed Nov 17, 2004 12:00 am
Location: Germany
Contact:

Post by bluecode »

yes to evey question. I am not sure if a HT/Hyperthreading processor has separate pipes, but you were talking about dual-core anyway. But be aware that SMP is not just starting all the other cpus and than yelling "yeay, everything works in parallel". It takes a huge amount of synchronization in the kernel or your kernel will produce unpredictable results.
User avatar
bewing
Member
Member
Posts: 1401
Joined: Wed Feb 07, 2007 1:45 pm
Location: Eugene, OR, US

Post by bewing »

bluecode wrote: It takes a huge amount of synchronization in the kernel or your kernel will produce unpredictable results.
Unless your kernel is only running on one of those cores, and then all the synchronization problems go away again. (Except for IPC.)
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Post by 01000101 »

yes, I plan to completely redesign the core libraries with dual-core capabilities. My two test machines are both c2d's so I might as well take advantage of their best feature. 64-bit processing is not needed at the moment, or probably ever.

Thanks for the answers.
Post Reply