Re: Updated rusage patch
- From: Attilio Rao <attilio@xxxxxxxxxxx>
- Date: Tue, 05 Jun 2007 11:29:59 +0200
Bruce Evans wrote:
On Fri, 1 Jun 2007, Jeff Roberson wrote:
Please grep for statclock in threadlock.diff. This removes time_lock from statclock all together and protects the whole thing with thread_lock(). With this change all cpus can execute statclock() concurrently with sched_smp.c. This patch also has fixes for locking ruxagg() as well as asserts. It does not yet protect the ru copying in exit(). I want to figure out the synchronization issues with wait first.
I don't want to get involved reviewing another large[r] patch.
A bug turned up with the previously committed patches: the swapper
process is now shown as having a runtime of 40-47 seconds after
booting (and never changes after that), but I don't use swapping and
this process has always been shown as having a runtime of 0 seconds
before.
The bug seems to be that proc0_post() doesn't know anything about the
rusage fields in the thread struct. Until recently, it was only missing
initialization of td_*ticks. Now it is missing initialization of
td_runtime too, so the bug is more obvious.
Yes, I always wondered why proc0_post() doesn't initialize [s,i,u]ticks too.
However, could you please give a look and a try to this patch:
http://users.gufi.org/~rookie/works/patches/schedlock/proc_post.diff
and see if it solves your problem.
Thanks,
Attilio
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Updated rusage patch
- From: Bruce Evans
- Re: Updated rusage patch
- References:
- Re: Updated rusage patch
- From: Bruce Evans
- Re: Updated rusage patch
- From: Jeff Roberson
- Re: Updated rusage patch
- From: Bruce Evans
- Re: Updated rusage patch
- From: Jeff Roberson
- Re: Updated rusage patch
- From: Bruce Evans
- Re: Updated rusage patch
- Prev by Date: New cpu_switch() and cpu_throw().
- Next by Date: Re: Updated rusage patch
- Previous by thread: Re: Updated rusage patch
- Next by thread: Re: Updated rusage patch
- Index(es):
Relevant Pages
|
|