Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
processor affinity
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
highland
n00b
n00b


Joined: 05 Nov 2008
Posts: 71

PostPosted: Wed Nov 19, 2008 7:31 am    Post subject: processor affinity Reply with quote

Hello

I have 4 core processor, and i would like to use processor0 for my system processes.
I configured vmware to use processor1 for vmware_machine1 and processor2 for vmware_processor2.

How can i control which process is run on which processor ?
How can i control in gentoo which processor should we user for all typical system processes ?

Thanx
Back to top
View user's profile Send private message
druggo
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 289
Location: Hangzhou, China

PostPosted: Wed Nov 19, 2008 12:32 pm    Post subject: Reply with quote

as I know, affinity only apply to hw interrupts, eg: sys-apps/irqbalance
Quote:
cat /proc/interrupts

_________________
HighWayToHell(blog)
http://blog.druggo.org/
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Wed Nov 19, 2008 12:37 pm    Post subject: Re: processor affinity Reply with quote

highland wrote:

How can i control in gentoo which processor should we user for all typical system processes ?

can you define what those "typical" system processes are?
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Wed Nov 19, 2008 12:58 pm    Post subject: Reply with quote

try this:

http://www.hamiltonshells.ca/~chris/projects/bunhax/
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
highland
n00b
n00b


Joined: 05 Nov 2008
Posts: 71

PostPosted: Wed Nov 19, 2008 1:17 pm    Post subject: Reply with quote

But - how do vmware selects which process (virtual machine) works on which processor ?

For me the perfect situation is:
- all system processes use processor 0
- some system processes user other processor (virtual machines)
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Wed Nov 19, 2008 1:59 pm    Post subject: Reply with quote

http://www.bullopensource.org/cpuset/
i really don't know, but i could imagine that vmware uses exactly this.
Back to top
View user's profile Send private message
highland
n00b
n00b


Joined: 05 Nov 2008
Posts: 71

PostPosted: Thu Nov 20, 2008 8:11 am    Post subject: Reply with quote

i've found it - taskset :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum