CPU usage..??
Posted: Sun Apr 01, 2012 4:14 am
I am making a basic kernel using jamesM tutorial.
So far i have created a file system in main memroy.
Now i would like to calculate the cpu usage and the ram usage. Any idea on how to do this...??
Right now i have a flat memory model...the kernel only executes its main file and does not have multitasking as such i have not implemented paging. There is no deallocation function and the malloc function uses an int type placement address which normally contains the adrress of the end of the kernel. So i am assuming i could use this placement address for ram usage. Would i be correct in doing that..As i am assuming there is a unused stack space at the beginning portion of the memory.
I am using bochs and grub bootloader and for cpu usage calculation i have no idea. Any help on that would be appreciated.
So far i have created a file system in main memroy.
Now i would like to calculate the cpu usage and the ram usage. Any idea on how to do this...??
Right now i have a flat memory model...the kernel only executes its main file and does not have multitasking as such i have not implemented paging. There is no deallocation function and the malloc function uses an int type placement address which normally contains the adrress of the end of the kernel. So i am assuming i could use this placement address for ram usage. Would i be correct in doing that..As i am assuming there is a unused stack space at the beginning portion of the memory.
I am using bochs and grub bootloader and for cpu usage calculation i have no idea. Any help on that would be appreciated.