
阅读linux源代码
文章平均质量分 65
yangp01
这个作者很懒,什么都没留下…
展开
-
2010-3-26 page和buffer_head
首次看页高速缓存时,以为在页高速缓存中,每个page的private都指向buffer_head链表,但是阅读完do_mpage_readpage()函数后,发现并非如此。对于普通文件的页高速缓存,如果页中的段在磁盘上是连续的,那么page中的PG_private标志就不会置位,且private不会指向buffer_head链表。 我们可以沿着这样的思路往下走:原创 2010-03-26 21:06:00 · 1474 阅读 · 0 评论 -
2010-3-25 do_mpage_readpage 代码注释
/* * This is the worker routine which does all the work of mapping the disk * blocks and constructs largest possible bios, submits them for IO if the * blocks are not contiguous on the disk. *原创 2010-03-25 22:02:00 · 1944 阅读 · 0 评论 -
2010-3-29 page buffer_head
与前两个帖子有点重复,只是想全面具体一点。 通过阅读函数do_mpage_readpage()的代码,我可以确定page和buffer_head没有必然关系,即在页高速缓存中,如果页中的块在磁盘上不连续,那么就需要构造buffer_head链表,由page中的private字段指向该链表头,且PG_private标志置位;如果页中的块原创 2010-03-29 11:51:00 · 3034 阅读 · 1 评论 -
【转】关于Linux 文件系统
今天在网上看到一个人的博客 http://blog.chinaunix.net/u1/51562/article_86254.html 对Linux的文件系统做了很详细说明,值得一看转载 2010-03-30 21:28:00 · 579 阅读 · 0 评论 -
2010-4-13 pdflush 之 balance_dirty_pages_ratelimited 之ratelimit_pages
ratelimite_pages、write_trunk的计算对于ratelimit_pages,代码中的注释为 "After a CPU has dirtied this many pages, balance_dirty_pages_ratelimited will look to see if it needs to force writeba原创 2010-04-13 23:40:00 · 2163 阅读 · 0 评论 -
【转】linux内核代码——页框的回收
本文转自:http://wsqhs.spaces.live.com/blog/cns!94F639580F58209C!490.entrylinux内核代码——页框的回收 写这篇blog参照了OReilly 的《Understanding the Linux Kernel》,或者说是大部分参照,实际上这本书关于这章写得确实很经典。尽管如此,在看代码转载 2010-04-05 10:23:00 · 1776 阅读 · 0 评论 -
2010-4-6 有关回写
一、与回写有关参数在/proc/sys/vm/中所有的文件如下所示,其中有一部分是和页面回收相关的,我先分析页面回写机制,然后分析这些变量对回写的影响。-rw-r--r-- 1 root root 0 Mar 31 23:54 block_dump-rw-r--r-- 1 root root 0 Mar 31 23:54 dirty_background_ratio-r原创 2010-04-06 15:25:00 · 2734 阅读 · 0 评论