Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 09-05-2011, 04:10 AM   #1
LQ Newbie
Registered: Sep 2011
Posts: 3

Rep: Reputation: Disabled
Post Scheduling problems in embedded linux

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.
Old 09-06-2011, 03:58 PM   #2
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
If your I/O scheduler is set to CFQ, set it to deadline instead.

Last edited by macemoneta; 09-06-2011 at 03:59 PM. Reason: Typo: CFS->CFQ
Old 09-06-2011, 11:58 PM   #3
LQ Newbie
Registered: Sep 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for your help. I will check and let you know..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with OS and hardware compatibility on linux embedded board protvis Linux - Newbie 1 03-01-2010 10:47 AM
Frame buffer problems on Carmine GPU and Embedded Linux jshakthi Linux - Embedded & Single-board computer 0 07-18-2008 04:07 AM
Scheduling problems? mst700 Linux - Newbie 3 07-23-2004 10:23 PM
Problems scheduling jobs with cron ferrantepunto Linux - General 5 01-24-2003 08:05 AM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 03:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration