This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]