LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices


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

Rep: Reputation: Disabled
Post 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.
 
Old 09-06-2011, 02:58 PM   #2
macemoneta
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 02:59 PM. Reason: Typo: CFS->CFQ
 
Old 09-06-2011, 10:58 PM   #3
Eben1588
LQ Newbie
 
Registered: Sep 2011
Posts: 3

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


Reply


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 09:47 AM
Frame buffer problems on Carmine GPU and Embedded Linux jshakthi Linux - Embedded & Single-board computer 0 07-18-2008 03:07 AM
Scheduling problems? mst700 Linux - Newbie 3 07-23-2004 09:23 PM
Problems scheduling jobs with cron ferrantepunto Linux - General 5 01-24-2003 07:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 09:41 AM.

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