LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-25-2014, 07:14 AM   #1
bsrajan
LQ Newbie
 
Registered: Apr 2013
Posts: 7

Rep: Reputation: Disabled
Core affinity and scheduling


In SMP linux running in a dual-core CPU, how does the scheduling work in the following conditions for a process whose affinity is set to both Cores?
1. Core 0 is 100% utilized and Core 1 is ~50% utilized (read as CPU cycles available)
2. Core 1 is 100% utilized and Core 0 is ~50% utilized (read as CPU cycles available)
3. Both Core 0 & Core 1 are almost IDLE
 
Old 08-27-2014, 05:43 AM   #2
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
doubt if there can be definite answers, will see

meantime you can check this article, for example:
http://lwn.net/Articles/80911/

the process will tend to stay on the same CPU once moved into its run queue, taking into consideration cache affinity, physical topology, actual imbalance (50% is not a scheduler metric)
 
  


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
Thread scheduling on a multi core machine haftas Linux - Kernel 8 12-14-2010 09:29 AM
thread affinity for a cpu core aloktiagi Linux - Newbie 4 08-21-2009 05:53 AM
Using taskset to set process affinity on multi-core/hyperthreading lennyk Linux - Software 0 04-06-2009 09:29 AM
POSIX thread scheduling problem on Fedora Core 5 katlina Programming 3 11-16-2006 12:38 PM
Processor affinity and cpu scheduling...? Thaidog Linux - Newbie 5 01-09-2003 07:08 PM

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

All times are GMT -5. The time now is 05:29 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