Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 2003 04:58:17 -0700 (PDT)
From:      Sergey Kosyakov <ks4usa@yahoo.com>
To:        deischen@freebsd.org
Cc:        freebsd-threads@freebsd.org
Subject:   Re: The first kse_create call
Message-ID:  <20030618115817.99930.qmail@web12404.mail.yahoo.com>
In-Reply-To: <Pine.GSO.4.10.10306171650350.8492-100000@pcnet5.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--- Daniel Eischen <eischen@vigrid.com> wrote:
> > but I never got upcall on the first kse. When I create another KSE
> (and
> > another KSE group) I immediatelly get the upcall for this (second)
>
> This is the correct behavior.  The first kse_create() does not
> generate an immediate upcall.  It only flags the current context
> as being a KSE.  An upcall in this initial KSE will take place
> under the same conditions as other KSEs (KSE mailbox has a thread
> mailbox pointer and thread blocks, quantum expires, etc).

How I can set the quantum? Is km_quantum from kse_mailbox the right
place? I did not get any upcall when I set it.

Also found, that "ps" and "top" do not show CPU utilization at least
when one KSE with mailbox exists (5.1-RELEASE): 
1036  p4  R+     0:00.00 ./kt

Process 1036 runs "printf" in loop.

Thanks,
Sergey.


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030618115817.99930.qmail>