lkml.org 
[lkml]   [2004]   [Jul]   [6]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 06 Jul 2004 13:02:18 +0800
Fromlihg <>
SubjectHow to improve my dirver's performance
I have writen a driver as this :

1)a kernel thread receive data sent by other computer via tcp/ip, and
put them into a queue;
2)another kernel thread get the data from the queue ,and write it to a
disk .In this step,i implement by the follow code:

	......
	    generic_make_request(WRITE,bh);//the buffer head is alloced by
kmalloc by myself
            run_task_queue(&tq_disk);
   	......
My problem :
	In this way ,the disk's performance is bad.
	How can i do to improve the disk's performance ?
	Please give me a hand.





-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [from the cache]
©2003-2008