Changes in block layer for IOScheduler Insertion selection
mani
manishrma at gmail.com
Fri May 27 08:29:38 EDT 2011
Dear All,
I am working on linux kernel 2.6.32.9 tegra NVIDIA board.
I am getting ~8MBps speed of the Nand disk if i use hdparm
hdparm -t /dev/mtdblock3
i made changes in block layer of kernel as below:-
block/blk-core.c
static inline void add_request(struct request_queue *q, struct request *req)
{
drive_stat_acct(req, 1);
/*
* elevator indicated where it wants this request to be
* inserted at elevator_merge time
*/
__elv_add_request(q, req, ELEVATOR_INSERT_BACK, 0);
//__elv_add_request(q, req, ELEVATOR_INSERT_SORT, 0);
}
changed ELEVATOR_INSERT_SORT to ELEVATOR_INSERT_BACK
it improves my NAND speed to 10MBps.
I am using "noop" I/O scheduler.
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.
Thanks
Mani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110527/31b93a0a/attachment.html
More information about the Kernelnewbies
mailing list