Re: [PATCH V5] x86/mm: Tracking linear mapping split events

2021-01-28 Thread Saravanan D
Hi Dave, > > Eek. There really doesn't appear to be a place in Documentation/ that > we've documented vmstat entries. > > Maybe you can start: > > Documentation/admin-guide/mm/vmstat.rst > I was also very surprised that there does not exist documentation for vmstat, that lead me to add a

Re: [PATCH V5] x86/mm: Tracking linear mapping split events

2021-01-28 Thread Saravanan D
Hi Mathew, > Is this tracing of userspace programs causing splits, or is it kernel > tracing? Also, we have lots of kinds of tracing these days; are you > referring to kprobes? tracepoints? ftrace? Something else? It has to be kernel tracing (kprobes, tracepoints) as we are dealing with dire

Re: [PATCH V5] x86/mm: Tracking linear mapping split events

2021-01-28 Thread Song Liu
> On Jan 28, 2021, at 8:33 AM, Zi Yan wrote: > > On 28 Jan 2021, at 5:49, Saravanan D wrote: > >> To help with debugging the sluggishness caused by TLB miss/reload, >> we introduce monotonic lifetime hugepage split event counts since >> system state: SYSTEM_RUNNING to be displayed as part of >

Re: [PATCH V5] x86/mm: Tracking linear mapping split events

2021-01-28 Thread Zi Yan
On 28 Jan 2021, at 11:41, Dave Hansen wrote: > On 1/28/21 8:33 AM, Zi Yan wrote: >>> One of the many lasting (as we don't coalesce back) sources for >>> huge page splits is tracing as the granular page >>> attribute/permission changes would force the kernel to split code >>> segments mapped to hug

Re: [PATCH V5] x86/mm: Tracking linear mapping split events

2021-01-28 Thread Dave Hansen
On 1/28/21 8:33 AM, Zi Yan wrote: >> One of the many lasting (as we don't coalesce back) sources for >> huge page splits is tracing as the granular page >> attribute/permission changes would force the kernel to split code >> segments mapped to huge pages to smaller ones thereby increasing >> the pr

Re: [PATCH V5] x86/mm: Tracking linear mapping split events

2021-01-28 Thread Zi Yan
On 28 Jan 2021, at 5:49, Saravanan D wrote: > To help with debugging the sluggishness caused by TLB miss/reload, > we introduce monotonic lifetime hugepage split event counts since > system state: SYSTEM_RUNNING to be displayed as part of > /proc/vmstat in x86 servers > > The lifetime split event

Re: [PATCH V5] x86/mm: Tracking linear mapping split events

2021-01-28 Thread Matthew Wilcox
On Thu, Jan 28, 2021 at 02:49:34AM -0800, Saravanan D wrote: > One of the many lasting (as we don't coalesce back) sources for huge page > splits is tracing as the granular page attribute/permission changes would > force the kernel to split code segments mapped to huge pages to smaller > ones there