On Fri, 23 Jun 2006 15:07:28 -0700 Jay Lan <[email protected]> wrote: > >> %ovhd of tgid on over off > >> (higher is worse) > >> > >>Exit User Sys Elapsed > >>Rate Time Time Time > >> > >>2283 25.76 649.41 -0.14 > >>1193 -10.53 88.81 -0.12 > >>963 -11.90 3.28 -0.10 > >>806 -8.54 -0.84 0.16 > >>694 -4.41 2.38 0.03 > >> > > > >Oh wow. Something's gone quadratic there. > > > It was due to a loop in fill_tgid() when per-TG stats > data are assembled for netlink: > do { > rc = delayacct_add_tsk(stats, tsk); > if (rc) > break; > > } while_each_thread(first, tsk); > > and it is executed inside a lock. > Fortunately single threaded appls do not hit this code. Am I reading this right? We do that loop when each thread within the thread group exits? How come? Is there some better lock we can use in there? It only has to be threadgroup-wide rather than kernel-wide. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
- From: Shailabh Nagar <[email protected]>
- Re: [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
- References:
- [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
- From: Shailabh Nagar <[email protected]>
- Re: [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
- From: Andrew Morton <[email protected]>
- Re: [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
- From: Balbir Singh <[email protected]>
- Re: [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
- From: Andrew Morton <[email protected]>
- Re: [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
- From: Shailabh Nagar <[email protected]>
- Re: [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
- From: Jay Lan <[email protected]>
- Re: [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
- From: Jay Lan <[email protected]>
- Re: [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
- From: Shailabh Nagar <[email protected]>
- Re: [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
- From: Jay Lan <[email protected]>
- Re: [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
- From: Shailabh Nagar <[email protected]>
- Re: [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
- From: Andrew Morton <[email protected]>
- Re: [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
- From: Jay Lan <[email protected]>
- [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
- Prev by Date: Re: [Openipmi-developer] BUG: soft lockup detected on CPU#1, ipmi_si
- Next by Date: Re: [linux-pm] swsusp regression [Was: 2.6.17-mm1]
- Previous by thread: Re: [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
- Next by thread: Re: [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
- Index(es):