mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Raphael Cohn <raphael.cohn@stormmq.com>
To: musl@lists.openwall.com
Subject: Thread-local memory for thread structures
Date: Thu, 11 Apr 2019 12:12:46 +0100	[thread overview]
Message-ID: <CACCP0Gq23AjxF9dOfGysWUsZLMTEjHR_+tDy=QKmTK-duaNxpQ@mail.gmail.com> (raw)

Dear List,

I'm playing around with allocating 100s of bytes of TLS memory for
various purposes. Something I noticed in the code for creating the
mmap'd memory for TLS is that it does not (quite reasonably) assign it
a NUMA memory policy.

I'd like to assign a NUMA memory policy to the memory used for
managing a thread. Is there anything 'underhanded' I can do to find
out its location and size? I realize anything is likely to be brittle.
Ideally what I'd like is a 'set NUMA memory policy of this thead's
mmap'd management memory to the local NUMA node [once I've scheduled
it to run a particular set of CPUs].

Any suggestions?

Raph


             reply	other threads:[~2019-04-11 11:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-11 11:12 Raphael Cohn [this message]
2019-04-11 14:41 ` Markus Wichmann
2019-04-11 15:09 ` Rich Felker

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='CACCP0Gq23AjxF9dOfGysWUsZLMTEjHR_+tDy=QKmTK-duaNxpQ@mail.gmail.com' \
    --to=raphael.cohn@stormmq.com \
    --cc=musl@lists.openwall.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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).