LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   Scheduling problems in embedded linux (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/scheduling-problems-in-embedded-linux-901185/)

Eben1588 09-05-2011 03:10 AM

Scheduling problems in embedded linux
 
Hi,
I am using embedded linux in iMX27 ARM processor. My C application has around 16 posix threads running, each of them configured to use round robin scheduling.

One of the thread handles flash operation. It uses mtd driver to write data directly to the flash. When this thread is busy writing data to the flash, other threads are not getting serviced(for about 20 seconds) until the flash write operation is complete.

As per my understanding, the RR scheduling should service all the threads one by one for a constant quantum time. Is there anything i can do to fix this? Or am i missing something here?

Please let me know.
Thanks in advance.

macemoneta 09-06-2011 02:58 PM

If your I/O scheduler is set to CFQ, set it to deadline instead.

Eben1588 09-06-2011 10:58 PM

Thanks for your help. I will check and let you know..


All times are GMT -5. The time now is 05:43 PM.