kswapd0 swap管理器,kjournald ext3日志进程,pdflush
来源:互联网 发布:linux挂载镜像文件 编辑:程序博客网 时间:2024/05/16 07:09
原文:http://hi.baidu.com/dmkj2008/blog/item/a863231f0f284075f624e43a.html
1.kswapd0
Linux uses kswapd for virtual memory management such that pages that have been recently accessed are kept in memory and less active pages are paged out to disk.
(what is a page?)…Linux uses manages memory in units called pages.
So,the kswapd process regularly decreases the ages of unreferenced pages…and at the end they are paged out(moved out) to disk
系统每过一定时间就会唤醒kswapd,看看内存是否紧张,如果不紧张,则睡眠,在kswapd中,有2个阀值,pages_hige和pages_low,当空闲内存页的数量低于pages_low的时候,kswapd进程就会扫描内存并且每次释放出32个free pages,直到free page的数量到达pages_high.
2.kjournald
EXT3文件系统的日志进程,具有3种模式:
journal - logs all filesystem data and metadata changes. The slowest of the three ext3 journaling modes, this journaling mode minimizes the chance of losing the changes you have made to any file in an ext3 filesystem.(记录所有文件系统上的元数据改变,最慢的一种模式,)
ordered - only logs changes to filesystem metadata, but flushes file data updates to disk before making changes to associated filesystem metadata. This is the default ext3 journaling mode.(默认使用的模式,只记录文件系统改变的元数据,并在改变之前记录日志)
writeback - only logs changes to filesystem metadata but relies on the standard filesystem write process to write file data changes to disk. This is the fastest ext3 journaling mode.(最快的一种模式,同样只记录修改过的元数据,依赖标准文件系统写进程将数据写到硬盘)
修改模式EXT3的工作模式;
vim /etc/fstab
3.pdflush
pdflush用于将内存中的内容和文件系统进行同步,比如说,当一个文件在内存中进行修改,pdflush负责将它写回硬盘.每当内存中的垃圾页(dirty page)超过10%的时候,pdflush就会将这些页面备份回硬盘.这个比率是可调节的,通过/etc/sysctl.conf中的 vm.dirty_background_ratio项 默认值为10 也可以
cat /proc/sys/vm/dirty_background_ratio 查看当前的值
/dev/hda5 /opt ext3 data=writeback 1 0详细介绍:
http://www.linuxplanet.com/linuxplanet/reports/4136/5/
- kswapd0 swap管理器,kjournald ext3日志进程,pdflush
- kswapd0、kjournald、pdflush、kblocked、migration进程含义
- kswapd0, kjournald,pdflush
- kswapd0,kjournald,pdflush 是干嘛的?
- 一次另类的由kjournald日志进程引起的磁盘io问题的解决
- kswapd0 进程CPU占用过高
- pdflush 进程详解
- pdflush进程详解
- pdflush进程详解
- pdflush进程详解
- pdflush进程详解
- pdflush进程详解
- pdflush进程详解
- (转)关于pdflush进程
- pdflush进程详解与优化
- 关于Linux的pdflush进程
- linux kjournald 进程IO高的处理办法
- ext3日志文件系统理解
- MD5加密算法使用
- 浏览器访问web资源的过程
- WP7学习笔记
- 2010-2020工作计划
- 四种实时操作系统的分析比较
- kswapd0 swap管理器,kjournald ext3日志进程,pdflush
- 互锁函数
- UItableView中滑动删除 cell
- 中断请求(IRQ)中断控制器(PIC)
- 获取jsp的物理路径
- 自上而下还是自下而上
- 在MFC程序中显示JPG/GIF图像
- 重回重庆(2008-10-17 23:37:32)
- VC++6.0调用lib