Shared Memory Tools

This topic is meant to document the tools that has been found interesting during the R&D on shared memory.

GDB for Forked Process

The good news is that GDB 6.8 can be used for debugging forked process. The bad news is that GDB 6.8 is not installed in SLC4. So, if you need to debug forked process install it yourself.

The version 6.8 has introduced four instructions related to the debugging of the forked process (see section 4.10):

  • set follow-fork-mode [parent/child]: Choose the process being debugged after fork
  • set detach-on-fork [on/off]: if on all the process will be under the control of GDB
  • info forks: List of forked processid
  • process [processid]: Debug another forked process

For non forked processes you can also use the attach/dettach GDB instructions (see section 4.7).

/proc//smaps Parsing Scripts

The Linux kernel 2.6.16 adds support for smaps, per-mapping, including data on each mapping's RSS usage. This data lives in /proc//smaps. However, the format of the smaps file is hard to digest.


Shared Memory Prototyp for LHC, presented at the CERN Multi-core R&D Meeting.

GDB manual, version 6.8.

Ben Maurer, Memory Usage with smaps, March 2006.

Andy Wingo,Reducing the Footprint of Python Applications, November 2007.

-- MarcMagransDeAbril - 04 Jul 2008

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2008-07-04 - MarcMagransDeAbril
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LCG All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback