I was worndring about a thing in multiprocessors systems ( 2 or more cores), the question:
if i write code assume only work for 1 core, and the run the code on a 2 core , would it change anything;
let me put it this way:
in a multiprocesser system, does you have to "enable" the secound core ?
KMT dk
a question on multi processor desig / systems
a question on multi processor desig / systems
well, what to say, to much to do in too little space.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
Re: a question on multi processor desig / systems
Hi,
There is a lot to take in to account when you run your kernel on an SMP system.
To enable the second core, search for information about the IOAPIC, Local APIC's, ACPI and MP Tables. There's a load on the wiki and forum about this. You basically have to provide trampoline code to get the application processors in to the desired state.
Your kernel will have to take in to account 2 or more processes attempting to access the same resource simultaneously (memory and IO). You therefore also need to know about mutual exclusion in a big way.
Cheers,
Adam
There is a lot to take in to account when you run your kernel on an SMP system.
To enable the second core, search for information about the IOAPIC, Local APIC's, ACPI and MP Tables. There's a load on the wiki and forum about this. You basically have to provide trampoline code to get the application processors in to the desired state.
Your kernel will have to take in to account 2 or more processes attempting to access the same resource simultaneously (memory and IO). You therefore also need to know about mutual exclusion in a big way.
Cheers,
Adam
Re: a question on multi processor desig / systems
Your code can not magically run on two cores if it is designed for one. The code should be designed to take advantage of multiple cores.
Yes, you have to enable the second core yourself.
Yes, you have to enable the second core yourself.
Re: a question on multi processor desig / systems
thanks .
KMT dk
KMT dk
well, what to say, to much to do in too little space.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.