linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Michal Hocko <mhocko@suse.com>
Cc: Dmitry Rokosov <ddrokosov@salutedevices.com>,
	akpm@linux-foundation.org, mhiramat@kernel.org,
	hannes@cmpxchg.org, roman.gushchin@linux.dev,
	shakeelb@google.com, muchun.song@linux.dev,
	kernel@sberdevices.ru, rockosov@gmail.com,
	cgroups@vger.kernel.org, linux-mm@kvack.org,
	linux-kernel@vger.kernel.org, bpf@vger.kernel.org
Subject: Re: [PATCH v3 2/2] mm: memcg: introduce new event to trace shrink_memcg
Date: Wed, 29 Nov 2023 12:34:46 -0500	[thread overview]
Message-ID: <20231129123446.7d41c4e9@gandalf.local.home> (raw)
In-Reply-To: <ZWdwifakPuMZbFUV@tiehlicka>

On Wed, 29 Nov 2023 18:10:33 +0100
Michal Hocko <mhocko@suse.com> wrote:

> > > How? You are only reporting the number of reclaimed pages and no
> > > reclaimed pages could be not just because of low/min limits but
> > > generally because of other reasons. You would need to report also the
> > > number of scanned/isolated pages.
> > >    
> > 
> > From my perspective, if memory control group (memcg) protection
> > restrictions occur, we can identify them by the absence of the end()
> > pair of begin(). Other reasons will have both tracepoints raised.  
> 
> That is not really great way to detect that TBH. Trace events could be
> lost and then you simply do not know what has happened.

Note, you can detect dropped events. If there's a dropped event, you can
ignore the "missing end" from a beginning. You could also make synthetic
events that pair an end event with a beginning event (which uses the last
begin event found). Synthetic event creation is not affected by dropped
events.

There's a lot you can to get information with the prospect of dropped
events. I would not use that as rationale for not using events.

-- Steve


  reply	other threads:[~2023-11-29 17:34 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-23 19:39 [PATCH v3 0/2] mm: memcg: improve vmscan tracepoints Dmitry Rokosov
2023-11-23 19:39 ` [PATCH v3 1/2] mm: memcg: print out cgroup ino in the memcg tracepoints Dmitry Rokosov
2023-11-25  4:11   ` Shakeel Butt
     [not found] ` <20231123193937.11628-3-ddrokosov@salutedevices.com>
2023-11-25  6:36   ` [PATCH v3 2/2] mm: memcg: introduce new event to trace shrink_memcg Shakeel Butt
2023-11-25  8:01     ` Dmitry Rokosov
2023-11-25 17:38       ` Shakeel Butt
2023-11-25 17:47   ` Shakeel Butt
2023-11-27  9:33   ` Michal Hocko
2023-11-27 11:36     ` Dmitry Rokosov
2023-11-27 12:50       ` Michal Hocko
2023-11-27 16:16         ` Dmitry Rokosov
2023-11-28  9:32           ` Michal Hocko
2023-11-29 15:20             ` Dmitry Rokosov
2023-11-29 15:26               ` Dmitry Rokosov
2023-11-29 16:06               ` Michal Hocko
2023-11-29 16:57                 ` Dmitry Rokosov
2023-11-29 17:10                   ` Michal Hocko
2023-11-29 17:34                     ` Steven Rostedt [this message]
2023-11-29 17:35                     ` Dmitry Rokosov
2023-11-29 17:33               ` Andrew Morton
2023-11-29 17:49                 ` Dmitry Rokosov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231129123446.7d41c4e9@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=akpm@linux-foundation.org \
    --cc=bpf@vger.kernel.org \
    --cc=cgroups@vger.kernel.org \
    --cc=ddrokosov@salutedevices.com \
    --cc=hannes@cmpxchg.org \
    --cc=kernel@sberdevices.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhiramat@kernel.org \
    --cc=mhocko@suse.com \
    --cc=muchun.song@linux.dev \
    --cc=rockosov@gmail.com \
    --cc=roman.gushchin@linux.dev \
    --cc=shakeelb@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox