we need a dtrace standard

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
mcheung63
Member
Member
Posts: 175
Joined: Thu Jun 22, 2006 8:33 am
Location: Hong Kong
Contact:

we need a dtrace standard

Post by mcheung63 »

Hi all. It is better for us to make a OS debugging information standard. Find a place in memory that we don't use, put the debugging information to there. Such as your kernel thread information, kernel memory usage, your slab of your memory allocator. Then we can make a dtrace for everybody.
thanks
from Peter
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: we need a dtrace standard

Post by Solar »

mcheung63 wrote:Find a place in memory that we don't use, put the debugging information to there. Such as your kernel thread information, kernel memory usage, your slab of your memory allocator. Then we can make a dtrace for everybody.
I like your enthusiasm, but... how would you identify such a memory location? We have exokernels here, microkernels and monolithic kernels. We have single-threading kernels. We have kernels that don't use slab allocation.

I am not sure if there could be a "one size fits all" dtrace. I fear you would end up with a behemoth of a tool that offers many platform-specific options...
Every good solution is obvious once you've found it.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: we need a dtrace standard

Post by Love4Boobies »

Not to mention several other issues like installed memory, type of firmware and complex NUMA systems. It's also dangerous in the sense that it's not forward compatible with other software that may appear in the future.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
mcheung63
Member
Member
Posts: 175
Joined: Thu Jun 22, 2006 8:33 am
Location: Hong Kong
Contact:

Re: we need a dtrace standard

Post by mcheung63 »

I think finding a memory location is not hard. Look at something like 0xb8000, people have to follow.
If we have a standard, os developer can make their os < 100% compatible with that standard, then he just use <100% of the feature.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: we need a dtrace standard

Post by Love4Boobies »

You don't get it. Even the information itself is OS-specific. There is no such thing as universal debugging information! Even something as trivial as "thread information" is impossible to be detailed in such a manner since there are so many ways of handling threads: kernel threads, user threads (no information at all?), scheduler activations, protothreads, microthreading, etc.

Also, the video memory thing is still around ever since the PC days (i.e., the one before PC-XT and PC-AT); it's been around since before auto-configuration so software is backward-compatible with it. May I ask what's wrong with our current (conventional) methods?
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
AaronMiller
Member
Member
Posts: 81
Joined: Thu Mar 06, 2008 1:26 pm
Location: Roseville, California (USA)
Contact:

Re: we need a dtrace standard

Post by AaronMiller »

I think such a system is best left for implementation by an emulator. An emulator could give information like how many context switches occur each second, how long each context switch took, which memory locations/ranges are getting accessed most for those contexts, and so on. Bochs offers some sort of a debugging system too, doesn't it?

Cheers,
-naota
Post Reply