<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Process on Saleem Ansari</title>
    <link>/tags/process/</link>
    <description>Recent content in Process on Saleem Ansari</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <copyright>(c) 2024 Saleem Ansari</copyright>
    <lastBuildDate>Thu, 06 Dec 2012 00:00:00 +0000</lastBuildDate>
    <atom:link href="/tags/process/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Memory consumption by a .so file for a running process</title>
      <link>/2012/12/06/memory-consumption-by-a-.so-file-for-a-running-process/</link>
      <pubDate>Thu, 06 Dec 2012 00:00:00 +0000</pubDate>
      <guid>/2012/12/06/memory-consumption-by-a-.so-file-for-a-running-process/</guid>
      <description>I wanted to know how much memory is consumed by C++ standard library for a process running on Linux. There is no straightforward way I could find so I have written a small script to do exactly that.&#xA;Script Location: https://gist.github.com/4215536&#xA;How to use?&#xA;$ wget https://raw.github.com/gist/4215536/6ae899f454fd72ba3b6202724e15f855f80e33b3/mem-usage.rb $ ruby ./mem-usage.rb /proc/5952/maps | grep libstd /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16: 2988.0 KBs In the above example, 5952 is the PID of Thunderbird mail client and C++ standard library consumes 2988 KB of memory for this process.</description>
    </item>
  </channel>
</rss>
