问个关于swap的问题
Tofloor
poster avatar
FZFZ
deepin
2016-12-20 20:46
Author
我现的有8G Ram
在分区时,按照惯例依然分了8G SWAP。我能否取消掉?
Reply Favorite View the author
All Replies
1 / 2
To page
avatar
wangyong
deepin
2016-12-20 21:04
#1
8g就不需要swap了
Reply View the author
avatar
kuake
deepin
2016-12-20 21:23
#2
能取消。但有必要折腾吗?你8G内存,硬盘估计小不了。有些发行版在安装时会强调swap分区。浪费这8G,可以在将来的学习中省不少心。
Reply View the author
avatar
133******90
deepin
2016-12-20 21:36
#3
本帖最后由 wuqingyi 于 2016-12-20 16:12 编辑

8G内存根本就不需要swap了,sudo swapoff 先关闭swap,把swap分区删除就行了。真的需要swap的时候完全可以临时创建一个swap(网上有教程http://blog.csdn.net/gua___gua/article/details/46013561),这样还能节省一个分区。
Reply View the author
avatar
jorbuzz
deepin
2016-12-20 21:42
#4
如果你有 8 gigas RAM,你必须创建16 gigas 一个交换分区。它始终是你的两倍拥有的内存量。
Reply View the author
Comments
MattD
2016-12-20 21:54
Hi bro, looks you are not native Chinese. I suggest using English instead, because sometimes machine translations are ambiguous and might be difficult to understand.
kuake
2016-12-20 21:48
大小上,没这么苛刻。
avatar
Feng Yu
deepin
2016-12-20 21:43
#5
没有swap无法休眠,所以还是有点用的
Reply View the author
avatar
jorbuzz
deepin
2016-12-20 21:58
#6
https://bbs.deepin.org/post/133226
如果你有 8 gigas RAM,你必须创建16 gigas 一个交换分区。它始终是你的两倍拥有的内存量。 ...

Okay. It said that when you have a memory of 8 gigabits ram, it is best to create a partition 16-gigabit Swap. You should always create swap partitions of the double of memory that we have.
Reply View the author
avatar
FZFZ
deepin
2016-12-20 22:58
#7
感谢以上各位的热心答疑。
Thank you guys.
Reply View the author
avatar
yuri
deepin
2016-12-20 23:13
#8
有些软件还是需要swap的,所以还是留着吧。
Reply View the author
avatar
呆了个呆
deepin
2016-12-20 23:24
#9

谁说不需要了,我就是没有要,现在天天内存爆满,搞得我只有加 swapfile。

现在的软件太占内存,我用开了一个 chrome,一个 netbeans 就这两破软件能把8G用完
Reply View the author
avatar
paul1411
deepin
2016-12-20 23:32
#10
我是4G的内存 ,分了4G的swap ,现在加了个4G共8G内存,不知如何处理呢。
Reply View the author
avatar
FZFZ
deepin
2016-12-20 23:46
#11
https://bbs.deepin.org/post/133226
我是4G的内存 ,分了4G的swap ,现在加了个4G共8G内存,不知如何处理呢。

sudo swapoff 先关闭swap
之后可以用分区工具删除你的swap分区,但是怎么无损合并我真不知道。
不过4G么,就当没有吧。
Reply View the author
avatar
FZFZ
deepin
2016-12-20 23:47
#12
https://bbs.deepin.org/post/133226
谁说不需要了,我就是没有要,现在天天内存爆满,搞得我只有加 swapfile。

现在的软件太占内存,我用开 ...

我玩大型游戏,再开个chrome 还能剩4G
Reply View the author
avatar
rexlevin
deepin
2016-12-21 00:25
#13
https://bbs.deepin.org/post/133226
谁说不需要了,我就是没有要,现在天天内存爆满,搞得我只有加 swapfile。

现在的软件太占内存,我用开 ...

太对了,chrome死占内存。
Reply View the author
avatar
132******13
deepin
2016-12-21 03:49
#14
swap在跑虚拟机和休眠的时候有用
Reply View the author
avatar
paul1411
deepin
2016-12-21 04:35
#15
https://bbs.deepin.org/post/133226
swap在跑虚拟机和休眠的时候有用

如何增加swap分区。我是/,swap,home三个分区。三个分区相邻。
Reply View the author
avatar
132******13
deepin
2016-12-21 05:17
#16
https://bbs.deepin.org/post/133226
如何增加swap分区。我是/,swap,home三个分区。三个分区相邻。

把/分区缩小一下,然后删掉swap分区再新建一个就好了,/home就不要缩了,它在swap分区后面如果缩它的话会影响分区头部的文件
Reply View the author
avatar
paul1411
deepin
2016-12-21 05:31
#17
https://bbs.deepin.org/post/133226
把/分区缩小一下,然后删掉swap分区再新建一个就好了,/home就不要缩了,它在swap分区后面如果缩它的话会 ...

开着deepin不行吧,是不是要在unmount下处理这些?
Reply View the author
avatar
A·S·M·X·T 😏😜
deepin
2016-12-21 05:58
#18
https://bbs.deepin.org/post/133226
如何增加swap分区。我是/,swap,home三个分区。三个分区相邻。

也可以加个swap文件,开启后会加入到swap池中,具体百度
Reply View the author
avatar
paul1411
deepin
2016-12-21 06:01
#19
https://bbs.deepin.org/post/133226
也可以加个swap文件,开启后会加入到swap池中,具体百度

网上的都是这种方式,不想这个搞法。
Reply View the author
avatar
Feng Yu
deepin
2016-12-21 06:06
#20
https://bbs.deepin.org/post/133226
也可以加个swap文件,开启后会加入到swap池中,具体百度

可惜btrfs不支持swap文件,无法挂载.EXT4没有问题
Reply View the author
1 / 2
To page