Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
不要再吐槽内存管理的问题了
deepin Talks
927
views ·
3
replies ·
To
floor
Go
dreco
deepin
2017-07-01 18:11
Author
本帖最后由 dreco 于 2017-7-1 10:21 编辑
可用内存少是标配啊,windows可用内存也不多啊,只是以前显示的不完整没发现而已(貌似)
rt:
今天发现的,可以显示得更详细一些了呢
Reply
Like 0
Favorite
View the author
All Replies
herdde
deepin
2017-07-01 18:18
#1
linux的观点:内存就是用来使用的,为什么要闲着呢
Reply
Like 0
View the author
herdde
deepin
2017-07-01 18:28
#2
Mac的内存管理 - 怡红科技院---哎呦,大爷,您来了 - 博客频道 - CSDN.NET
http://blog.csdn.net/u013152895/article/details/44223741
Reply
Like 0
View the author
duanyao
deepin
2017-07-01 20:10
#3
linux 上“可用内存”的概念实际上最近有了一些变化,中文翻译似乎还没有跟上。例如这是我的机器 free 命令的输出:
total used free shared buff/cache available
Mem: 8090952 1824604 1012696 421068 5253652 5535996
Swap: 0 0 0
Copy the Code
比起早期的 free 命令,除了“free”多出了一项“available”。free 是真正空闲的,可以立即分配的内存;而 available 是可用内存,即空闲内存加上可以回收的 buff/cache。注意并非所有的 buff/cache 都可以回收,有一部分是系统稳定运行所必需的,所以 available < free + buff/cache 。以前有一种错误的观点是 buff/cache 都可以回收,free + buff/cache 就是可用内存——你真这么用,立马卡死给你看。还有 free 也不能太小,因为回收 buff/cache 是需要时间的,而有些内存分配是不能等待的(例如处理中断),free 太小容易崩溃。
普通用户不必了解这么多,看系统监视器上的剩余内存就好,那个值就是可用内存( available)。
现代操作系统的很多方面都趋同了,当然 Windows 的内存管理比 Linux 还是复杂一些。
目前 Linux 内存管理上可以吐槽的点主要是内存耗尽时容易整个卡死,参考我的帖子
https://bbs.deepin.org/post/141744
。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Four agent skills for laptop power, sleep, and honest bug reports
Installing qemu-user breaks deepin
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More
可用内存少是标配啊,windows可用内存也不多啊,只是以前显示的不完整没发现而已(貌似)
rt:
今天发现的,可以显示得更详细一些了呢