LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 995|回复: 8

在内核编译时,大内存支持,这里的大内存,是不是包括了虚拟内存?

[复制链接]
发表于 2007-1-29 12:52:29 | 显示全部楼层 |阅读模式
R。T。如果算上虚拟内存,那我就要开启支持了,如果不算,那就取消这个支持了,这样也能尽量精简内核。

P。S。在编译内核时,即使我有对应的硬件,但我为了加快启动速度,是不是可以不编入内核或模块呢?比如我有ieee和pccard之类的,但我就没编入内核里。
发表于 2007-1-29 13:38:23 | 显示全部楼层
你的理解是对的,没有的设备当然不用编入,或者模块化了,精简kernel吗,我的原来livecd的kernel 4m多,我自己编译的 也就1.1m左右
当然livecd的kernel 识别的设备要多,但对于咱们自己当然要精简了

虚拟内存????linux好像只有交换空间的概念。。。
回复 支持 反对

使用道具 举报

发表于 2007-1-29 13:41:04 | 显示全部楼层
1. 你是不是指4G,64G的那个HIGHMEM
2. 可以
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-29 14:04:41 | 显示全部楼层
Post by zhllg
1. 你是不是指4G,64G的那个HIGHMEM
2. 可以

是 的,我指的highmem。
BTW,上面说法有误,我指的虚拟内存是指swap。
我的mem是512+256的,swap设为512,有没有必要打开highmem 支持?
回复 支持 反对

使用道具 举报

发表于 2007-1-29 14:16:07 | 显示全部楼层
Linux can use up to 64 Gigabytes of physical memory on x86 systems.  
However, the address space of 32-bit x86 processors is only 4        
Gigabytes large. That means that, if you have a large amount of      
physical memory, not all of it can be "permanently mapped" by the   
kernel. The physical memory that's not permanently mapped is called  
"high memory".                                                      
                                                                     
If you are compiling a kernel which will never run on a machine with
more than 1 Gigabyte total physical RAM, answer "off" here (default  
choice and suitable for most users). This will result in a "3GB/1GB"
split: 3GB are mapped so that each process sees a 3GB virtual memory
space and the remaining part of the 4GB virtual memory space is used
by the kernel to permanently map as much physical memory as         
possible.                                                            
                                                                     
If the machine has between 1 and 4 Gigabytes physical RAM, then      
answer "4GB" here.                                                   
                                                                     
If more than 4 Gigabytes is used then answer "64GB" here. This        
selection turns Intel PAE (Physical Address Extension) mode on.
回复 支持 反对

使用道具 举报

发表于 2007-1-29 14:21:46 | 显示全部楼层
这个东西不能称作大内存
否则可能误导别人
一定要称HIGHMEM
这是对不能永久的映射到内核地址空间的物理内存的特有称谓
回复 支持 反对

使用道具 举报

发表于 2007-1-29 14:33:57 | 显示全部楼层
你的物理内存不超过4G,完全不需要启动这个选项。
回复 支持 反对

使用道具 举报

发表于 2007-1-29 19:37:24 | 显示全部楼层
1G的内存就需要启动这个选项了

在我的系统上,不启动这个选项只能认出800M左右的内存

所以楼主的不需要启动

Post by wsw
你的物理内存不超过4G,完全不需要启动这个选项。
回复 支持 反对

使用道具 举报

发表于 2007-1-30 17:24:50 | 显示全部楼层
Post by iamone
1G的内存就需要启动这个选项了

在我的系统上,不启动这个选项只能认出800M左右的内存

所以楼主的不需要启动

不会吧,我怎么可以识别的,你用哪个版本的内核?
回复 支持 反对

使用道具 举报

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

本版积分规则

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