login
Login
/
Register
Search
Header Space
Forums
News
Jobs
Blogs
Features
Man Pages
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
1
Re: [RFC/PATCH 01/17] sched: mix tasks and groups
view
thread
Score:
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Peter Zijlstra <a.p.zijlstra@...>
To: <vatsa@...>
Cc: LKML <linux-kernel@...>, Ingo Molnar <mingo@...>, Dmitry Adamushko <dmitry.adamushko@...>, Mike Galbraith <efault@...>, Dhaval Giani <dhaval@...>
Subject:
Re: [RFC/PATCH 01/17] sched: mix tasks and groups
Date: Tuesday, April 1, 2008 - 8:05 am
On Tue, 2008-04-01 at 17:42 +0530, Srivatsa Vaddagiri wrote:
quoted text
> On Sun, Mar 09, 2008 at 06:08:51PM +0100, Peter Zijlstra wrote: > > This patch allows tasks and groups to exist in the same cfs_rq. With this > > change the CFS group scheduling follows a 1/(M+N) model from a 1/(1+N) > > fairness model where M tasks and N groups exist at the cfs_rq level. > > > > [a.p.zijlstra@chello.nl: rt bits] > > Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> > > Signed-off-by: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com> > > Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> > > --- > > kernel/sched.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++-- > > kernel/sched_fair.c | 48 +++++++++++++++++++++++++++++++++++++++++++--- > > kernel/sched_rt.c | 15 ++++++++------ > > 3 files changed, 106 insertions(+), 11 deletions(-) > > > > Index: linux-2.6-2/kernel/sched.c > > =================================================================== > > --- linux-2.6-2.orig/kernel/sched.c > > +++ linux-2.6-2/kernel/sched.c > > @@ -273,18 +273,23 @@ struct task_group { > > }; > > > > #ifdef CONFIG_FAIR_GROUP_SCHED > > + > > +#ifdef CONFIG_USER_SCHED > > /* Default task group's sched entity on each cpu */ > > static DEFINE_PER_CPU(struct sched_entity, init_sched_entity); > > /* Default task group's cfs_rq on each cpu */ > > static DEFINE_PER_CPU(struct cfs_rq, init_cfs_rq) ____cacheline_aligned_in_smp; > > +#endif > > > I am trying to understand the change this brings for semantics of RT-scheduling. > > With this change, /cgroup will be seen as the parent group of all other > groups (say: /cgroup/A, /cgroup/B etc). Is that correct? > > If so, the check in __rt_schedulable() needs a change as well, which assumes > that all task groups form a flat hierarchy.
Yes, I have that on my todo list somewhere. I realized the same thing earlier today :-)
quoted text
> For example: lets say that init_task_group (/cgroup in this case) had the > default rt_bandwidth of 95% (global_rt_runtime()). A child group under it > (/cgroup/A) is created. If user tries to assign it a rt-bandwidth of > 50%, then AFAICS, it will fail with current code, whereas it shouldn't > (because by giving /cgroup/A 50% bandwidth, we are not really exceeding > the globally allowed RT bandwidth of 95%, since /cgroup/A is a child of > /cgroup).
agreed. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[RFC/PATCH 01/17] sched: mix tasks and groups
, Peter Zijlstra
, (Sun Mar 9, 1:08 pm)
Re: [RFC/PATCH 01/17] sched: mix tasks and groups
, Srivatsa Vaddagiri
, (Tue Apr 1, 8:12 am)
Re: [RFC/PATCH 01/17] sched: mix tasks and groups
, Peter Zijlstra
, (Tue Apr 1, 8:05 am)
Navigation
Create content
Mailing list archives
Recent posts
Mail archive search
Enter your search terms.
all mailing lists
alsa-devel
dragonflybsd-bugs
dragonflybsd-commit
dragonflybsd-docs
dragonflybsd-kernel
dragonflybsd-submit
dragonflybsd-user
freebsd-announce
freebsd-bugs
freebsd-chat
freebsd-cluster
freebsd-current
freebsd-drivers
freebsd-embeded
freebsd-fs
freebsd-hackers
freebsd-hardware
freebsd-mobile
freebsd-net
freebsd-performance
freebsd-pf
freebsd-security
freebsd-security-notifications
freebsd-threads
git
git-commits-head
linux-activists
linux-arm
linux-ath5k-devel
linux-btrfs
linux-c-programming
linux-driver-devel
linux-ext4
linux-fsdevel
linux-ia64
linux-input
linux-kernel
linux-kernel-janitors
linux-kernel-mentors
linux-kernel-newbies
linux-kvm
linux-net
linux-netdev
linux-newbie
linux-nfs
linux-raid
linux-scsi
linux-security-module
linux-sparse
linux-usb
linux-usb-devel
madwifi-devel
netbsd-announce
netbsd-tech-kern
openbsd-announce
openbsd-bugs
openbsd-ipv6
openbsd-misc
openbsd-security-announce
openbsd-smp
openbsd-source-changes
openbsd-tech
openfabrics-general
openmoko-community
openmoko-devel
openmoko-kernel
reiserfs-devel
tux3
ucarp
Optionally limit your search to a specific mailing list.
advanced
Popular discussions
linux-kernel
:
Ryan Hope
reiser4 for 2.6.27-rc1
James Bottomley
Re: Integration of SCST in the mainstream Linux kernel
majkls
sys_chroot+sys_fchdir Fix
Pierre Ossman
Re: [RFC][PATCH] cpuidle: avoid singing capacitors
git
:
Randal L. Schwartz
[BUG] daemon.c blows up on OSX (was Re: What's in git.git (stable), and Announcing...
Shawn O. Pearce
Re: Smart fetch via HTTP?
Jakub Narebski
Re: VCS comparison table
Johannes Schindelin
Re: rc4 - make quick-install-doc is broken
openbsd-misc
:
Henning Brauer
Re: httpdv6
Edd Barrett
Re: Cold Boot Attacks on Encryption Keys
stuartv
Re: Microsoft gets the Most Secure Operating Systems award
Sunnz
How do I configure sendmail?
linux-activists
:
Stephen Pierce
SLS
Jim Winstead Jr.
Re: Root Disk/Book Disk Compatibility
Dave `geek' Gymer
WARNING (was Re: New afio release)
Anthony Peacock
Re: ACK! Something's wrong with X! :(
Latest forum posts
Is there anything like Real-time drivers?
7 minutes ago
Linux general
trouble with my Asus Mainboard
1 hour ago
Linux kernel
what is "callback function"?.can anyone explain me please..
1 day ago
Linux general
unable to remove block device driver module
1 day ago
Linux kernel
I can't allocate more than 4 MB with pci_alloc_consistent
2 days ago
Linux kernel
Resetting the bios password for Toshiba Laptop
2 days ago
Hardware
Kernel panic while installing fedora core 5 or ubuntu
3 days ago
Hardware
Interactive Linux kernel map
3 days ago
Linux kernel
unable to add a variable in buffer_head struct
3 days ago
Linux kernel
Linux Input driver - setting scaling/resolution on USB mouse
4 days ago
Linux kernel
Show all forums...
Recent Tags
Junio Hamano
Ingo Molnar
Jared Hulbert
Linus Torvalds
release
-rc
git 1.6.0
GCC
2.6.27
AXFS
Linux
squashfs
git 1.6
quote
git
cramfs
Rik van Riel
filesystem
Andrew Morton
performance
more tags
Colocation donated by:
Who's online
There are currently
3 users
and
934 guests
online.
Online users
Jeremy
strcmp
Mr_Z
Syndicate
speck-geostationary