How to find out default algorithms used?

2007-12-12 Thread Xiangfei Jia
Hi, I'm using Debian Etch with the default installed kernel 2.6.18.5. I know that the kernel uses anticipatory disk IO scheduler by default. But I have problem of finding other algorithms used by default. Like what is the default algorithm for page replacement? what algorithm for disk readahead? C

Re: Kernel's Buffer Cache Performance?

2007-12-10 Thread Xiangfei Jia
Hi Mulyadi, You are quite right. There are many things which can affect the tests. I think the most import two factors are (1) how files are accessed, e.g. sequentially or randomly, (2) which buffer cache and readahead algorithms are used. I've read Fengguang Wu's work some where. Basically reada

Kernel's Buffer Cache Performance?

2007-12-10 Thread Xiangfei Jia
Hi, I have been doing a testing to see how Linux buffer cache and readahead algorithms perform for reading a file from a disk. My assumption is that: (1) when the file size is less than the available physical memory, buffer cache and readahead can give better performance even though extra sectors