ltp.lists.linux.it archive mirror
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: Changwei Zou <changwei.zou@canonical.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v6] cpuset_memory_spread: count only the test file's page cache
Date: Mon, 2 Nov 2026 13:00:22 +0100	[thread overview]
Message-ID: <auh7VnkZqhAHbmIC@yuki.lan> (raw)
In-Reply-To: <20260905125041.27985-1-changwei.zou@canonical.com>

Hi!
> Instead of measuring the noisy global counters, account for only DATAFILE's
> own page-cache pages: after reading the file, cpuset_mem_hog mmaps it,
> faults every page in and uses move_pages(2) (with a NULL node array, so
> nothing is migrated) to learn the NUMA node each of the file's pages
> resides on. Every page must be accounted -- a per-page error (negative
> status) fails the run -- so a partial measurement cannot pass. It writes
> the per-node totals (in KB) to a result file that the shell reads.

This is a step into right direction, however before that is done, the
old and messy tests should be rewritten into a single C test that uses
the LTP cgroup library, see include/tst_cgroup.h

-- 
Cyril Hrubis
chrubis@suse.cz

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

      parent reply	other threads:[~2026-11-02 12:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-05 12:50 [LTP] [PATCH v6] cpuset_memory_spread: count only the test file's page cache Changwei Zou via ltp
2026-09-05 15:50 ` [LTP] " linuxtestproject.agent
2026-11-02 12:00 ` Cyril Hrubis [this message]

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=auh7VnkZqhAHbmIC@yuki.lan \
    --to=chrubis@suse.cz \
    --cc=changwei.zou@canonical.com \
    --cc=ltp@lists.linux.it \
    /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;
as well as URLs for NNTP newsgroup(s).