pcp
[Top] [All Lists]

[Bug 1054] New: pmlogextract can exhaust open-files rlimits

To: pcp@xxxxxxxxxxx
Subject: [Bug 1054] New: pmlogextract can exhaust open-files rlimits
From: bugzilla-daemon@xxxxxxxxxxx
Date: Thu, 01 May 2014 22:47:24 +0000
Auto-submitted: auto-generated
Delivered-to: pcp@xxxxxxxxxxx
Bug ID 1054
Summary pmlogextract can exhaust open-files rlimits
Product pcp
Version unspecified
Hardware All
OS Linux
Status NEW
Severity major
Priority P5
Component pcp
Assignee pcp@kenj.com.au
Reporter fche@redhat.com
CC pcp@oss.sgi.com
Classification Unclassified

If targeting a host whose pmcd suffers numerous brief outages, pmmgr 
(in granular mode) can generate numerous archives.  It defers their
merge until the next granularity period (day).  (pmlogger_check* could
do the same, if it were to respond to the death of pmlogger/pmcd's as
quickly as pmmgr does).

The problem comes up if pmlogextract is given >350ish archives as input,
overflowing the default-1024 "ulimit -n" / setrlimit(2) RLIMIT_NOFILE
with:

  pmlogextract: Error: cannot open archive
"/var/log/pcp/pmmgr/HOSTNAME/archive-20140430.132052": Too many open files

because it keeps open all input volumes, meta, and index files, throughout
the merging process.  It would be better if pmlogextract worked in two
passes, computing an ordering on the input archives first, then copying
them over (with only the current input & output files actually being open).


You are receiving this mail because:
  • You are on the CC list for the bug.
<Prev in Thread] Current Thread [Next in Thread>
  • [Bug 1054] New: pmlogextract can exhaust open-files rlimits, bugzilla-daemon <=