On 02/27/2011 18:00, David Xu wrote:
I think in normal case, pthread_cond_signal will wake up one thread,
but other events for example, UNIX signal and fork() may interrupt
a thread sleeping in kernel, and cause pthread_cond_wait to return
to userland, this is called spurious wakeup, and other ev
Hi,
without procfs, there is a way to get usertime and systime from a
running process?
Thiago
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-uns
On Wed, 2011-03-16 at 14:02 -0300, Thiago Damas wrote:
> Hi,
> without procfs, there is a way to get usertime and systime from a
> running process?
>
Maybe:
ps axwwwo pid,time,command
According to ps(1):
time ... "accumulated cpu time, user + system"
Unfortunately, I'm not able to f
In the last episode (Mar 16), Thiago Damas said:
> Hi,
> without procfs, there is a way to get usertime and systime from a
> running process?
Try applying the attached patch to ps. I've had it for a while but never
submitted a PR.
Heh. I've had it for a very long time.
http://lists.freebsd.
Hi,
the patch worked for me, using RELENG_8_2
Very thanks!
Thiago
2011/3/16 Dan Nelson :
> In the last episode (Mar 16), Thiago Damas said:
>> Hi,
>> without procfs, there is a way to get usertime and systime from a
>> running process?
>
> Try applying the attached patch to ps. I've
On Wed, 2011-03-16 at 12:56 -0500, Dan Nelson wrote:
> In the last episode (Mar 16), Thiago Damas said:
> > Hi,
> > without procfs, there is a way to get usertime and systime from a
> > running process?
>
> Try applying the attached patch to ps. I've had it for a while but never
> submitted
On Wed, Mar 16, 2011 at 12:56:14PM -0500, Dan Nelson wrote:
> In the last episode (Mar 16), Thiago Damas said:
> > Hi,
> > without procfs, there is a way to get usertime and systime from a
> > running process?
>
> Try applying the attached patch to ps. I've had it for a while but never
> subm
On Wed, 16 Mar 2011 14:42:22 -0500, Devin Teske wrote:
+1 useful.
I'd like to see this committed.
Agreed.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freeb
In the last episode (Mar 16), Kostik Belousov said:
> On Wed, Mar 16, 2011 at 12:56:14PM -0500, Dan Nelson wrote:
> > In the last episode (Mar 16), Thiago Damas said:
> > > Hi,
> > > without procfs, there is a way to get usertime and systime from a
> > > running process?
> >
> > Try applying t
On 2011/03/16 23:23, Yuri wrote:
> On 02/27/2011 18:00, David Xu wrote:
>> I think in normal case, pthread_cond_signal will wake up one thread,
>> but other events for example, UNIX signal and fork() may interrupt
>> a thread sleeping in kernel, and cause pthread_cond_wait to return
>> to userland,
On Wed, Mar 16, 2011 at 6:54 PM, David Xu wrote:
> On 2011/03/16 23:23, Yuri wrote:
>> On 02/27/2011 18:00, David Xu wrote:
>>> I think in normal case, pthread_cond_signal will wake up one thread,
>>> but other events for example, UNIX signal and fork() may interrupt
>>> a thread sleeping in kerne
11 matches
Mail list logo