pcp
[Top] [All Lists]

[Bug 1275293] New: Suboptimal client initialization with -L

To: pcp@xxxxxxxxxxx
Subject: [Bug 1275293] New: Suboptimal client initialization with -L
From: bugzilla@xxxxxxxxxx
Date: Mon, 26 Oct 2015 13:38:17 +0000
Auto-submitted: auto-generated
Delivered-to: pcp@xxxxxxxxxxx
https://bugzilla.redhat.com/show_bug.cgi?id=1275293

            Bug ID: 1275293
           Summary: Suboptimal client initialization with -L
           Product: Fedora
           Version: 23
         Component: pcp
          Assignee: nathans@xxxxxxxxxx
          Reporter: myllynen@xxxxxxxxxx
        QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: brolley@xxxxxxxxxx, fche@xxxxxxxxxx, lberk@xxxxxxxxxx,
                    mgoodwin@xxxxxxxxxx, nathans@xxxxxxxxxx,
                    pcp@xxxxxxxxxxx, scox@xxxxxxxxxx



Description of problem:
When starting PCP clients with -L, there's a needless PMCD connection
attempted:

localhost:~> strace -ff pmprobe -L -v hinv.machine 2>&1 | grep -i socket
socket(PF_LOCAL, SOCK_STREAM, 0)        = 3
setsockopt(3, SOL_SOCKET, SO_LINGER, {onoff=1, linger=0}, 8) = 0
connect(3, {sa_family=AF_LOCAL, sun_path="/var/lib/pcp/tmp/pmcd/root.socket"},
110) = -1 EACCES (Permission denied)
localhost:~> 

There are also some less significant initialization paths which could perhaps
be eliminated:

localhost:~> strace -ff pmprobe -L -v hinv.machine 2>&1 | grep -i /var | grep
//
access("/var/lib/pcp/pmdas//var/lib/pcp/pmdas/linux/pmda_linux.so", F_OK) = -1
ENOENT (No such file or directory)
access("/var/lib/pcp/pmdas//var/lib/pcp/pmdas/linux/pmda_linux.so.so", F_OK) =
-1 ENOENT (No such file or directory)
access("/var/lib/pcp/pmdas//var/lib/pcp/pmdas/mmv/pmda_mmv.so", F_OK) = -1
ENOENT (No such file or directory)
access("/var/lib/pcp/pmdas//var/lib/pcp/pmdas/mmv/pmda_mmv.so.so", F_OK) = -1
ENOENT (No such file or directory)
access("/var/lib/pcp/pmdas//var/lib/pcp/pmdas/jbd2/pmda_jbd2.so", F_OK) = -1
ENOENT (No such file or directory)
access("/var/lib/pcp/pmdas//var/lib/pcp/pmdas/jbd2/pmda_jbd2.so.so", F_OK) = -1
ENOENT (No such file or directory)
localhost:~> 

Version-Release number of selected component (if applicable):
pcp-3.10.6-2.el7.x86_64

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug 
https://bugzilla.redhat.com/token.cgi?t=VN6MxWiTvt&a=cc_unsubscribe

<Prev in Thread] Current Thread [Next in Thread>