From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1ErU3M-0007dy-Bq for garchives@archives.gentoo.org; Wed, 28 Dec 2005 05:40:48 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jBS5e3OJ013598; Wed, 28 Dec 2005 05:40:03 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jBS5c6uD000339 for ; Wed, 28 Dec 2005 05:38:07 GMT Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by smtp.gentoo.org with esmtp (Exim 4.54) id 1ErU0k-0005zG-E9 for gentoo-dev@lists.gentoo.org; Wed, 28 Dec 2005 05:38:06 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ErU0f-000348-6m for gentoo-dev@gentoo.org; Wed, 28 Dec 2005 06:38:01 +0100 Received: from ip68-230-97-182.ph.ph.cox.net ([68.230.97.182]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Dec 2005 06:38:01 +0100 Received: from 1i5t5.duncan by ip68-230-97-182.ph.ph.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Dec 2005 06:38:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org From: Duncan <1i5t5.duncan@cox.net> Subject: [gentoo-dev] Re: Optimizing performance Date: Tue, 27 Dec 2005 22:37:43 -0700 Organization: Sometimes Message-ID: References: <1134650885.4634.57.camel@localhost> <200512231835.42635.pauldv@gentoo.org> <200512240052.46266@enterprise.flameeyes.is-a-geek.org> <200512271638.22215.pauldv@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ip68-230-97-182.ph.ph.cox.net User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table) Sender: news Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id jBS5e3Pu013598 X-Archives-Salt: d6c6b92e-64b4-4d6e-a8f8-b1b329217468 X-Archives-Hash: da09e02bf5c953e817bad2eafba5b26c Paul de Vrieze posted <200512271638.22215.pauldv@gentoo.org>, excerpted below, on Tue, 27 Dec 2005 16:38:21 +0100: > On Saturday 24 December 2005 00:52, Diego 'Flameeyes' Petten=F2 wrote: >> On Friday 23 December 2005 18:35, Paul de Vrieze wrote: >> > Just to add. This is not so much related to debugging information in >> > the library files (what gdb can use). That information never makes i= t >> > from disk so is not that much of a speed issue (esp. if it is split >> > out). >> >> Actually, if the binaries are not stripped, they consume more memory. >> With splitdebug the issue is unseen (I'm happily using it with -g3 for >> everything now..) >=20 > Debug info shouldn't be loaded into memory. Or is it? I agree though th= at > splitting them out is probably better for memory use. >>From what I've read, binary files are read into memory as a file, before being having their elements loaded at specific addresses by ldd. Unsplit debug information at minimum, then, increases the i/o load, requiring mor= e data be read into memory initially, even if it's immediately thrown out again, when it's not actually loaded anywhere. In practice, it would at least remain in cache rather longer, thereby taking up space that could b= e used to cache data that might actually be used, not to mention forcing other potentially useful data out of cache on initial read into cache. Debug information split into entirely separate files, then, shouldn't affect performance at all over stripped, and be rather better performing than debug information stored in the same file. That's only what I've read. I have no special knowledge on the subject, and if what I read was incorrect, than so is the above. --=20 Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman in http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html --=20 gentoo-dev@gentoo.org mailing list