mailing list of musl libc
 help / color / mirror / code / Atom feed
* Thread-local memory for thread structures
@ 2019-04-11 11:12 Raphael Cohn
  2019-04-11 14:41 ` Markus Wichmann
  2019-04-11 15:09 ` Rich Felker
  0 siblings, 2 replies; 3+ messages in thread
From: Raphael Cohn @ 2019-04-11 11:12 UTC (permalink / raw)
  To: musl

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


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

end of thread, other threads:[~2019-04-11 15:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-11 11:12 Thread-local memory for thread structures Raphael Cohn
2019-04-11 14:41 ` Markus Wichmann
2019-04-11 15:09 ` Rich Felker

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