Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Caching of object/libraries/files
@ 2004-03-18 18:47 Nick Savoiu
  2004-03-18 19:34 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Savoiu @ 2004-03-18 18:47 UTC (permalink / raw)
  To: gdb

Hi all,

I have a rather large project composed of a small driver executable and
quite a few .so libraries that it uses.

When I invoke it with GDB, upon executing 'run' it takes quite a while for
GDB to do it's thing (i.e. load symbols, whatever else it does) particularly
since it does a lot of disk access.

I was thinking that, if I start a GDB session on this project, run it for a
while then quit and immediately restart a similar session, then most of the
files would be cached. However, I see the same amount of disk access for the
second session when 'run' is invoked as for the first.

Any ideas why this is so? The GDB session itself uses about 340MB and I have
1GB RAM.

Thanks,
Nick


^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: Caching of object/libraries/files
@ 2004-03-24 23:11 Nick Savoiu
  0 siblings, 0 replies; 4+ messages in thread
From: Nick Savoiu @ 2004-03-24 23:11 UTC (permalink / raw)
  To: gdb

The problem that I have is that after I run gdb once, exit it then start it 
right after it seems to reload all the debug info from disk. I was expecting 
a good deal of them to be loaded from the OS file cache -> much less disk 
activity the second time around.

Nick

> On Thu, Mar 18, 2004 at 10:46:47AM -0800, Nick Savoiu wrote:
> > Hi all,
> > 
> > I have a rather large project composed of a small driver executable and
> > quite a few .so libraries that it uses.
> > 
> > When I invoke it with GDB, upon executing 'run' it takes quite a while for
> > GDB to do it's thing (i.e. load symbols, whatever else it does) 
particularly
> > since it does a lot of disk access.
> > 
> > I was thinking that, if I start a GDB session on this project, run it for 
a
> > while then quit and immediately restart a similar session, then most of 
the
> > files would be cached. However, I see the same amount of disk access for 
the
> > second session when 'run' is invoked as for the first.
> > 
> > Any ideas why this is so? The GDB session itself uses about 340MB and I 
have
> > 1GB RAM.
> 
> This is something that I've been meaning to fix for a long, long time. 
> We unload all shared objects when the program exits; what we ought to
> do is move them to a separate cache structure.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-03-24 20:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-18 18:47 Caching of object/libraries/files Nick Savoiu
2004-03-18 19:34 ` Daniel Jacobowitz
2004-03-18 19:52   ` Nick Savoiu
2004-03-24 23:11 Nick Savoiu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox