On Thursday 30 Sep 2004 11:26 am, SnapafunFrank wrote:
> Running Mandrake10 - mostly updated, Using KDE3.2.3 and some third
> party apps. [ Editpadlite etc.]
>
> I am trying to understand why it takes nearly a whole minute to open
> any of my apps, both kde and third party - such as OOo, and one of
> the things I've come across [ thanks Shawn ] is strace.
>
> Two things get to be "called" heaps of times: the first is the 'read'
> calls and there I see close to a 1000 calls for :
>
> 0.000588 old_mmap(0x407ea000, 4096, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0x407ea000
>
> Anyone know what this is???????????? The online search produces heaps
> of text files listing exactly what I see in my 'strace' - but
> otherwise nothing very helpful to date.
mmap is the function that puts a file into RAM. It's used to load
programs or to get fast access to files. It's my impression that Linux
uses it a lot at the deeper levels. It's not got PROT_EXEC, so it's not
(I think) a program. MAP_PRIVATE implies it's not going to be written
to. A font would answer this description, but a lot of other stuff
would too.
> The other is for the 'open' call, eg:
>
> 0.000680 open("/usr/X11R6/lib/tls/libfontconfig.so.1", O_RDONLY)
> = -1 ENOENT (No such file or directory)
>
> and this seems to go through a lot of files 'looking' and again, for
> heaps of times.
I don't know how the shared library resolution code works; I would
expect a lot of these for stuff that follows a path, such as $PATH and
$LDPATH, but it's my understanding that shared libraries are looked up
in a database. Have you tried running ldconfig? In fact "ldconfig -v"
may give you useful information.
--
Richard Urwin
____________________________________________________
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________