public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/13570] New: Controlling gmon.out file creation in HPC environment
@ 2012-01-06 18:32 pidsouza at in dot ibm.com
2012-12-19 10:50 ` [Bug libc/13570] " schwab@linux-m68k.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: pidsouza at in dot ibm.com @ 2012-01-06 18:32 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13570
Bug #: 13570
Summary: Controlling gmon.out file creation in HPC environment
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper.fsp@gmail.com
ReportedBy: pidsouza@in.ibm.com
Classification: Unclassified
In the High Performance Computing (HPC) the parallel(Message Passing Interface
- MPI) applications run as large number of tasks (100s, 1000s to 1 million
tasks). Each of these tasks may be run on different nodes of a HPC cluster.
Each task is a process by itself, which are executed in parallel using the same
binary (SPMD or MPMD models).
When these MPI applications are profiled using -pg option, depending on the
number of tasks those many separate gmon.out files will be created in the same
shared file system. This leads to bottleneck on to the application both from
file system space, large amount disk operation during process exit.
HPC users might be interested in limited set of gmon.out files which meet
certain defined criteria and not all the gmon.out files created. However the
set is not known until after the application has completed execution and the
gmon.out files are about to be written.
In the view to address the above said bottleneck and give the user only the
gmon.out files of interest, following approach can be thought about:
1. Disable the generation of gmon.out file at exit().
2. Obtain access to all gmon data in memory prior to application exit using
public interfaces so that data can be processed for the subset of tasks that
are of interest.
The above approach was tried on Redhat 6.1 (Santiago)
2.6.32-131.0.15.el6.ppc64.
With moncontrol(0) could not stop the creation of gmon.out file during exit. It
only switches off the profiling. The atexit handler gmon.c:_mcleanup() creates
the gmon.out. There is no way to stop it creating.
Even if one succeeds to stop creation of gmon.out file, the data variable which
holds the profile data is declared as hidden.
Ref - gmon.c:struct gmonparam _gmonparam attribute_hidden = { GMON_PROF_OFF };
Due to this, the applications will not be able to read the collected in-memory
data from the tasks to apply the filtering criteria.
We need mechanisms to stop the creation of gmon.out file and access to read the
collected gmon data using which gmon.out file is generated at will.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/13570] Controlling gmon.out file creation in HPC environment
2012-01-06 18:32 [Bug libc/13570] New: Controlling gmon.out file creation in HPC environment pidsouza at in dot ibm.com
@ 2012-12-19 10:50 ` schwab@linux-m68k.org
2013-10-26 6:03 ` neleai at seznam dot cz
2014-06-27 11:14 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: schwab@linux-m68k.org @ 2012-12-19 10:50 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13570
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|drepper.fsp at gmail dot |unassigned at sourceware
|com |dot org
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/13570] Controlling gmon.out file creation in HPC environment
2012-01-06 18:32 [Bug libc/13570] New: Controlling gmon.out file creation in HPC environment pidsouza at in dot ibm.com
2012-12-19 10:50 ` [Bug libc/13570] " schwab@linux-m68k.org
@ 2013-10-26 6:03 ` neleai at seznam dot cz
2014-06-27 11:14 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: neleai at seznam dot cz @ 2013-10-26 6:03 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=13570
Ondrej Bilka <neleai at seznam dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |neleai at seznam dot cz
Resolution|--- |FIXED
--- Comment #1 from Ondrej Bilka <neleai at seznam dot cz> ---
There is already a functionality to support this. You need to interpose a
_mcleanup by compiling shared library containing function like one below and
then LD_PRELOAD it for your program.
void _mcleanup (void)
{
if (user condition)
{
void (*p)() = dlsym (RTLD_NEXT, "_mcleanup");
p ();
}
}
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/13570] Controlling gmon.out file creation in HPC environment
2012-01-06 18:32 [Bug libc/13570] New: Controlling gmon.out file creation in HPC environment pidsouza at in dot ibm.com
2012-12-19 10:50 ` [Bug libc/13570] " schwab@linux-m68k.org
2013-10-26 6:03 ` neleai at seznam dot cz
@ 2014-06-27 11:14 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 11:14 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=13570
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-27 11:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-06 18:32 [Bug libc/13570] New: Controlling gmon.out file creation in HPC environment pidsouza at in dot ibm.com
2012-12-19 10:50 ` [Bug libc/13570] " schwab@linux-m68k.org
2013-10-26 6:03 ` neleai at seznam dot cz
2014-06-27 11:14 ` fweimer at redhat dot com
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 read-only IMAP folder(s) and NNTP newsgroup(s).