LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-06-2011, 11:12 PM   #1
bestyharis
LQ Newbie
 
Registered: Sep 2011
Posts: 12

Rep: Reputation: Disabled
Lightbulb multicore load balancing:


Dear experts,

how can I implement a load balancer like this in current linux scheduler?

/*
Initial state: both cores are switched off
Filling cores: applies when there is a ready task T
Step1: Is there any core empty?
If so, if core A is empty then launch T to core A,
otherwise launch T to core B
If not, go to step 2.
Step2: Launch T to the core less loaded,
If both cores are equally loaded then
increase frequency and launch T to core A.
Reducing frequency: applies when a task T finishes
Step3: Are both cores equally loaded?
If so, reduce frequency

*/

Suggestions please
 
Old 11-07-2011, 03:41 AM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Why do you want to? Do your tasks require this, have you found no existing scheduler configurable to suit your needs, or is it just to learn how to do it?

What specific hardware is this targetted for? You seem to assume dual-core rather than generic multi-core and the availability of variable(stepped?) frequency.

I'm no expert on this, but just having an OS running on a device is probably going to mean there's several user space processes already running (if not kernel ones), so how do you define equally loaded? I don't believe this to be an easy field to step into and improve over what's already out there.
 
Old 11-07-2011, 04:00 AM   #3
bestyharis
LQ Newbie
 
Registered: Sep 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
for academic purpose.. doing a project
 
Old 11-07-2011, 06:58 AM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,008

Rep: Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193
In that case I suggest you consult your material as I am sure the idea of a project is for you to learn how as opposed to someone telling you.
 
0 members found this post helpful.
  


Reply



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
Under moderate load in a multicore system of 13 processors one processor gets 100% us praveen24 Linux - Kernel 7 09-03-2009 04:21 AM
Load balancing Eazy-Snatch Linux - Software 1 05-24-2008 02:12 AM
ip load balancing jonfa Linux - Networking 1 05-20-2008 11:49 PM
Load Balancing without S/W hellmet Linux - Networking 2 09-28-2006 02:37 AM
Load Balancing? gsibble Linux - Networking 3 12-09-2003 10:39 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:01 PM.

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