设为首页 收藏本站
查看: 1662|回复: 0

[经验分享] Debian系统更新内核支持bigmem版本解决认不到4g内存

[复制链接]

尚未签到

发表于 2018-5-15 11:16:40 | 显示全部楼层 |阅读模式
最近安装了Debian 6.0.1a i3却发现内核没有自动加载上PAE
以下命令得知系统装了两条2G的内存条,硬件最大支持64G内存
dmidecode -t memory
# dmidecode 2.9
SMBIOS 2.5 present.

Handle 0x1000, DMI type 16, 15 bytes
Physical Memory Array
         Location: System Board Or Motherboard
         Use: System Memory
         Error Correction Type: Multi-bit ECC
         Maximum Capacity: 65280 MB
         Error Information Handle: Not Provided
         Number Of Devices: 8

Handle 0x1100, DMI type 17, 28 bytes
Memory Device
         Array Handle: 0x1000
         Error Information Handle: Not Provided
         Total Width: 72 bits
         Data Width: 64 bits
         Size: 2048 MB
         Form Factor: FB-DIMM
         Set: 1
         Locator: DIMM1
         Bank Locator: Not Specified
         Type: DDR2 FB-DIMM
         Type Detail: Synchronous
         Speed: 667 MHz (1.5 ns)
         Manufacturer: 80CE808980CE
         Serial Number: 501A024B
         Asset Tag: 010908
         Part Number: M395T5663QZ4-CE65

Handle 0x1101, DMI type 17, 28 bytes
Memory Device
         Array Handle: 0x1000
         Error Information Handle: Not Provided
         Total Width: 72 bits
         Data Width: 64 bits
         Size: 2048 MB
         Form Factor: FB-DIMM
         Set: 1
         Locator: DIMM2
         Bank Locator: Not Specified
         Type: DDR2 FB-DIMM
         Type Detail: Synchronous
         Speed: 667 MHz (1.5 ns)
         Manufacturer: 80CE808980CE
         Serial Number: 501A01C2
         Asset Tag: 010908
         Part Number: M395T5663QZ4-CE65

但是通过free命令得到只有3.3G

DSC0000.jpg


再去之前几台装了Debian 5.0.4 upd 查看free命令得到只有3G


DSC0001.jpg

  
对应的内核不一样,得到内存总数也不一样,针对这个问题只能安装个支持4G(bigmem)对应内核版本


由于要安装对应内核版本,所以先查看内核版本
root@debian:~/soft# uname -a
Linux debian 2.6.32-5-686 #1 SMP Tue Mar 8 21:36:00 UTC 2011 i686 GNU/Linux
2.6.32-5-686这个有32-31与32-35 请注意

为了能搜索更多安装包,先更新一下更新debian源

#Vi /etc/apt/sources.list
deb http://mirrors.163.com/debian lenny main non-free contrib
deb http://mirrors.163.com/debian lenny-proposed-updates main contrib non-free
deb http://mirrors.163.com/debian-security lenny/updates main contrib non-free
deb-src http://mirrors.163.com/debian lenny main non-free contrib
deb-src http://mirrors.163.com/debian lenny-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian-security lenny/updates main contrib non-free

再执行以下几个命令
#apt-get update
#apt-get upgrade
#apt-get dist-upgrade

apt-cache search -t squeeze-backports linux-image
linux-headers-2.6.26-1-openvz-686 - Header files for Linux 2.6.26-1-openvz-686
linux-headers-2.6.26-1-vserver-686-bigmem - Header files for Linux 2.6.26-1-vserver-686-bigmem
linux-headers-2.6.26-1-vserver-686 - Header files for Linux 2.6.26-1-vserver-686
linux-headers-2.6.26-1-xen-686 - Header files for Linux 2.6.26-1-xen-686
linux-image-2.6.26-1-486 - Linux 2.6.26 image on x86
linux-image-2.6.26-1-686-bigmem - Linux 2.6.26 image on PPro/Celeron/PII/PIII/P4
linux-image-2.6.26-1-686 - Linux 2.6.26 image on PPro/Celeron/PII/PIII/P4
linux-image-2.6.26-1-amd64 - Linux 2.6.26 image on AMD64
linux-image-2.6.26-1-openvz-686 - Linux 2.6.26 image on PPro/Celeron/PII/PIII/P4, OpenVZ support
linux-image-2.6.26-1-vserver-686-bigmem - Linux 2.6.26 image on PPro/Celeron/PII/PIII/P4, Linux-VServer support
linux-image-2.6.26-1-vserver-686 - Linux 2.6.26 image on PPro/Celeron/PII/PIII/P4, Linux-VServer support
linux-image-2.6.26-1-xen-686 - Linux 2.6.26 image on i686, oldstyle Xen support
linux-image-2.6.32-5-686 - Linux 2.6.32 for modern PCs
linux-image-2.6.32-5-686-bigmem - Linux 2.6.32 for PCs with 4GB+ RAM
linux-image-2.6-686 - Linux 2.6 for modern PCs (meta-package)


一直搜索不到以下版本,挺蛋疼的
linux-image-2.6.32-5-686-bigmem_2.6.32-31_i386.deb
只找到这个版本 linux-image-2.6.32-5-686-bigmem_2.6.32-35_i386.deb
而这个版本,系统本身的linux-base (>= 2.6.32-35),所以无奈之下升级到linux-base_2.6.32-35,再安装linux-image-2.6.32-5-686-bigmem_2.6.32-35_i386.deb,之前为什么没想直接升级linux-base,因为升级这个会可能导致一些设备驱动无法兼容导致没加载成功

用root用户安装
wget http://ftp.cn.debian.org/debian/pool/main/l/linux-2.6/linux-base_2.6.32-35_all.deb
dpkg -i linux-base_2.6.32-35_all.deb
wget http://ftp.cn.debian.org/debian/pool/main/l/linux-2.6/linux-image-2.6.32-5-686-bigmem_2.6.32-35_i386.deb
dpkg -i linux-image-2.6.32-5-686-bigmem_2.6.32-35_i386.deb

或者aptitude install linux-image-2.6.32-5-686-bigmem


新内核加到开机启动菜单
root@debian:/etc# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-5-686-bigmem
Found initrd image: /boot/initrd.img-2.6.32-5-686-bigmem
Found linux image: /boot/vmlinuz-2.6.32-5-686
Found initrd image: /boot/initrd.img-2.6.32-5-686
done


最后重新启动系统

再次检查一下系统版本
root@debian:/etc# uname -a
Linux debian 2.6.32-5-686-bigmem #1 SMP Mon Jun 13 05:03:09 UTC 2011 i686 GNU/Linux

再查看
root@debian:/etc# free
total       used       free     shared    buffers     cached
Mem:       4144028    132564    4011464          0       3696      81800
-/+ buffers/cache:      47068    4096960
Swap:      5840888          0    5840888


说明成功了

                                                                      --------viong 2011.09.07 0:22

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-460476-1-1.html 上篇帖子: debian linux静态IP设置。 下篇帖子: debian安装oracle 10g xe
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

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