㈠ 内核简介职责:① 系统初始化:检查硬件资源并引导系统② 进程调度:决定进程的启动及运行时间③ 内存管理:为运行的进程分配内存④ 安全:校验系统权限、selinux、iptables策略⑤ 提供缓存版本:① 常规:一个或多个处理器,但RAM只能是4G或者小于4G② PAE:多处理器,且可支持高达64G RAM③ XEN:虚拟化所需内核总是安装在/boot/vmlinuz-*内核源码可到www.kernel.org网上下载㈡ 内核模块使用模块的几个理由:① 减少内存使用:不需要的驱动程序不会占用内存② 灵活性:模块可在系统安装后添加,这些模块通常被称为第三方驱动程序③ 最大化运行时间:模块可在不重启的状态下无限次装载和卸载在引导时需要的动态模块可用grub装入initrd(初始化内存盘),其他模块可在稍后根据需要装载这些模块位于/lib/modules/$(uname -r)/目录下内核模块工具:--modprobe:可装载或者卸载模块装载:[root@ www.linuxidc.com~]# modprobe usb_storage卸载:[root@ www.linuxidc.com~]# modprobe -r usb_storage模块只有在没有使用的前提下才可以被删除--lsmod:列出所有已装载模块的列表、相应的大小及使用量[root@ www.linuxidc.com~]# lsmod
Module Size Used by
netloop 10817 0 [permanent]
netbk 80065 0 [permanent]
blktap 120485 2 [permanent]
blkbk 24289 0 [permanent]
ip6table_filter 6849 0
ip6_tables 18181 1 ip6table_filter
ipt_MASQUERADE 7617 3
iptable_nat 10949 1
--modinfo:显示任意可用模块的信息[root@ www.linuxidc.com~]# modinfo ext3
filename: /lib/modules/2.6.18-308.el5xen/kernel/fs/ext3/ext3.ko
license: GPL
description: Second Extended Filesystem with journaling extensions
author: Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts"o and others
srcversion: 26DC008FC415305C5F65313
depends: jbd
vermagic: 2.6.18-308.el5xen SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1
module_sig: 883f3504f232fc6dc995cc0b59af121112e44a0a0b5f8ae8f7e90b5a613c37cfc50808c464f9a6d0a0a86a45e9d5fe9b7f9f4ed65957f3ce291b12fd--/etc/modprobe.conf 配置文件包含适用于装载在系统中的常用模块设置,需要时可另行添加[root@ www.linuxidc.com~]# cat /etc/modprobe.conf
alias eth0 vmxnet
alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptspi
alias scsi_hostadapter2 ata_piix
alias snd-card-0 snd-ens1371
options snd-card-0 index=0
options snd-ens1371 index=0
remove snd-ens1371 { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-ens1371
用virt-manager演示Xen虚拟机的创建及日常管理操作命令CentOS 5.8 中文乱码(方框字)解决相关资讯 Linux内核学习
- 谈谈如何学习Linux内核 (02/05/2014 19:28:01)
- Linux内核学习经验总结 (12/18/2013 14:42:39)
- Linux内核中的文件描述符(六)--fd (01/12/2013 15:14:53)
| - Linux内核模块学习 (01/04/2014 19:07:45)
- Linux内核中的likely和unlikely详 (01/12/2013 15:16:21)
- Linux内核中的文件描述符(五)--fd (01/11/2013 09:07:34)
|
本文评论 查看全部评论 (0)