English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Problem linking on cygwin
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-12-08 (15:41)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] lablGL an size ...
> I had problem understanding why my program took 90Mb ...

It doesn't "take" 90 M properly speaking.  The 90 M figure is what
"ps" reports.

> Then I tracked the problem: the "simple" example from the distribution of
> lablGL 0.96 take around 80Mb (see below) 
> and it seems it is the minimum size of any lablGL program !

... and probably of any program that uses Open GL on your machine.

> Is this normal ? May be the video-RAM is included ???

Exactly.  The X server, as well as programs that access the hardware
3D acceleration of your video card (and that is presumably the case
with Open GL programs) map the video RAM in their own memory space,
often two or three times (don't ask me why).  With a modern video
card, that means a lot of memory space.  But it's not memory that your
program "takes", properly speaking, just accesses to shared resources.

(The same goes, to some extent, for the shared libraries used by your

To understand how much memory your program really occupies, it
helps to have a close look at /proc/<pid>/maps.

- Xavier "I developed OCaml 1.00 on a PC that had less RAM than your
  GeForce 2MX video card" Leroy

Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr