LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: lovdebian

debian交换分区swap分配方案。

[复制链接]
发表于 2010-9-3 22:45:48 | 显示全部楼层
NOTES
       The maximum useful size of a swap area depends on the architecture and
       the kernel version.  It is roughly 2GiB on i386, PPC, m68k, ARM,  1GiB
       on  sparc,  512MiB  on  mips, 128GiB on alpha and 3TiB on sparc64. For
       kernels after 2.3.3 there is no such limitation.

       Note that before 2.1.117 the kernel allocated one byte for each  page,
       while  it now allocates two bytes, so that taking a swap area of 2 GiB
       in use might require 2 MiB of kernel memory.

       Presently, Linux allows  32  swap  areas  (this  was  8  before  Linux
       2.4.10).   The areas in use can be seen in the file /proc/swaps (since
       2.1.25).

man mkswap 不知今天是否继续适用
回复 支持 反对

使用道具 举报

发表于 2010-9-4 23:47:34 | 显示全部楼层
樓豬不用分這麽多的分區。

建議僅分3個分區
/                            =》從硬盤頭
/home                 =》緊靠/
swap                   =》從硬盤尾,這個不用大,如果樓豬電腦的物理內存在512m以上的話,建議256m大小就可以了。一半桌面應用的話幾乎很少用上很大。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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