Mandrake 9.0 POLY ARGO: Poio einai to provlhma?
DJ Art
djart at linux.gr
Thu Apr 3 22:10:02 EEST 2003
On Thursday 03 April 2003 13:32, Fanurgakis Manolis wrote:
> On Thursday 03 April 2003 06:22, Giorgos Keramidas wrote:
> >[...]
> > Ta 2564K resident size tou wmaker den pianoun *MIA* mprosta sta
> > 100M tou idiou tou X server edo pera!
>
> Μμμ, να ρωτήσω κάτι; Γιατί πιάνει *τόσο* πολύ;
από το README των Nvidia Drivers (τυχαίο που είναι nvidia, απλώς αντί να
ψάχνω για το συγκεκριμένο resource στο Xfree site, ξέρω πως η απάντηση
κρύβεται στο /usr/doc/ μου ;)
Q: Why does X use so much memory?
A: When measuring any application's memory usage, you must be
careful to distinguish between physical system RAM used and virtual
mappings of shared resources. For example, most shared libraries
exist
only once in physical memory but are mapped into multiple processes.
This memory should only be counted once when computing total memory
usage. In the same way, the video memory on a graphics card or
register memory on any device can be mapped into multiple processes.
These mappings do not consume normal system RAM.
This has been a frequently discussed topic on XFree86 mailing
lists; see, for example:
http://marc.theaimsgroup.com/?l=xfree-xpert&m=96835767116567&w=2
The `pmap` utility described in the above thread and available here:
http://web.hexapodia.org/~adi/pmap.c
is a useful tool in distinguishing between types of memory mappings.
For example, while `top` may indicate that X is using several hundred
MB of memory, the last line of output from pmap:
mapped: 287020 KB writable/private: 9932 KB shared: 264656 KB
reveals that X is really only using roughly 10MB of system RAM
(the "writable/private" value).
Note, also, that X must allocate resources on behalf of X clients
(the
window manager, your web browser, etc); X's memory usage will
increase
as more clients request resources such as pixmaps, and decrease as
you close X applications.
--
Kyritsis Athanasios <djart at hellug.gr>
- What's your ONE purpose in life ?
- To explode, of course! ;-)
More information about the Linux-greek-users
mailing list