is my micro-kernel too slow?
Posted: Mon Aug 30, 2010 4:07 am
hi,
i add my os to "what's your os like" today.http://forum.osdev.org/viewtopic.php?f= ... &start=855(at the bottom,with colorful big text "Trive" on the screen shot)
but there is still a problem confusing me: how fast the mkernel is can be acceptable?
I tested it on my real machine with AMD Athlon XII 240 today, under the condition of no other processes, no interrupt,[img]only[/img] the scheduler, the messager, and two threads.
In message test, it can send&rec 2,000,000 messages per second.
In mem alloc/free test, it can alloc&free 400,000 pages of 4k per second(2M page may be 100 times faster).
I'm wondering if it is too slow(i'm feeling so). i use regs to pass the messages like L4, and i think the only benifit is avoiding interprocess copy, with the huge cost of saving and recovering regs in send() and rec() which have to written in assembly.
How fast is your micro-kernel? And if yours is much faster, would you please introduce you algorithm?
Thank you!
i add my os to "what's your os like" today.http://forum.osdev.org/viewtopic.php?f= ... &start=855(at the bottom,with colorful big text "Trive" on the screen shot)
but there is still a problem confusing me: how fast the mkernel is can be acceptable?
I tested it on my real machine with AMD Athlon XII 240 today, under the condition of no other processes, no interrupt,[img]only[/img] the scheduler, the messager, and two threads.
In message test, it can send&rec 2,000,000 messages per second.
In mem alloc/free test, it can alloc&free 400,000 pages of 4k per second(2M page may be 100 times faster).
I'm wondering if it is too slow(i'm feeling so). i use regs to pass the messages like L4, and i think the only benifit is avoiding interprocess copy, with the huge cost of saving and recovering regs in send() and rec() which have to written in assembly.
How fast is your micro-kernel? And if yours is much faster, would you please introduce you algorithm?
Thank you!