GDB using a lot of CPU time and writing a lot to disk on startup

Jonas Maebe jonas.maebe@elis.ugent.be
Wed Apr 22 17:57:00 GMT 2009


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



More information about the Gdb mailing list