From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13227 invoked by alias); 9 Jul 2012 20:31:20 -0000 Received: (qmail 13219 invoked by uid 22791); 9 Jul 2012 20:31:19 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 09 Jul 2012 20:31:06 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1SoKbp-00046y-Ot from Vladimir_Prus@mentor.com for gdb@sourceware.org; Mon, 09 Jul 2012 13:31:05 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 9 Jul 2012 13:31:05 -0700 Received: from [172.30.88.164] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.1.289.1; Mon, 9 Jul 2012 21:31:03 +0100 Message-ID: <4FFB3F86.2000109@codesourcery.com> Date: Mon, 09 Jul 2012 20:31:00 -0000 From: Vladimir Prus User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Subject: Multiple inferiors and memory consumption Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-07/txt/msg00008.txt.bz2 It could be me, but I always expected that using GDB multi-process functionality should be better than separate GDB instances -- including memory consumption. So, I've just tried to run CVS gdb on itself inside 4 inferiors, and it looks like each inferior, the amount of data used by GDB (the DATA column in top) grows pretty much linearly. That is, it does not seem like GDB notices that symbol tables of all 4 loaded executables are identical (There's a link to the chart: http://goo.gl/0auVf) Is this something that is going to be improved upon in future? And now for my real question -- is there any case when using multi-process to debug several applications not related via parent-child relationship is better than running N copies of GDB? Thanks, -- Vladimir Prus CodeSourcery / Mentor Graphics http://www.mentor.com/embedded-software/