Re: kernel thread as real threads..



Gleb Smirnoff wrote:

On Fri, Jan 20, 2006 at 01:19:55AM -0500, Kris Kennaway wrote:
K> > the example I showed was the 'ps' from ddb which of course doesn't show K> > any stats anyhow.
K> K> Yeah, I know that, but they're also not displayed in ps(1) or top(1),
K> etc.


And this is a serious issue, that is present in our last releases. If a
was a newbie installing FreeBSD for first time, this fact will hurt my
impression about operating system most.


For KSE, threads are just a figment of the imagination of the kernel. A thread that
the kernel sees has no specific correlation to a thread that exists in an application.
Trying to associate stats with these threads is absolultely meaningless. The
processing time accumulated for a particular thread that the kernel sees could well
be the aggregate of a number of user threads, and those user threads are likely migrating
between the kernel threads. That's the whole point of M:N threading =-) Saying that
thread 1 did X amount of work and thread 2 did Y amount of work simply has no meaning,
other than that the parent process did X+Y amount of work.


For 1:1 threading is does make a little more sense. We'd have to come up with a way
to accurately express whether the thread accounting stats are meaningful or not depending
on which library is in use. Adding to the complexity would be that KSE can create system
and process scope threads, and that system scope threads behave mostly like 1:1 threads.
If someone wants to tackle all of this, that would be great, but my only request would be
that it can't sacrifice clarity in one library over another library.


Scott

_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Treat Murali with respect, CA tells fans
    ... if you want to play with the stats. ... Stats like that tend to become meaningless. ... My initial point was that stats used to 'prove' that Murali will need ... to bowl 150 odd overs and concede 500 runs in order to take 8 wickets ...
    (rec.sport.cricket)
  • Re: Treat Murali with respect, CA tells fans
    ... and another player's average moving in the wrong direction by about 8½% ... If one player averages 99.94 and another player averages 90,you'd say ... Stats like that tend to become meaningless. ...
    (rec.sport.cricket)
  • Re: Compiling a new RHEL-4 kernel
    ... But to get the kernel ... As far as your tape changer issue, verify that sg5 is indeed your ... If you get stats, read the mtx manpage about how to load/unload tapes. ... then manually issue a rewind at the end of the backup functions. ...
    (RedHat)
  • Re: Attributes
    ... useless complications and formulas. ... meaningless numbers, it will become impossible to figure out what will happen in an attack roll, so the author will conclude it must be ... For some reason people seem to think that to have stats implies to have hideously complicated game mechanics. ... which is about as simple as you can get, but is still fun. ...
    (rec.games.roguelike.development)
  • Re: defensive indifference.
    ... The run was utterly meaningless. ... really, if a team loses noplayer on thst team should get any stats, ... Therefore you have him concentrate on that task unless the baserunner could at least tie the ball game. ...
    (alt.sports.baseball.bos-redsox)