免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2557 | 回复: 1
打印 上一主题 下一主题

linux安装手动分区tips(Redhat官方文档) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-16 21:52 |只看该作者 |倒序浏览
http://web.mit.edu/rhel-doc/4/RH ... skpartitioning.html

for x86, AMD64, and Intel® EM64T systems
IA64的还需要创建一个至少100M的vfat格式/boot/efi分区

A swap partition (at least 256 MB) — swap partitions are used to support virtual memory. In other words, data is written to a swap partition when there is not enough RAM to store the data your system is processing.

If you are unsure about what size swap partition to create, make it twice the amount of RAM on your machine (but no larger than 2 GB). It must be of type swap.

Creation of the proper amount of swap space varies depending on a number of factors including the following (in descending order of importance):

The applications running on the machine.
The amount of physical RAM is installed on the machine.
The version of the OS.

Swap should equal 2x physical RAM for up to 2 GB of physical RAM, and then 1x physical RAM for any amount above 2 GB, but never less than 32 MB.

Using this formula, a system with 2 GB of physical RAM would have 4 GB of swap, while one with 3 GB of physical RAM would have 5 GB of swap. Creating a large swap space partition can be especially helpful if you plan to upgrade your RAM at a later time.


Tip
  If your partitioning scheme requires a swap partition that is larger than 2 GB, you should create an additional swap partition. For example, if you need 4 GB of swap, you should create two 2 GB swap partitions. If you have 4 GB of RAM, you should create three 2 GB swap partitions. Red Hat Enterprise Linux supports up to 32 swap files.

For systems with really large amounts of RAM (more than 32 GB) you can likely get away with a smaller swap partition (around 1x, or less, of physical RAM).

翻译 :单个swap区至少应该大于256M,小于2G。
当物理内存小于2G时,swap大小为物理内存的2倍。超过2G的部分,swap大小跟物理内存相等。

如果需要超过2GB的swap区,你应该创建另外的swap分区。
比如,你需要4GB的swap的分区,应该创建2个2GB的swap分区。

如果有4GB的物理内存,则应该创建3个2GB的swap分区。

分析:2GB的物理内存 需要swap 2x2GB=4GB,
超过2GB的2GB 需要swap 1x2GB=2GB。
所以总的是3个2GB的swap区

对于超过32G物理内存的,使用小于等于物理内存的swap区会更好。
-------------
A /boot/ partition (100 MB) — the partition mounted on /boot/ contains the operating system kernel (which allows your system to boot Red Hat Enterprise Linux), along with files used during the bootstrap process. Due to the limitations of most PC BIOSes, creating a small partition to hold these files is a good idea. For most users, a 100 MB boot partition is sufficient.

Tip
  If your hard drive is more than 1024 cylinders (and your system was manufactured more than two years ago), you may need to create a /boot/ partition if you want the / (root) partition to use all of the remaining space on your hard drive.

Tip
  If you have a RAID card, be aware that some BIOSes do not support booting from the RAID card. In cases such as these, the /boot/ partition must be created on a partition outside of the RAID array, such as on a separate hard drive.
一般设置100M的/boot分区,因为这里是存放启动的操作系统内核。
如果你有阵列卡,注意某些bios不支持从Raid卡启动,这时候不要把/boot分区安装在RAID阵列上。

--------------
A root partition (500 MB - 5.0 GB) — this is where "/" (the root directory) is located. In this setup, all files (except those stored in /boot) are on the root partition.

A 500 MB partition allows you to install a minimal installation, while a 5.0 GB root partition lets you perform a full installation, choosing all package groups.

/ 根分区,最小安装需要500MB,完全安装时需要5.0GB。
自己看着办。

[ 本帖最后由 tanyear 于 2006-1-17 11:01 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-01-16 22:00 |只看该作者
呵呵,今天我比较猪头,装了两台6G内存的Xeon,都分了一个6G的swap区。
正确的方式,按照官方推荐应该是分成4个2GB的swap区。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP