|
|
发表于 2006-4-30 11:00:33
|
显示全部楼层
I have a process that uses a lot of memory while it's running, so the free memory (shown by free or top) goes right down to 60MB out of 8100MB. But when the process exits, the free memory doesn't go back up. Why isn't memory released when the process exits?
The short answer is that you should never worry about the amount of free memory on Linux. The kernel attempts to keep this slightly above zero by keeping the cache as large as possible. This is a feature not a bug. 不知道这能不能说服你不要担心。还一半内存没有用,同时SWAP才交换这么一点,有什么好担心的? |
|