login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
July
»
1
Re: [PATCH repost] sched: export sched_set/getaffinity to modules
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Michael S. Tsirkin
Subject:
Re: [PATCH repost] sched: export sched_set/getaffinity to modules
Date: Thursday, July 1, 2010 - 5:23 am
On Thu, Jul 01, 2010 at 02:55:07PM +0300, Michael S. Tsirkin wrote:
quoted text
> On Thu, Jul 01, 2010 at 01:43:23PM +0200, Peter Zijlstra wrote: > > On Thu, 2010-07-01 at 13:19 +0200, Peter Zijlstra wrote: > > > On Thu, 2010-07-01 at 14:07 +0300, Michael S. Tsirkin wrote: > > > > Author: Sridhar Samudrala <sri@us.ibm.com> > > > > > > > > sched: export sched_set/getaffinity to modules > > > > > > > > vhost-net driver wants to copy the affinity from the > > > > owner thread to thread it creates. Export > > > > sched_set/get affinity to modules to make this possible > > > > when vhost is built as a module. > > > > > Urgh,.. so why again is that a good idea? > > > > In particular: > > - who sets the affinity of the task? > > management tools do this when they start qemu. > > > - why can't it set the kernel thread's affinity too? > > It can. However: the threads are started internally by the driver > when qemu does an ioctl. What we want to do is give it a sensible > default affinity. management tool can later tweak it if it wants to. > > > - what happens if someone changes the tasks' affinity? > > We would normally create a cgroup including all internal > tasks, making it easy to find and change affinity for > them all if necessary. > > > So no, I don't think this is a sensible thing to do at all.
The patch using this is here:
http://www.mail-archive.com/kvm@vger.kernel.org/msg35411.html
It simply copies the affinity from the parent when thread is created. -- MST --
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:
[PATCH 2/3] workqueue: Add an API to create a singlethread ...
, Sridhar Samudrala
, (Tue May 18, 5:04 pm)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Michael S. Tsirkin
, (Thu May 27, 2:14 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Oleg Nesterov
, (Thu May 27, 5:44 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Michael S. Tsirkin
, (Thu May 27, 6:12 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Tejun Heo
, (Thu May 27, 9:15 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Sridhar Samudrala
, (Thu May 27, 9:24 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Michael S. Tsirkin
, (Thu May 27, 9:41 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Tejun Heo
, (Thu May 27, 9:56 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Oleg Nesterov
, (Thu May 27, 10:30 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Michael S. Tsirkin
, (Thu May 27, 10:32 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Tejun Heo
, (Thu May 27, 2:20 pm)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Michael S. Tsirkin
, (Fri May 28, 8:08 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Tejun Heo
, (Fri May 28, 8:54 am)
Re: [PATCH 2/3] workqueue: Add an API to create a singleth ...
, Michael S. Tsirkin
, (Sun May 30, 4:29 am)
[PATCH 3/3] vhost: apply cpumask and cgroup to vhost pollers
, Tejun Heo
, (Sun May 30, 1:25 pm)
Re: [PATCH 3/3] vhost: apply cpumask and cgroup to vhost p ...
, Li Zefan
, (Sun May 30, 6:11 pm)
[PATCH UPDATED 3/3] vhost: apply cpumask and cgroup to vho ...
, Tejun Heo
, (Sun May 30, 11:58 pm)
Re: [PATCH 2/3] cgroups: Add an API to attach a task to cu ...
, Tejun Heo
, (Mon May 31, 12:00 am)
Re: [PATCH UPDATED 3/3] vhost: apply cpumask and cgroup to ...
, Li Zefan
, (Mon May 31, 12:48 am)
Re: [PATCH UPDATED2 3/3] vhost: apply cpumask and cgroup t ...
, Tejun Heo
, (Mon May 31, 3:20 am)
Re: [PATCH 1/3] vhost: replace vhost_workqueue with per-vh ...
, Oleg Nesterov
, (Mon May 31, 7:39 am)
Re: [PATCH 1/3] vhost: replace vhost_workqueue with per-vh ...
, Tejun Heo
, (Mon May 31, 8:07 am)
Re: [PATCH 1/3] vhost: replace vhost_workqueue with per-vh ...
, Michael S. Tsirkin
, (Mon May 31, 8:22 am)
Re: [PATCH 1/3] vhost: replace vhost_workqueue with per-vh ...
, Oleg Nesterov
, (Mon May 31, 8:31 am)
Re: [PATCH 1/3] vhost: replace vhost_workqueue with per-vh ...
, Tejun Heo
, (Mon May 31, 8:38 am)
Re: [PATCH 1/3] vhost: replace vhost_workqueue with per-vh ...
, Tejun Heo
, (Mon May 31, 8:45 am)
Re: [PATCH 1/3] vhost: replace vhost_workqueue with per-vh ...
, Michael S. Tsirkin
, (Mon May 31, 9:00 am)
[PATCH 3/3] vhost: apply cpumask and cgroup to vhost workers
, Tejun Heo
, (Tue Jun 1, 2:35 am)
Re: [PATCH 3/3] vhost: apply cpumask and cgroup to vhost w ...
, Michael S. Tsirkin
, (Tue Jun 1, 3:17 am)
Re: [PATCH 3/3] vhost: apply cpumask and cgroup to vhost w ...
, Tejun Heo
, (Tue Jun 1, 3:56 am)
Re: [PATCH 1/3] vhost: replace vhost_workqueue with per-vh ...
, Paul E. McKenney
, (Tue Jun 1, 7:13 am)
Re: [PATCH 3/3] vhost: apply cpumask and cgroup to vhost w ...
, Sridhar Samudrala
, (Tue Jun 1, 10:19 am)
Re: [PATCH 3/3] vhost: apply cpumask and cgroup to vhost w ...
, Tejun Heo
, (Tue Jun 1, 4:59 pm)
[PATCH UPDATED 1/3] vhost: replace vhost_workqueue with pe ...
, Tejun Heo
, (Wed Jun 2, 11:40 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Sridhar Samudrala
, (Wed Jun 2, 2:34 pm)
Re: [PATCH 3/3] vhost: apply cpumask and cgroup to vhost p ...
, Michael S. Tsirkin
, (Thu Jun 24, 1:11 am)
Re: [PATCH 3/3] vhost: apply cpumask and cgroup to vhost p ...
, Sridhar Samudrala
, (Thu Jun 24, 3:45 pm)
[PATCH] sched: export sched_set/getaffinity (was Re: [PATC ...
, Michael S. Tsirkin
, (Fri Jun 25, 3:10 am)
[PATCH repost] sched: export sched_set/getaffinity to modules
, Michael S. Tsirkin
, (Thu Jul 1, 4:07 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Thu Jul 1, 4:19 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Thu Jul 1, 4:43 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Thu Jul 1, 4:55 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Thu Jul 1, 5:23 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Thu Jul 1, 5:32 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Thu Jul 1, 5:34 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Thu Jul 1, 5:46 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Thu Jul 1, 5:50 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Thu Jul 1, 6:07 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Thu Jul 1, 6:08 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Thu Jul 1, 6:22 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Thu Jul 1, 6:57 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Tejun Heo
, (Thu Jul 1, 7:27 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Oleg Nesterov
, (Thu Jul 1, 7:33 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Oleg Nesterov
, (Thu Jul 1, 7:46 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Thu Jul 1, 7:55 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Sridhar Samudrala
, (Fri Jul 2, 11:01 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Fri Jul 2, 11:11 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Oleg Nesterov
, (Fri Jul 2, 2:06 pm)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Sun Jul 4, 2:00 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Sridhar Samudrala
, (Mon Jul 12, 11:59 pm)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Tue Jul 13, 4:09 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Sridhar Samudrala
, (Wed Jul 14, 4:26 pm)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Oleg Nesterov
, (Wed Jul 14, 5:05 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Thu Jul 22, 8:58 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Thu Jul 22, 2:21 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Sat Jul 24, 12:14 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Sun Jul 25, 12:41 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Sun Jul 25, 3:04 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 8:25 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Mon Jul 26, 8:34 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Mon Jul 26, 8:46 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 8:50 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 8:51 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Mon Jul 26, 9:05 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Mon Jul 26, 9:14 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 9:23 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 9:31 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 9:51 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 9:57 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Mon Jul 26, 10:12 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Sridhar Samudrala
, (Mon Jul 26, 10:51 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Oleg Nesterov
, (Mon Jul 26, 11:08 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Mon Jul 26, 11:51 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Mon Jul 26, 12:04 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Mon Jul 26, 12:14 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Mon Jul 26, 12:31 pm)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Mon Jul 26, 12:55 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 12:57 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 12:59 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Mon Jul 26, 1:19 pm)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Mon Jul 26, 1:27 pm)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Mon Jul 26, 9:55 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Tue Jul 27, 1:18 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Tue Jul 27, 1:21 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Tue Jul 27, 8:41 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Tue Jul 27, 12:19 pm)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Wed Jul 28, 12:48 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Michael S. Tsirkin
, (Wed Jul 28, 3:48 am)
Re: [PATCH UPDATED 1/3] vhost: replace vhost_workqueue wit ...
, Tejun Heo
, (Wed Jul 28, 5:00 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Oleg Nesterov
, (Fri Jul 30, 7:19 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Tejun Heo
, (Fri Jul 30, 7:31 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Michael S. Tsirkin
, (Sun Aug 1, 1:50 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Oleg Nesterov
, (Mon Aug 2, 8:02 am)
Re: [PATCH repost] sched: export sched_set/getaffinity to ...
, Peter Zijlstra
, (Wed Aug 4, 3:45 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rusty Russell
Re: 2.6.22-rc3-mm1
Bill Fink
Re: [PATCH] net: add ability to clear stats via ethtool - e1000/pcnet32
Jeffrey V. Merkey
Re: Versioning file system
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Luben Tuikov
Re: Integration of SCST in the mainstream Linux kernel
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
OMAP: DSS2: SDI driver
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
PCI hotplug: acpiphp: remove superfluous _HPP/_HPX evaluation
linux-netdev
:
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
Rafael J. Wysocki
Re: [PATCH] igb: fix kexec with igb
Patrick McHardy
Re: [rfc 02/13] [RFC 02/13] netfilter: nf_conntrack_sip: Add callid parser
webmaster Maintenance
&#32852;&#31995;&#31995;&#32479;&#31649;&#29702;&#21592;
Krzysztof Oledzki
Re: Error: an inet prefix is expected rather than "0/0".
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Jack J. Woehr
Re: Real men don't attack straw men
Úlfar M. E. Johnson
installing openbsd in xen
Eric Furman
Re: Defending OpenBSD Performance
Tony Abernethy
Re: The Atheros story in much fewer words
git
:
Oliver Kullmann
Re: how to move with history?
Junio C Hamano
Re: [PATCH 2/3] git-add--interactive: remove hunk coalescing
Shawn O. Pearce
Re: Bugs in Gitosis
Alex Riesen
Re: git exclude patterns for directory
David Kastrup
Re: I'm a total push-over..
Colocation donated by:
Syndicate