From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19066 invoked by alias); 22 Apr 2009 17:39:10 -0000 Received: (qmail 19058 invoked by uid 22791); 22 Apr 2009 17:39:09 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from ugmailsb.ugent.be (HELO ugmailsb.ugent.be) (157.193.71.46) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 22 Apr 2009 17:39:03 +0000 Received: from localhost (localhost [127.0.0.1]) by ugmailsb.ugent.be (Postfix) with ESMTP id 6B5182AAFD0 for ; Wed, 22 Apr 2009 19:39:00 +0200 (CEST) Received: from ugmailsb.ugent.be ([127.0.0.1]) by localhost (ugmailsb.ugent.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a+rAxQ--Dx4j for ; Wed, 22 Apr 2009 19:39:00 +0200 (CEST) Received: from cedar.ugent.be (cedar.ugent.be [157.193.49.14]) by ugmailsb.ugent.be (Postfix) with ESMTP id 368C42AAF8F for ; Wed, 22 Apr 2009 19:39:00 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAJvy7kmdwc4w/2dsb2JhbADRXoI2gT4G Received: from mail.elis.ugent.be ([157.193.206.48]) by relays9.ugent.be with ESMTP; 22 Apr 2009 19:39:00 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.elis.UGent.be (Postfix) with ESMTP id 5CA0D2BAD19; Wed, 22 Apr 2009 19:38:53 +0200 (CEST) Received: from [127.0.0.1] (ssh2.elis.UGent.be [157.193.206.127]) by mail.elis.UGent.be (Postfix) with ESMTP id 4572E2BACEA; Wed, 22 Apr 2009 19:38:53 +0200 (CEST) Cc: gdb@sourceware.org Message-Id: <1C89EA31-C5B2-4A7B-B326-5519FF76A318@elis.ugent.be> From: Jonas Maebe To: Nick Savoiu In-Reply-To: <588223.49333.qm@web52003.mail.re2.yahoo.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: GDB using a lot of CPU time and writing a lot to disk on startup Date: Wed, 22 Apr 2009 17:57:00 -0000 References: <592922.54823.qm@web52001.mail.re2.yahoo.com> <8ac60eac0904201639r19f7d539v2b301fcb24e82317@mail.gmail.com> <20090420234805.GA28850@caradoc.them.org> <8ac60eac0904201654h1775560se59718b127ccbfad@mail.gmail.com> <742711.93110.qm@web52008.mail.re2.yahoo.com> <200904211551.n3LFphaO009791@brahms.sibelius.xs4all.nl> <808758.98762.qm@web52004.mail.re2.yahoo.com> <83ljpthlq2.fsf@gnu.org> <702D3FCE-02F7-4C70-AC67-3C7C62CDEBD0@elis.ugent.be> <588223.49333.qm@web52003.mail.re2.yahoo.com> X-IsSubscribed: yes 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: 2009-04/txt/msg00184.txt.bz2 On 22 Apr 2009, at 19:21, Nick Savoiu wrote: > This is what I get for the whole time that gdb is starting up: > > Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s rkB/s wkB/ > s avgrq-sz avgqu-sz await svctm %util > sda 0.00 2073.47 0.00 1056.12 0.00 25036.73 0.00 > 12518.37 23.71 0.94 0.89 0.89 93.67 > sdb 0.00 2073.47 0.00 1056.12 0.00 25036.73 0.00 > 12518.37 23.71 0.95 0.90 0.89 94.29 > > There are some reads from time to time but the writes are a constant. > Is there a way to determine the process that actually does the > writing? You can probably run strace on gdb to verify whether or not it is gdb (and if so, where it is writing to). I don't know of a way to check this in a system-wide way on Linux though (on Mac OS X, you could use fs_usage). Jonas