pcp updates: fix linux hotplug vcpus, qa

"Nathan Scott" <[email protected]> Thu, 19 Jan 2017 01:30:54 -0500 (EST)
Newsgroups gmane.comp.sysutils.pcp
Message-ID <[email protected]>
Changes committed to git://git.pcp.io/pcp.git master

Nathan Scott (6):
      qa: run pmdadocker test under an available user account
      qa: create common shared routine for /proc/stat file creation
      pmdalinux: dynamic per-CPU and per-node instance domains
      pmval: improve handling of shifting metric instances
      qa: ensure tmp files cleaned up in tests 243 and 254
      pmdalinux: resolve some test failures related to node detection

Lukas Berk (1):
      pmdadocker: use docker_setup for correct qa-mode operation


 qa/1030                            |    1 
 qa/180.out                         |    8 
 qa/243                             |    2 
 qa/254                             |    2 
 qa/857                             |   16 -
 qa/885                             |   17 -
 qa/886                             |   18 -
 qa/910                             |   67 ++++
 qa/910.out                         |   16 +
 qa/924                             |   10 
 qa/924.out                         |    2 
 qa/955                             |   16 -
 qa/common.check                    |   17 +
 qa/group                           |    1 
 qa/new                             |    1 
 src/pmdas/docker/docker.c          |    2 
 src/pmdas/linux/getinfo.c          |   29 ++
 src/pmdas/linux/getinfo.h          |    2 
 src/pmdas/linux/help               |    4 
 src/pmdas/linux/linux.h            |   70 ++++-
 src/pmdas/linux/mem_bandwidth.c    |   40 --
 src/pmdas/linux/numa_meminfo.c     |   83 ++----
 src/pmdas/linux/numa_meminfo.h     |   23 -
 src/pmdas/linux/pmda.c             |  497 +++++++++++++++++--------------------
 src/pmdas/linux/proc_cpuinfo.c     |  155 +----------
 src/pmdas/linux/proc_cpuinfo.h     |   28 --
 src/pmdas/linux/proc_meminfo.c     |    9 
 src/pmdas/linux/proc_net_softnet.c |   89 +++---
 src/pmdas/linux/proc_net_softnet.h |   17 -
 src/pmdas/linux/proc_stat.c        |  483 ++++++++++++++++++-----------------
 src/pmdas/linux/proc_stat.h        |   59 ----
 src/pmval/pmval.c                  |   19 +
 32 files changed, 862 insertions(+), 941 deletions(-)


commit 192c38dd12a63fa1e7d89a01afc5ce749ffec374
Author: Nathan Scott <[email protected]>
Date:   Thu Jan 19 17:26:52 2017 +1100

    pmdalinux: resolve some test failures related to node detection
    
    Make the test mode bitfields finer-grained so we can separate out
    the CPU and node initialisation logic.  This allows tests 821 and
    826 to detect multiple NUMA nodes and pass again as a result.

commit 1d18bc5ff9c6f04ba3b981cbe58622612de08a22
Author: Nathan Scott <[email protected]>
Date:   Thu Jan 19 17:09:55 2017 +1100

    qa: ensure tmp files cleaned up in tests 243 and 254

commit 89096bb90f5302aa534f13b1e6882d21ae9af075
Author: Lukas Berk <[email protected]>
Date:   Thu Jan 19 17:09:20 2017 +1100

    pmdadocker: use docker_setup for correct qa-mode operation
    
    Resolves a test failure in qa/924 from earlier docker_init use
    to ensure global paths are setup.

commit f5b290990c73ad647badf600b2edc923065d7349
Author: Nathan Scott <[email protected]>
Date:   Thu Jan 19 17:07:56 2017 +1100

    pmval: improve handling of shifting metric instances
    
    While making Linux kernel PMDA per-CPU and per-NUMA-node indoms
    more dynamic it was discovered that pmval wasn't always tracking
    counter metric values correctly between samples.
    
    This commit provides fallback logic for the case where an instance
    disappears (and/or reappears) between two samples, such that some
    instances values are no longer at the same index positions within
    both valuesets (but they *are* there).  Test qa/910 shows off the
    problem and verifies the fix, but other tests (like 180) also show
    more correct output - additional values that were always there.

commit bfe5828499eb643c8fad680528499b42a3aade0e
Author: Nathan Scott <[email protected]>
Date:   Thu Jan 19 15:52:19 2017 +1100

    pmdalinux: dynamic per-CPU and per-node instance domains
    
    Convert the Linux kernel PMDA per-CPU and per-NUMA-node indoms
    to using the pmdaCache routines, so the PMDA behaves correctly
    with these system changes.
    
    This commit also makes some other closely related improvements.
    The disk.* refresh logic at pmFetch time is optimised so as to
    not cause unnecessary /proc/stat rescanning.  Logic determining
    machine type is moved out of the cpu_name routine into a more
    appropriate place, and implemented using uname(2) as a fallback
    instead of simply "linux" on non-SGI-NUMA machines.
    
    Resolves Red Hat BZ #1409704.

commit a5d12e4e5169e611b87600c027ab37b0f0fb7964
Author: Nathan Scott <[email protected]>
Date:   Thu Jan 19 12:49:05 2017 +1100

    qa: create common shared routine for /proc/stat file creation
    
    Removes duplication of some Linux /proc/stat creation from a few
    tests, and ensure all callers also set the LINUX_NCPUS variable.

commit 2761e59683baffd6e3591f7efb24ef589adb21bf
Author: Nathan Scott <[email protected]>
Date:   Wed Jan 18 16:51:17 2017 +1100

    qa: run pmdadocker test under an available user account
    
    Regular users running QA cannot switch to 'pcp' account,
    so qa/924 was erroring out early and not actually doing
    its job.  Still failing here but now its a real failure.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#14995): https://groups.io/g/pcp/message/14995
View All Messages In Topic (1): https://groups.io/g/pcp/topic/4207180
Mute This Topic: https://groups.io/mt/4207180?uid=174580
New Topic: https://groups.io/g/pcp/post
-=-=-
pcp mailing list
[email protected]
https://groups.io/g/pcp/messages
-=-=-
Change Your Subscription: https://groups.io/g/pcp/editsub?uid=174580
Group Home: https://groups.io/g/pcp
Contact Group Owner: [email protected]
Terms of Service: https://groups.io/static/tos
Unsubscribe: https://groups.io/g/pcp/leave/354243/563757577/xyzzy
-=-=-=-=-=-=-=-=-=-=-=-