All of lore.kernel.org
 help / color / mirror / Atom feed
* idle-page marking in page-types tool
@ 2019-03-15 15:32 Joel Fernandes
  2019-03-25  3:10 ` Joel Fernandes
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Fernandes @ 2019-03-15 15:32 UTC (permalink / raw)
  To: Christian Hansen, open list:MEMORY MANAGEMENT, Andrew Morton

Hi Christian,
I am looking into idle page tracking and noticed the page-types tool
in tools/vm/. It seems you are only marking pages as idle if the -f
option is passed ("Walk file address space").

I was curious why you decided do the marking of idle pages only for
files and not anonymous pages?
As doing in the following code:
        if (opt_mark_idle && opt_file)
                page_idle_fd = checked_open(SYS_KERNEL_MM_PAGE_IDLE, O_RDWR);

We mainly want to do idle page tracking for anonymous regions to
determine howmuch  of its anonymous memory is a process really using
actively.

But I was curious what was the reason you did it this way?

thanks,
 - Joel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: idle-page marking in page-types tool
  2019-03-15 15:32 idle-page marking in page-types tool Joel Fernandes
@ 2019-03-25  3:10 ` Joel Fernandes
  0 siblings, 0 replies; 2+ messages in thread
From: Joel Fernandes @ 2019-03-25  3:10 UTC (permalink / raw)
  To: Christian Hansen, open list:MEMORY MANAGEMENT, Andrew Morton

Hi,

Ping? Thanks a lot.

On Fri, Mar 15, 2019 at 08:32:18AM -0700, Joel Fernandes wrote:
> Hi Christian,
> I am looking into idle page tracking and noticed the page-types tool
> in tools/vm/. It seems you are only marking pages as idle if the -f
> option is passed ("Walk file address space").
> 
> I was curious why you decided do the marking of idle pages only for
> files and not anonymous pages?
> As doing in the following code:
>         if (opt_mark_idle && opt_file)
>                 page_idle_fd = checked_open(SYS_KERNEL_MM_PAGE_IDLE, O_RDWR);
> 
> We mainly want to do idle page tracking for anonymous regions to
> determine howmuch  of its anonymous memory is a process really using
> actively.
> 
> But I was curious what was the reason you did it this way?
> 
> thanks,
>  - Joel
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-25  3:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-15 15:32 idle-page marking in page-types tool Joel Fernandes
2019-03-25  3:10 ` Joel Fernandes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.