From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] [RFC] [WORK-IN-PROGRESS] syscalls: Add set_mempolicy numa tests.
Date: Tue, 14 Aug 2018 15:10:07 +0200 [thread overview]
Message-ID: <20180814131007.GB22915@rei.lan> (raw)
In-Reply-To: <531762042.40419801.1534248925760.JavaMail.zimbra@redhat.com>
Hi!
> Why not use get_mempolicy(.., MPOL_F_NODE | MPOL_F_ADDR) to get node id,
> for the page we just allocated?
Good point, I will try to look into that.
> This kinda overlaps with numa_helper in some aspects. Which reminds me
> of some issues we had to address there:
> - memory-less nodes
> - nodes with little to no free memory
I'm aware of the overlap and we should definitely merge these two into a
single library later on.
As far as I can tell the library I wrote covers the case of memory-less
nodes, these should the the ones that does not have the membind flag set
in the default mask that is returned by numa_get_membind().
We should probably add API for specifying minimal amount of free memory
per node as well, which would fix the second problem. We may add
min_free parameter to the tst_get_nodemap() function that would be used
if passed the TST_NUMA_MEM flag.
--
Cyril Hrubis
chrubis@suse.cz
next prev parent reply other threads:[~2018-08-14 13:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-09 15:23 [LTP] [PATCH] [RFC] [WORK-IN-PROGRESS] syscalls: Add set_mempolicy numa tests Cyril Hrubis
2018-08-13 9:18 ` Richard Palethorpe
2018-08-14 13:18 ` Cyril Hrubis
2018-08-14 12:15 ` Jan Stancek
2018-08-14 13:10 ` Cyril Hrubis [this message]
2018-08-14 16:14 ` Jan Stancek
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=20180814131007.GB22915@rei.lan \
--to=chrubis@suse.cz \
--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 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.