linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Time to do something about those loading times
@ 2002-08-15  8:11 Jean Francois Martinez
  2002-08-15  8:43 ` Jean Francois Martinez
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jean Francois Martinez @ 2002-08-15  8:11 UTC (permalink / raw)
  To: linux-mm

Presently one of the things who are hindering Linux progress on the
desktop is that the loading times are far higher than on Windows.  This
gives the impression it is slow.

Some of the following issues are filesystem related

1) No preloading.  In addition to preloading some crucial libraries or
parts of libraries (who could be discarded when needed) I wish to submit
the following idea inspired by MVS: preload crucial libraries into a
special swap at boot time.  The benefit is that loading from swap is
faster and that in addition they are unfragmented and tightly packed
together with their relatives: ie if some important program needs libA
and libB and you preload them then libA and libB will be immediate
neighbours instead of being at oppsoite ends of filesystem


2) What happens when a code page is discarded?  As I understand it it is
just discarded and that means next time we will have to look it again
into the filesystem (and remember that two pages from two different
libraries will be very far from one another).  Wouldn't it be better to
copy into swap so next time it will be fetched faster?  The preceeding
assumes that there is a way to keep swap not overly fragmented.

3) There is no concept of file affinity in Linux.  While the filesystems
do a quite good job of keeping files unfragmented the fact is that there
is no way to tell it that such and such file form a whole and should be
kept together.  End result uis that two libraries who are usually loaded
together end at opposite ends of filesystem.  There should be a system
call for the Linux installers to tell the kernel "from now all the files
I create are affine" and "from now you have a free rein" .

4) It looks like developers build libraries in a haphazard way. 
Reorganizing so the most used routines are close to the beginning (and
close to each other) would probably provide a sizable improvement in
loading times.   For that we need a tool able to collect statistics. 
But I am not sure it would be feasible for the distribution vendor doing
the reorg or if it would be better to have it done at individual boxes. 

5) While the ELF format could be developer friendly it also seems to
require far more overhead than the DLL (or the old a.out) format.   I
wonder if shifting to ELF was not a case of wanting to ape "real Unixes"
even when they had shot themselves in the foot. 

  
 			JFM



--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

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

end of thread, other threads:[~2002-09-01 18:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-15  8:11 Time to do something about those loading times Jean Francois Martinez
2002-08-15  8:43 ` Jean Francois Martinez
2002-08-29 18:07 ` Daniel Phillips
2002-09-01 18:28 ` Ingo Oeser

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