<br><div class="gmail_quote">Dear All,<br><br>I am working on linux kernel 2.6.32.9 tegra NVIDIA board. <br> <br>I am getting ~8MBps speed of the Nand disk if i use hdparm <br>hdparm -t /dev/mtdblock3 <br><br>i made changes in block layer of kernel as below:- <br>
<br><font size="2"><span style="font-family:courier new,monospace">block/blk-core.c </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">static inline void add_request(struct request_queue *q, struct request *req)</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">{</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> drive_stat_acct(req, 1);</span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> /*</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> * elevator indicated where it wants this request to be</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> * inserted at elevator_merge time</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> */</span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> __elv_add_request(q, req, ELEVATOR_INSERT_BACK, 0);</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> //__elv_add_request(q, req, ELEVATOR_INSERT_SORT, 0);</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">}</span><br></font><br><br>changed ELEVATOR_INSERT_SORT to ELEVATOR_INSERT_BACK<br><span style="color:rgb(0, 0, 0)">it improves my NAND speed to 10MBps. </span><br><br>I am using "noop" I/O scheduler.<br>
<br>Will this change have any adverse effect in kernel ? or any other side effect as far as i am using only Nand no Hard disk. <br><br><br>Thanks <br><font color="#888888">Mani<br>
</font></div><br>