Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > The Linux Kernel
Reload this Page Linux (real-time) scheduling help
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

The Linux Kernel Compiling, theory, programming or other discussion about the linux kernel

Reply
 
Thread Tools Display Modes
Old 02-27-2008   #11 (permalink)
Just Joined!
 
Join Date: Feb 2008
Posts: 5
Quote:
Originally Posted by brahan_7 View Post
You are using 'SCHED_FIFI', which I'm sure you know means First In First Out, this is different from 'SCHED_OTHER' which would be the kernel default way of scheduling the threads, 1 being highest priority and 99 being lowest priority, to stay within 1 - 140...

if you were to say:
Code:
sched_get_priority_max(SCHED_OTHER);
you should get 0 and
if you said:
Code:
sched_get_priority_max(SCHED_OTHER);
you should get 0 also because the kernel handles the priorities...

So, using 'SHED_FIFO' or 'SHED_RR' you have min/max | 1/99 priorities for those threads within the process that you created...

You basically figured it out...

You need to make sure that 'check_preempt_curr_rt( )' is using the same kind of sched mechanism (FIFO, RR, OTHER) that you are using when you create the process.

Google SCHED_FIFO...you can find documentation for sched mechanisms.

Does that help at all?
I use SCHED_FIFO since I am using the real-time scheduling class, which is the only class that supports SCHED_FIFO and SCHED_RR. But then Im right then the real-time class uses 99/1 | max/min.

Also check_preempt_curr_rt(..) can only be called by a task in the real-time class thus having the SCHED_FIFO or SCHED_RR policies so I got that covered.

What I am trying to do? Or I have done it now, is to implemend SCHED_SPORADIC in the real-time class. Anyway thanks for the help. If u are more intressted Im glad to tell u mor about it.
micke_b is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Unified Kernel 0.2.1 is released linooxlee The Coffee Lounge 2 02-23-2008 08:56 PM
Solving Boot Problems with Grub - 2nd Edition Nerderello Linux Tutorials, HOWTO's & Reference Material 4 02-06-2005 11:44 AM
Asking good questions (2) jasonlambert Linux Newbie 5 12-13-2004 09:22 PM
Securing Linux 101: Reasonable Steps flw Linux Tutorials, HOWTO's & Reference Material 0 07-13-2003 04:34 AM

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 06:59 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0