OpenSolaris

  subsites:   Code Reviews   Gates   Issues   Defects   Polls   Test   PKG   Planet   Mail
You are not signed in. Sign in or register.

Here is an introduction explaining how to use lgrpinfo(1), plgrp(1), pmadvise(1), and pmap(1) and an example using them to understand, observe, and control thread and memory placement with STREAM.

  • lgrpinfo(1) – Perl script that displays lgroup hierarchy, contents, and characteristics
  • plgrp(1): proc tool for observing and affecting home lgroup and lgroup affinities
  • pmadvise(1): proc tool for applying advice with madvise(3C)
  • pmap(1) extensions to display lgroup containing physical memory backing given virtual address in specified process
  • Solaris::Lgrp: Perl module that makes lgroup API available to Perl scripts to use
  • ps(1) extensions for lgroups

Also, we added a field for the home lgroup of a thread to the lwpsinfo structure in /proc, so it can be gotten through /proc. This is used by plgrp(1), ps(1), and prstat(1M) to get the home lgroup of a thread. Here is the new proc(4) man page and the man page diffs documenting the change.

Here is the writeup for our PSARC case.

Status

  • 09-06-06: Integrated lgrpinfo(1), plgrp(1), pmap -L, pmadvise(1), prstat -h, and ps -h into S11 build 49