LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 844|回复: 8

我的X Window 占了145M内存,正常吗?(见图)

[复制链接]
发表于 2004-8-23 00:50:03 | 显示全部楼层 |阅读模式
我的X Window 占了145M内存,正常吗?(见图)

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2004-8-23 00:57:16 | 显示全部楼层
不用担心,linux处理内存的方式和windows是不同的。
 楼主| 发表于 2004-8-23 01:08:02 | 显示全部楼层
我的意思是整个系统除了X才占了66M,而一个X window就145M,不怪吗?
 楼主| 发表于 2004-8-23 01:09:58 | 显示全部楼层
请问大家的X占了多小M?
发表于 2004-8-23 01:34:40 | 显示全部楼层
38.4M

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2004-8-23 01:39:33 | 显示全部楼层
这个嘛,估计要看运行过什么x程序的.......
还有就是看什么芯片了,一般赛扬需要的内存比较多
发表于 2004-8-23 01:51:39 | 显示全部楼层
肯定跟运行的应用程序有关!我的cpu是赛羊1G
 楼主| 发表于 2004-8-23 03:15:59 | 显示全部楼层
我觉得同显存有关?缓冲区?或是显存的镜像?
我用的是FX5800 128M的.


CPU XP 2500
RAM 512M
FX5800 128M
 楼主| 发表于 2004-8-24 03:23:36 | 显示全部楼层
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= ... 35767116567&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.





来源:nVIDIA 6111 driver FAQ
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表