lkml.org 
[lkml]   [2020]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] mm/page_owner: Record timestamp and pid
From
Date
On 11/12/20 21:14, Andrew Morton wrote:
> On Thu, 12 Nov 2020 20:41:06 +0200 Georgi Djakov <georgi.djakov@linaro.org> wrote:
>
>> From: Liam Mark <lmark@codeaurora.org>
>>
>> Collect the time for each allocation recorded in page owner so that
>> allocation "surges" can be measured.
>>
>> Record the pid for each allocation recorded in page owner so that
>> the source of allocation "surges" can be better identified.
>
> Please provide a description of why this is considered useful. What
> has it been used for, what problems has it been used to solve?

Thanks for the quick feedback. I'll add more details in the commit message
when i post v2 next week.

>
> Are there userspace tools which aid in the processing of this new
> information?

I'm not aware of any.

>
> Can/should Documentation/vm/page_owner.rst be updated?

Yeah, probably i should update at least the size of the objects.

>> --- a/mm/page_owner.c
>> +++ b/mm/page_owner.c
>> @@ -10,6 +10,7 @@
>> #include <linux/migrate.h>
>> #include <linux/stackdepot.h>
>> #include <linux/seq_file.h>
>> +#include <linux/sched/clock.h>
>>
>> #include "internal.h"
>>
>> @@ -25,6 +26,8 @@ struct page_owner {
>> gfp_t gfp_mask;
>> depot_stack_handle_t handle;
>> depot_stack_handle_t free_handle;
>> + u64 ts_nsec;
>> + int pid;
>
> pid_t would be nicer?

Yes, indeed! Thank you!

BR,
Georgi

\
 
 \ /
  Last update: 2020-11-13 21:41    [W:0.067 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site