Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel scheduler behavior change
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
srulop
n00b
n00b


Joined: 27 Dec 2006
Posts: 24

PostPosted: Mon Mar 23, 2015 8:57 am    Post subject: Kernel scheduler behavior change Reply with quote

Hi,

I know that I can set CPU affinity with taskset or cpuset, but that way I'm using only specific cores for a given process. What I want to do, is to tell the kernel to give a process a specific number of cores, and let the scheduler decide which cores to use, and how intensively to use them. Is such thing possible? Even if modification of the kernel code is required?

Thanks!
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14291

PostPosted: Tue Mar 24, 2015 1:42 am    Post subject: Reply with quote

According to Red Hat, CFS can do this. Warning: buggy Javascript.

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Resource_Management_Guide/sec-cpu.html
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Resource_Management_Guide/sect-cpu-Example_Usage.html
Back to top
View user's profile Send private message
srulop
n00b
n00b


Joined: 27 Dec 2006
Posts: 24

PostPosted: Tue Mar 24, 2015 6:25 pm    Post subject: Reply with quote

Hu, first of all, thanks - I wasn't aware of the functionality described there.

But it is not what I was looking for: this describes how to allow a process to fully utilize a limited number of CPUs, but what I'm looking for, is a way to limit the number of CPUs available to a process, while allowing other processes to run on these CPUs as well.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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