Re: [PATCH] lockdep: Add nr_save_trace_invocations counter

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: John Kacur
Date: Friday, April 23, 2010 - 12:24 am

On Fri, 23 Apr 2010, Yong Zhang wrote:


Hi Yong

Some context here - Peter asked me to see if we could get some more 
detailed stats on why some configurations reach the 
MAX_STACK_TRACE_ENTRIES limit - whether the limit was really too low for 
some circumstances, or whether we were counting somethings unnecessarily.

In any case, I stamped a big NOT FOR INCLUSION on my mail, because I 
noticed that somethings were redundant - albeit, obtained in a slightly 
different manner, however, not everything is redundant.

In particular, nr_save_trace_invocations is NOT equal to nr_list_entries.
You will see that reported in /proc/lockdep_stats as
direct dependencies:                  8752 [max: 16384]
I have
stack-trace invocations: 10888
from the same run.

Still trying to figure out what the meaning is of that though to be 
honest.

Here is a portion of the lockdep_stats, with all of the new fields and the 
redundant ones.

stack-trace invocations: 10888
	LOCK_USED_IN_HARDIRQ: 15
	LOCK_USED_IN_HARDIRQ_READ: 0
	LOCK_ENABLED_HARDIRQ: 543
	LOCK_ENABLED_HARDIRQ_READ: 28
	LOCK_USED_IN_SOFTIRQ: 0
	LOCK_USED_IN_SOFTIRQ_READ: 0
	LOCK_ENABLED_SOFTIRQ: 543
	LOCK_ENABLED_SOFTIRQ_READ: 28
	LOCK_USED_IN_RECLAIM_FS: 5
	LOCK_USED_IN_RECLAIM_FS_READ: 0
	LOCK_ENABLED_RECLAIM_FS: 95
	LOCK_ENABLED_RECLAIM_FS_READ: 8
	LOCK_USED: 871
 combined max dependencies:          139841
 hardirq-safe locks:                     15
 hardirq-unsafe locks:                  543
 softirq-safe locks:                      0
 softirq-unsafe locks:                  543
 irq-safe locks:                         15
 irq-unsafe locks:                      543
 hardirq-read-safe locks:                 0
 hardirq-read-unsafe locks:              28
 softirq-read-safe locks:                 0
 softirq-read-unsafe locks:              28
 irq-read-safe locks:                     0
 irq-read-unsafe locks:                  28

So, you see that all of the reclaim fields are new,
        LOCK_USED_IN_RECLAIM_FS: 5
        LOCK_USED_IN_RECLAIM_FS_READ: 0
        LOCK_ENABLED_RECLAIM_FS: 95
        LOCK_ENABLED_RECLAIM_FS_READ: 8

I can create a patch for inclusion that adds the reclaim fields, the 
question is, is the nr_save_trace_invocations a useful stat for us or not?

Thanks
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] lockdep: Add nr_save_trace_invocations counter, Peter Zijlstra, (Thu Apr 22, 11:52 pm)
Re: [PATCH] lockdep: Add nr_save_trace_invocations counter, John Kacur, (Fri Apr 23, 12:24 am)
Re: [PATCH] lockdep: Add nr_save_trace_invocations counter, Peter Zijlstra, (Fri Apr 23, 1:05 am)
[PATCH] lockdep: reduce stack_trace usage, Yong Zhang, (Fri Apr 23, 6:40 am)
Re: [PATCH] lockdep: reduce stack_trace usage, Yong Zhang, (Sun Apr 25, 11:24 pm)
Re: [PATCH] lockdep: reduce stack_trace usage, Peter Zijlstra, (Mon May 3, 5:11 am)
Re: [PATCH] lockdep: reduce stack_trace usage, Yong Zhang, (Mon May 3, 11:37 pm)
[PATCH V2] lockdep: reduce stack_trace usage, Yong Zhang, (Mon May 3, 11:57 pm)
Re: [PATCH V2] lockdep: reduce stack_trace usage, Peter Zijlstra, (Tue May 4, 5:56 am)
Re: [PATCH V2] lockdep: reduce stack_trace usage, Yong Zhang, (Tue May 4, 6:31 pm)
Re: [PATCH V2] lockdep: reduce stack_trace usage, Peter Zijlstra, (Wed May 5, 2:09 am)
Re: [PATCH V2] lockdep: reduce stack_trace usage, Yong Zhang, (Wed May 5, 2:18 am)
[tip:core/locking] lockdep: Reduce stack_trace usage, tip-bot for Yong Zhang, (Fri May 7, 11:40 am)