Re: [RFC] sched: Limit idle_balance() when it is being used too frequently

2013-07-16 Thread Jason Low
On Tue, 2013-07-16 at 22:20 +0200, Peter Zijlstra wrote: > On Tue, Jul 16, 2013 at 12:21:03PM -0700, Jason Low wrote: > > When running benchmarks on an 8 socket 80 core machine with a 3.10 kernel, > > there can be a lot of contention in idle_balance() and related functions. &

Re: [RFC] sched: Limit idle_balance() when it is being used too frequently

2013-07-17 Thread Jason Low
On Wed, 2013-07-17 at 09:25 +0200, Peter Zijlstra wrote: > On Tue, Jul 16, 2013 at 03:48:01PM -0700, Jason Low wrote: > > On Tue, 2013-07-16 at 22:20 +0200, Peter Zijlstra wrote: > > > On Tue, Jul 16, 2013 at 12:21:03PM -0700, Jason Low wrote: > > > > When running ben

[PATCH net 2/2] macvtap: do not zerocopy if iov needs more pages than MAX_SKB_FRAGS

2013-07-17 Thread Jason Wang
her optimization on top. This bug were introduced from b92946e2919134ebe2a4083e4302236295ea2a73 (macvtap: zerocopy: validate vectors before building skb). Cc: Michael S. Tsirkin Signed-off-by: Jason Wang --- drivers/net/macvtap.c | 58 +++- 1 files changed,

[PATCH net 1/2] tuntap: do not zerocopy if iov needs more pages than MAX_SKB_FRAGS

2013-07-17 Thread Jason Wang
her optimization on top. The bug were introduced from commit 0690899b4d4501b3505be069b9a687e68ccbe15b (tun: experimental zero copy tx support) Cc: Michael S. Tsirkin Signed-off-by: Jason Wang --- drivers/net/tun.c | 62 1 files changed, 38 inserti

Re: [RFC] sched: Limit idle_balance() when it is being used too frequently

2013-07-17 Thread Jason Low
Hi Peter, On Wed, 2013-07-17 at 11:39 +0200, Peter Zijlstra wrote: > On Wed, Jul 17, 2013 at 01:11:41AM -0700, Jason Low wrote: > > For the more complex model, are you suggesting that each completion time > > is the time it takes to complete 1 iteration of the for_each_do

Re: [RFC] sched: Limit idle_balance() when it is being used too frequently

2013-07-17 Thread Jason Low
break; > > ... > > sd->cost = (sd->cost + this_cost) / 2; > cost += this_cost; > } > } > > I would've initially suggested using something like N=2 since we're dealing > with averages and half should ensure we don't run over

Re: [PATCH net 2/2] macvtap: do not zerocopy if iov needs more pages than MAX_SKB_FRAGS

2013-07-17 Thread Jason Wang
On 07/17/2013 07:06 PM, Michael S. Tsirkin wrote: > On Wed, Jul 17, 2013 at 06:32:11PM +0800, Jason Wang wrote: >> We try to linearize part of the skb when the number of iov is greater than >> MAX_SKB_FRAGS. This is not enough since each single vector may occupy more >>

[PATCH net V2 2/2] macvtap: do not zerocopy if iov needs more pages than MAX_SKB_FRAGS

2013-07-17 Thread Jason Wang
her optimization on top. This bug were introduced from b92946e2919134ebe2a4083e4302236295ea2a73 (macvtap: zerocopy: validate vectors before building skb). Cc: Michael S. Tsirkin Signed-off-by: Jason Wang --- The patch is needed for -stable. Changes from V1: - remove the wrong comment --- drivers/

[PATCH net V2 1/2] tuntap: do not zerocopy if iov needs more pages than MAX_SKB_FRAGS

2013-07-17 Thread Jason Wang
her optimization on top. The bug were introduced from commit 0690899b4d4501b3505be069b9a687e68ccbe15b (tun: experimental zero copy tx support) Cc: Michael S. Tsirkin Signed-off-by: Jason Wang --- The patch is needed fot -stable. --- drivers/net/tun.c |

Re: [RFC] sched: Limit idle_balance() when it is being used too frequently

2013-07-17 Thread Jason Low
not pull task(s). For example, N can be calculated based on the number of idle balance attempts for the CPU since the last "successful" idle balance attempt. So if the previous 30 idle balance attempts resulted in no tasks moved, then n = 30 / 5. So idle balance gets less time to ru

Re: [Ksummit-2013-discuss] Defining schemas for Device Tree

2013-07-29 Thread Jason Cooper
On Mon, Jul 29, 2013 at 05:49:05PM +0100, Dave Martin wrote: > On Mon, Jul 29, 2013 at 11:01:24AM -0400, Jason Cooper wrote: > > On Mon, Jul 29, 2013 at 02:21:52AM +0200, Tomasz Figa wrote: > > > b) What information should be specified in schemas? What level of > > >

Re: [Ksummit-2013-discuss] Defining schemas for Device Tree

2013-07-29 Thread Jason Gunthorpe
On Mon, Jul 29, 2013 at 01:23:39PM -0400, Jason Cooper wrote: > true, the answer to this problem may be to create a depgraph of the > nodes based on phandles and child status, then init. However, if the > goal is to accelerate boot times, then that should not be calculated > duri

Re: DT bindings as ABI [was: Do we have people interested in device tree janitoring / cleanup?]

2013-07-29 Thread Jason Gunthorpe
ed people are going to ship with unfinished DT and upgrade later. They have to. There is no choice. Stable DT doesn't change anything unless you can create perfect stable bindings for a new SOC instantaneously. This is where I see the whole disconnect in this discussion. General-purpose and embedde

Re: [Ksummit-2013-discuss] DT bindings as ABI [was: Do we have people interested in device tree janitoring / cleanup?]

2013-07-29 Thread Jason Gunthorpe
should have a boot process design that *can* couple the DT and kernel, while full featured firmware should keep them seperate. IMHO that should be the clear message to people implementing this stuff. After enough time the DT for 'a' should become stable and churn free, but expecting/de

Re: DT bindings as ABI [was: Do we have people interested in device tree janitoring / cleanup?]

2013-07-29 Thread Jason Gunthorpe
g the benefit of this work, and is it worth the cost? Jason -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [Ksummit-2013-discuss] [ATTEND] DT, maintainership, development process

2013-07-29 Thread Jason Cooper
s either... Even then, you are the author of the merge commit. So the original question of tracking a 'chain-of-custody' from submitter to Linus' tree is still answerable. Even if there is only a single SoB in the patch. thx, Jason. -- To unsubscribe from this list: send the line &

Re: [Ksummit-2013-discuss] Defining schemas for Device Tree

2013-07-29 Thread Jason Cooper
On Tue, Jul 30, 2013 at 08:29:20AM +1000, David Gibson wrote: > On Mon, Jul 29, 2013 at 01:23:39PM -0400, Jason Cooper wrote: > > On Mon, Jul 29, 2013 at 05:49:05PM +0100, Dave Martin wrote: > > > On Mon, Jul 29, 2013 at 11:01:24AM -0400, Jason Cooper wrote: > > > >

Re: [Ksummit-2013-discuss] DT bindings as ABI [was: Do we have people interested in device tree janitoring / cleanup?]

2013-07-29 Thread Jason Gunthorpe
;t carefully check it. I ment the kind of DT use we've seen in SPARC, POWER servers, Apple stuff, etc - systems explicitly designed so that new hardware will boot old OSs. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to major

Re: [PATCH] dynamic_debug: add wildcard support to filter files/functions/modules

2013-07-29 Thread Jason Baron
e is a concern - especially since the 'pat' pointer is controlled from userspace. Maybe not at pretty, but this can easily be done in userspace. For example, to set all driver/usb* one could do something like: grep "drivers/usb" control | awk -F ":| " '{ pr

Re: [Ksummit-2013-discuss] Defining schemas for Device Tree

2013-07-30 Thread Jason Cooper
On Tue, Jul 30, 2013 at 09:45:32AM +1000, David Gibson wrote: > On Mon, Jul 29, 2013 at 06:48:40PM -0400, Jason Cooper wrote: > > On Tue, Jul 30, 2013 at 08:29:20AM +1000, David Gibson wrote: > > > On Mon, Jul 29, 2013 at 01:23:39PM -0400, Jason Cooper wrote: > > > >

Re: [Ksummit-2013-discuss] Defining schemas for Device Tree

2013-07-30 Thread Jason Cooper
On Tue, Jul 30, 2013 at 11:50:31AM +1000, David Gibson wrote: > On Mon, Jul 29, 2013 at 01:23:39PM -0400, Jason Cooper wrote: > > On Mon, Jul 29, 2013 at 05:49:05PM +0100, Dave Martin wrote: > > > On Mon, Jul 29, 2013 at 11:01:24AM -0400, Jason Cooper wrote: > > > >

[RFC PATCH] sched: Reduce overestimating avg_idle

2013-07-31 Thread Jason Low
idle balance need to be the same as the migration_cost in task_hot()? Can we keep migration_cost default value used in task_hot() the same, but have a different default value or increase migration_cost only when comparing it with avg_idle in idle balance? Signed-off-by: Jason Low --- kernel/sched/c

Re: [Ksummit-2013-discuss] [ATTEND] [ARM ATTEND] kernel data bloat and how to avoid it

2013-07-31 Thread Jason Cooper
You'd get a lot of board code that wouldn't be used at each boot. This should be declining though... thx, Jason. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [Ksummit-2013-discuss] [ARM ATTEND] catching up on exploit mitigations

2013-07-31 Thread Jason Cooper
t; > about it, and get feedback for new places it could go.. > > > > I'd certainly be interested, no matter which forum. I would be as well. thx, Jason. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to maj

[ARM ATTEND] arch/arm SoC organization

2013-07-31 Thread Jason Cooper
to hear what everyone else is thinking. thx, Jason. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 16/18] ARM: orion: Switch to sched_clock_register()

2013-07-31 Thread Jason Cooper
On Wed, Jul 31, 2013 at 03:31:15PM -0700, Stephen Boyd wrote: > The 32 bit sched_clock interface now supports 64 bits. Upgrade to > the 64 bit function to allow us to remove the 32 bit registration > interface. > > Cc: Jason Cooper > Cc: Andrew Lunn > Signed-off-by: Stephe

Re: [RFC PATCH] sched: Reduce overestimating avg_idle

2013-08-01 Thread Jason Low
gher while there's a limit to how small each short idle duration is. This may help offset some of that bias towards a high avg. So how acceptable is setting a limit of 2*migration cost or less on the delta rather than on the avg? Thanks, Jason -- To unsubscribe from this list: send the lin

Re: [PATCH v3 05/16] ARM: mvebu: remove device tree parsing for cpu nodes

2013-08-01 Thread Jason Cooper
re same, which is incorrect. > > > > Since the CPU device nodes can be retrieved in the logical ordering > > using the DT helper, we can remove the devices tree parsing. > > > > This patch removes DT parsing by making use of of_get_cpu_node. > > > > Cc: Gregory

Re: [RFC PATCH] sched: Reduce overestimating avg_idle

2013-08-02 Thread Jason Low
balances after running a workload that has longer idle balances may sometimes cause it to make use of a higher idle balance cost. But I guess it is okay if we're trying to reduce overrunning the average. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: [PATCH 0/4] ARM: dove: DT updates for v3.11-rc2

2013-08-03 Thread Jason Cooper
| 235 > + > 4 files changed, 295 insertions(+), 40 deletions(-) > create mode 100644 arch/arm/boot/dts/dove-d2plug.dts Whole series applied to mvebu/boards. thx, Jason. -- To unsubscribe from this list: send the line "unsub

Re: [PATCH 1/2] ARM: remove dmacap,memset from Device tree binding

2013-08-03 Thread Jason Cooper
DT Maintainers, It's been a week with no comment. Shall I assume it's ok to apply this? thx, Jason. On Thu, Jul 25, 2013 at 11:31:04AM -0400, Jason Cooper wrote: > On Tue, Jul 02, 2013 at 12:54:12PM +0200, Sebastian Hesselbarth wrote: > > DMA_MEMSET support has been rem

Re: [PATCH V2 4/4] x86: correctly detect hypervisor

2013-08-04 Thread Jason Wang
On 07/25/2013 04:54 PM, Jason Wang wrote: > We try to handle the hypervisor compatibility mode by detecting hypervisor > through a specific order. This is not robust, since hypervisors may implement > each others features. > > This patch tries to handle this situation by always ch

Re: [PATCH 1/2] ARM: remove dmacap,memset from Device tree binding

2013-08-05 Thread Jason Cooper
On Mon, Aug 05, 2013 at 10:53:41AM +0100, Mark Rutland wrote: > On Sun, Aug 04, 2013 at 02:09:04AM +0100, Jason Cooper wrote: > > DT Maintainers, > > > > It's been a week with no comment. Shall I assume it's ok to apply > > this? > > Apologies for the

[RFC PATCH v3] sched: Limit idle balance based on max cost per sched domain

2013-08-20 Thread Jason Low
hat avg_idle and max_cost are) if the previous attempt on the rq or domain succeeded in moving tasks. I was also wondering if we should periodically reset the max cost. Both would require an extra field to be added to either the rq or domain structure though. Signed-off-by: Jason Low --- arch/

Re: [RFC PATCH v3] sched: Limit idle balance based on max cost per sched domain

2013-08-22 Thread Jason Low
On Thu, 2013-08-22 at 13:10 +0200, Peter Zijlstra wrote: > Fully agreed, this is something we should do regardless -- for as long > as we preserve the avg_idle() machinery anyway :-) Okay, I'll have the avg_idle fix as part 1 of the v4 patchset. > The thing you 'forgot' to mention is if this patc

Re: [PATCH 2/6] vhost_net: use vhost_add_used_and_signal_n() in vhost_zerocopy_signal_used()

2013-08-23 Thread Jason Wang
On 08/20/2013 10:33 AM, Jason Wang wrote: > On 08/16/2013 05:54 PM, Michael S. Tsirkin wrote: >> On Fri, Aug 16, 2013 at 01:16:26PM +0800, Jason Wang wrote: >>>> Switch to use vhost_add_used_and_signal_n() to avoid multiple calls to >>>> vhost_add_used_and_signal(

Re: [PATCH 6/6] vhost_net: remove the max pending check

2013-08-23 Thread Jason Wang
On 08/20/2013 10:48 AM, Jason Wang wrote: > On 08/16/2013 06:02 PM, Michael S. Tsirkin wrote: >> > On Fri, Aug 16, 2013 at 01:16:30PM +0800, Jason Wang wrote: >>> >> We used to limit the max pending DMAs to prevent guest from pinning too >>> >> many >

Re: [RFC] gcc feature request: Moving blocks into sections

2013-08-05 Thread Jason Baron
On 08/05/2013 03:40 PM, Marek Polacek wrote: On Mon, Aug 05, 2013 at 11:34:55AM -0700, Linus Torvalds wrote: On Mon, Aug 5, 2013 at 11:24 AM, Linus Torvalds wrote: Ugh. I can see the attraction of your section thing for that case, I just get the feeling that we should be able to do better some

Re: [RFC] gcc feature request: Moving blocks into sections

2013-08-05 Thread Jason Baron
understand. Thanks, -Jason -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [RFC] gcc feature request: Moving blocks into sections

2013-08-05 Thread Jason Baron
On 08/05/2013 04:35 PM, Richard Henderson wrote: On 08/05/2013 09:57 AM, Jason Baron wrote: On 08/05/2013 03:40 PM, Marek Polacek wrote: On Mon, Aug 05, 2013 at 11:34:55AM -0700, Linus Torvalds wrote: On Mon, Aug 5, 2013 at 11:24 AM, Linus Torvalds wrote: Ugh. I can see the attraction of

[net-next 0/6] Reduce code duplication of zerocopy of tun and macvtap

2013-08-06 Thread Jason Wang
. Jason Wang (6): net: move iov_pages() to net/core/iovec.c net: move zerocopy_sg_from_iovec() to net/core/datagram.c net: use skb_fill_page_desc() in zerocopy_sg_from_iovec() net: remove the useless comment in zerocopy_sg_from_iovec() net: use release_pages() in zerocopy_sg_from_iovec

[net-next 4/6] net: remove the useless comment in zerocopy_sg_from_iovec()

2013-08-06 Thread Jason Wang
Signed-off-by: Jason Wang --- net/core/datagram.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/net/core/datagram.c b/net/core/datagram.c index bec0867..a8a795c 100644 --- a/net/core/datagram.c +++ b/net/core/datagram.c @@ -653,7 +653,6 @@ int zerocopy_sg_from_iovec

[net-next 5/6] net: use release_pages() in zerocopy_sg_from_iovec()

2013-08-06 Thread Jason Wang
To reduce the duplicated codes. Signed-off-by: Jason Wang --- net/core/datagram.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/net/core/datagram.c b/net/core/datagram.c index a8a795c..badcd93 100644 --- a/net/core/datagram.c +++ b/net/core/datagram.c @@ -48,6

[net-next 3/6] net: use skb_fill_page_desc() in zerocopy_sg_from_iovec()

2013-08-06 Thread Jason Wang
Signed-off-by: Jason Wang --- net/core/datagram.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/net/core/datagram.c b/net/core/datagram.c index f987fae..bec0867 100644 --- a/net/core/datagram.c +++ b/net/core/datagram.c @@ -652,8 +652,7 @@ int zerocopy_sg_from_iovec

[net-next 6/6] net: use skb_copy_datagram_from_iovec() in zerocopy_sg_from_iovec()

2013-08-06 Thread Jason Wang
Use skb_copy_datagram_from_iovec() to avoid code duplication and make it easy to be read. Also we can do the skipping inside the zero-copy loop. Signed-off-by: Jason Wang --- net/core/datagram.c | 37 ++--- 1 files changed, 10 insertions(+), 27 deletions

[net-next 2/6] net: move zerocopy_sg_from_iovec() to net/core/datagram.c

2013-08-06 Thread Jason Wang
To let it be reused and reduce code duplication. Also document this function. Signed-off-by: Jason Wang --- drivers/net/macvtap.c | 80 - drivers/net/tun.c | 80 - include/linux/skbuff.h |4 ++ net

[net-next 1/6] net: move iov_pages() to net/core/iovec.c

2013-08-06 Thread Jason Wang
To let it be reused and reduce code duplication. Signed-off-by: Jason Wang --- drivers/net/macvtap.c | 23 --- drivers/net/tun.c | 23 --- include/linux/socket.h |2 ++ net/core/iovec.c | 24 4 files changed

Re: [PATCH 1/2] include: dt-binding: input: create a DT header defining key codes.

2013-08-06 Thread Jason Cooper
put.h Thanks for doing this! I'm adding the mvebu maintainers to the Cc: to remind us to go through our board files once this gets merged. thx, Jason. > > diff --git a/include/dt-bindings/input/input.h > b/include/dt-bindings/input/input.h > new file mode 100644 > index 0

Re: [PATCH 0/5] ARM: dove: switch to DT MBus

2013-08-06 Thread Jason Cooper
and mvebu/boards. I may redo this to merge mvebu/dove_dt back into mvebu/boards. I haven't decided yet. thx, Jason. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] ARM: dts: Fix memory node in skeleton64.dtsi

2013-08-07 Thread Jason Cooper
t; Good catch > > Acked-by: Gregory CLEMENT Since we introduced the file, and I can't think of any other tree that should take it, so I'll go ahead and take it. thx, Jason. > > Change-Id: Ie9b61166143969e020ceebc51e9a384405d8c0f2 > > Signed-off-by: Stepan Moskovchenko

Re: [PATCH] ARM: dts: Fix memory node in skeleton64.dtsi

2013-08-07 Thread Jason Cooper
ned-off-by: Stepan Moskovchenko > --- > arch/arm/boot/dts/skeleton64.dtsi |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) Applied to mvebu/fixes-non-critical with Gregory's Ack an Change-Id removed. thx, Jason. > > diff --git a/arch/arm/boot/dts/skeleton64.

Re: [RFC][PATCH 3/2] x86/jump labels: Count and display the short jumps used

2013-08-07 Thread Jason Baron
efault 'disabled' branch further out-of-line. We could get there with better compiler support for the 'cold' label attribute. Thus, in theory the whole 2-byte jmp is just an intermediate step. (Yeah, I know that support doesn't seem to be happening anytime soon...) T

Re: [RFC][PATCH 3/2] x86/jump labels: Count and display the short jumps used

2013-08-07 Thread Jason Baron
On 08/07/2013 04:47 PM, Linus Torvalds wrote: > On Wed, Aug 7, 2013 at 1:19 PM, Jason Baron wrote: >> The whole point of the thread started with wanting to move the default >> 'disabled' branch further out-of-line. > Yeah, but I always disagreed with that. > > Pu

Re: linux-next: Tree for Aug 8 (not CONFIG_PCI_MSI conflict)

2013-08-08 Thread Jason Cooper
t's us (mvebu tree) I've forwarded this to Thomas, the author of the patch. Hopefully we'll have this worked out soon. Thanks for testing, Jason. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.o

Re: [RFC] sched: Limit idle_balance() when it is being used too frequently

2013-07-18 Thread Jason Low
etting these performance gains? I actually just ran fserver on 8 sockets (which idle balance lowers the performance in this workload at this socket count), and for this workload, idle balancing is finding tasks to move fairly often on a per-cpu basis. So I guess it is not always the case that idle

Re: [RFC] sched: Limit idle_balance() when it is being used too frequently

2013-07-18 Thread Jason Low
On Thu, 2013-07-18 at 07:59 -0400, Rik van Riel wrote: > On 07/18/2013 05:32 AM, Peter Zijlstra wrote: > > On Wed, Jul 17, 2013 at 09:02:24PM -0700, Jason Low wrote: > > > >> I ran a few AIM7 workloads for the 8 socket HT enabled case and I needed > >> to set N to

[RFC PATCH v2] sched: Limit idle_balance()

2013-07-19 Thread Jason Low
balancing gets skipped if the approximate cost of load balancing will be greater than N% of the approximate time the CPU remains idle. Currently, N is set to 10% though I'm searching for a more "ideal" way to compute this. Suggested-by: Peter Zijlstra Suggested-by: Rik van Riel Signe

[PATCH] x86: properly handle KVM emulation of hyperv

2013-07-19 Thread Jason Wang
: Gleb Natapov Cc: Paolo Bonzini Cc: Vadim Rozenfeld Cc: K. Y. Srinivasan Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Signed-off-by: Jason Wang --- arch/x86/include/asm/kvm_para.h | 25 + arch/x86/include/uapi/asm/kvm_para.h |1 +

RE: Panic at _blk_run_queue on 2.6.32

2013-07-19 Thread Rich, Jason
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Rich, Jason > Sent: Monday, July 15, 2013 9:10 AM > To: Willy Tarreau > Cc: linux-kernel@vger.kernel.org > Subject: RE: Panic at _bl

Re: [RFC] sched: Limit idle_balance() when it is being used too frequently

2013-07-19 Thread Jason Low
On Fri, 2013-07-19 at 20:37 +0200, Peter Zijlstra wrote: > On Thu, Jul 18, 2013 at 12:06:39PM -0700, Jason Low wrote: > > > N = 1 > > - > > 19.21% reaim [k] __read_lock_failed > > 14.79% reaim [k] mspin_lock

Re: [RFC PATCH v2] sched: Limit idle_balance()

2013-07-19 Thread Jason Low
> 8 9.8% >12 34.77% >16 28.37% > > While on kernbench there was no significant change in the observation. > > I will try patch V2 and let you know the results. Great to see those improvements so far. T

Re: [PATCH 1/1] Drivers: base: memory: Export symbols for onlining memory blocks

2013-07-21 Thread Jason Wang
udev guys, udev won't provide unconditional, always enabled kernel policy in udev. This is really useful for driver to online the pages without user-space involvement. Acked-by: Jason Wang > Signed-off-by: K. Y. Srinivasan > --- > drivers/base/memory.c |5 - > include/linux

Re: [RFC PATCH v2] sched: Limit idle_balance()

2013-07-22 Thread Jason Low
avg_idle_balance_cost + cost)) with this line of code: if (idle_duration / 20 < (sd->avg_idle_balance_cost + cost)) Thanks a lot, Jason -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [RFC PATCH v2] sched: Limit idle_balance()

2013-07-22 Thread Jason Low
But I have found that a higher value may decrease the performance during situations where the cost of idle_balance is not high. Additionally, when to modify this tunable and by how much to modify it by can sometimes be unpredictable. Thanks, Jason -- To unsubscribe from this list: se

RE: Panic at _blk_run_queue on 2.6.32

2013-07-22 Thread Rich, Jason
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Willy Tarreau > Sent: Monday, July 22, 2013 4:04 AM > To: Rich, Jason > Cc: linux-kernel@vger.kernel.org > Subject: Re: Panic at _blk_run_qu

[PATCH net-next] tuntap: hardware vlan tx support

2013-07-23 Thread Jason Wang
S. Tsirkin Signed-off-by: Jason Wang --- drivers/net/tun.c | 39 +++ 1 files changed, 35 insertions(+), 4 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index a72d141..66e265d 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -60,6

[PATCH 1/4] x86: introduce hypervisor_cpuid_base()

2013-07-23 Thread Jason Wang
Anvin" Cc: "Paolo Bonzini" Cc: Gleb Natapov Cc: x...@kernel.org Signed-off-by: Jason Wang --- arch/x86/include/asm/processor.h | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/a

[PATCH 4/4] x86: properly handle kvm emulation of hyperv

2013-07-23 Thread Jason Wang
: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: Gleb Natapov Cc: Paolo Bonzini Cc: K. Y. Srinivasan Signed-off-by: Jason Wang --- arch/x86/kernel/cpu/hypervisor.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/

[PATCH 3/4] kvm: switch to use hypervisor_cpuid_base()

2013-07-23 Thread Jason Wang
Switch to use hypervisor_cpuid_base() to detect KVM. Cc: Gleb Natapov Cc: Paolo Bonzini Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: k...@vger.kernel.org Signed-off-by: Jason Wang --- arch/x86/include/asm/kvm_para.h | 17 ++--

[PATCH 2/4] xen: switch to use hypervisor_cpuid_base()

2013-07-23 Thread Jason Wang
ned-off-by: Jason Wang --- arch/x86/include/asm/xen/hypervisor.h | 16 +--- 1 files changed, 1 insertions(+), 15 deletions(-) diff --git a/arch/x86/include/asm/xen/hypervisor.h b/arch/x86/include/asm/xen/hypervisor.h index 125f344..d866959 100644 --- a/arch/x86/include/asm/xen/hy

Re: [PATCH net-next] tuntap: hardware vlan tx support

2013-07-23 Thread Jason Wang
On 07/23/2013 08:12 PM, Sergei Shtylyov wrote: > Hello. > > On 23-07-2013 11:15, Jason Wang wrote: > >> Inspired by commit f09e2249c4f5c7c13261ec73f5a7807076af0c8e (macvtap: >> restore >> vlan header on user read). This patch adds hardware vlan tx support for >

Re: [RFC PATCH v2] sched: Limit idle_balance()

2013-07-23 Thread Jason Low
y thinking was to not run idle balance once in n unsuccessful runs. When I suggested N is 20, that means that if the average idle time of a CPU is 1,000,000 ns, then we stop idle balancing if the average cost to idle balance within a domain would come up to be greater than (1,000,000 ns / 20) = 50

Re: [PATCH 1/4] x86: introduce hypervisor_cpuid_base()

2013-07-23 Thread Jason Wang
On 07/23/2013 09:48 PM, Gleb Natapov wrote: > On Tue, Jul 23, 2013 at 05:41:02PM +0800, Jason Wang wrote: >> > This patch introduce hypervisor_cpuid_base() which loop test the hypervisor >> > existence function until the signature match and check the number of >> >

Re: [PATCH 4/4] x86: properly handle kvm emulation of hyperv

2013-07-23 Thread Jason Wang
On 07/23/2013 10:48 PM, H. Peter Anvin wrote: > On 07/23/2013 06:55 AM, KY Srinivasan wrote: >> This strategy of hypervisor detection based on some detection order IMHO is >> not >> a robust detection strategy. The current scheme works since the only >> hypervisor emulated >> (by other hypervisor

Re: [PATCH net-next] tuntap: hardware vlan tx support

2013-07-23 Thread Jason Wang
On 07/23/2013 11:17 PM, Stephen Hemminger wrote: > On Tue, 23 Jul 2013 15:15:48 +0800 > Jason Wang wrote: > >> Inspired by commit f09e2249c4f5c7c13261ec73f5a7807076af0c8e (macvtap: restore >> vlan header on user read). This patch adds hardware vlan tx support for >&

Re: [PATCH 1/4] x86: introduce hypervisor_cpuid_base()

2013-07-23 Thread Jason Wang
On 07/24/2013 12:03 AM, H. Peter Anvin wrote: > On 07/23/2013 04:16 AM, Paolo Bonzini wrote: >> That's nicer, though strcmp is what the replaced code used to do in >> patches 2 and 3. >> >> Note that memcmp requires the caller to use "KVMKVMKVM\0\0" as the >> signature (or alternatively hypervisor_

Re: [PATCH net-next] tuntap: hardware vlan tx support

2013-07-23 Thread Jason Wang
On 07/23/2013 11:53 PM, Stephen Hemminger wrote: > On Tue, 23 Jul 2013 15:15:48 +0800 > Jason Wang wrote: > >> +struct { >> +__be16 h_vlan_proto; >> +__be16 h_vlan_TCI; >> +} veth; > Don&#x

Re: [PATCH 4/4] x86: properly handle kvm emulation of hyperv

2013-07-23 Thread Jason Wang
On 07/24/2013 12:48 PM, H. Peter Anvin wrote: > On 07/23/2013 09:37 PM, Jason Wang wrote: >> On 07/23/2013 10:48 PM, H. Peter Anvin wrote: >>> On 07/23/2013 06:55 AM, KY Srinivasan wrote: >>>> This strategy of hypervisor detection based on some detection order I

Re: [RFC PATCH v2] sched: Limit idle_balance()

2013-07-24 Thread Jason Low
rhaps one of the metrics I may use for computing N is the balance success rate for each sched domain. So in the above case, we give little to no time for idle balancing within domain 2, but allow more time to be spent balancing between domain 1 and domain 3 because the expected return is greater? Jaso

Re: [GIT PULL] clockevents/clocksource: Add Marvell Orion SoC timer

2013-07-24 Thread Jason Cooper
On Tue, Jul 16, 2013 at 05:55:41PM +0200, Daniel Lezcano wrote: > On 07/08/2013 10:45 AM, Thomas Gleixner wrote: > > On Sun, 7 Jul 2013, Jason Cooper wrote: > >> On Sun, Jul 07, 2013 at 05:30:31PM +0200, Thomas Gleixner wrote: > >> I don't mind delaying half of a se

RE: Panic at _blk_run_queue on 2.6.32

2013-07-24 Thread Rich, Jason
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Rich, Jason > Sent: Monday, July 22, 2013 4:15 PM > To: Willy Tarreau > Cc: linux-kernel@vger.kernel.org > Subject: RE: Panic at _bl

Re: [PATCH net-next] tuntap: hardware vlan tx support

2013-07-24 Thread Jason Wang
On 07/24/2013 11:11 PM, Stephen Hemminger wrote: > On Wed, 24 Jul 2013 13:55:14 +0800 > Jason Wang wrote: > >> On 07/23/2013 11:53 PM, Stephen Hemminger wrote: >>> On Tue, 23 Jul 2013 15:15:48 +0800 >>> Jason Wang wrote: >>> >>>> +

[PATCH net-next V2] tuntap: hardware vlan tx support

2013-07-24 Thread Jason Wang
: Michael S. Tsirkin Signed-off-by: Jason Wang --- Changes from V1: - typo and style fixes --- drivers/net/tun.c | 40 1 files changed, 36 insertions(+), 4 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index a72d141..5dce262 100644 --- a

Re: [PATCH 4/4] x86: properly handle kvm emulation of hyperv

2013-07-25 Thread Jason Wang
On 07/25/2013 03:59 PM, Paolo Bonzini wrote: > Il 24/07/2013 23:37, H. Peter Anvin ha scritto: >> What I'm suggesting is exactly that except that the native hypervisor is >> later in CPUID space. > Me too actually. > > I was just suggesting an implementation of the idea (that takes into > account

[PATCH V2 1/4] x86: introduce hypervisor_cpuid_base()

2013-07-25 Thread Jason Wang
Cc: Paolo Bonzini Cc: Gleb Natapov Cc: x...@kernel.org Signed-off-by: Jason Wang --- Changes from V1: - use memcpy() and uint32_t instead of strcmp() --- arch/x86/include/asm/processor.h | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/arch/x86/include/asm

[PATCH V2 4/4] x86: correctly detect hypervisor

2013-07-25 Thread Jason Wang
Tosatti Cc: Gleb Natapov Cc: Paolo Bonzini Cc: Frederic Weisbecker Cc: linux-kernel@vger.kernel.org Cc: de...@linuxdriverproject.org Cc: k...@vger.kernel.org Cc: xen-de...@lists.xensource.com Cc: virtualizat...@lists.linux-foundation.org Signed-off-by: Jason Wang --- arch/x86/include/asm

[PATCH V2 3/4] kvm: switch to use hypervisor_cpuid_base()

2013-07-25 Thread Jason Wang
Switch to use hypervisor_cpuid_base() to detect KVM. Cc: Gleb Natapov Cc: Paolo Bonzini Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Cc: k...@vger.kernel.org Signed-off-by: Jason Wang --- Changes from V1: - Introduce kvm_cpuid_base() which will

[PATCH V2 2/4] xen: switch to use hypervisor_cpuid_base()

2013-07-25 Thread Jason Wang
: Jason Wang --- arch/x86/include/asm/xen/hypervisor.h | 16 +--- 1 files changed, 1 insertions(+), 15 deletions(-) diff --git a/arch/x86/include/asm/xen/hypervisor.h b/arch/x86/include/asm/xen/hypervisor.h index 125f344..d866959 100644 --- a/arch/x86/include/asm/xen/hypervisor.h

Re: [PATCH] ARM: dove: fix missing __init section of dove_mpp_gpio_mode

2013-07-25 Thread Jason Cooper
init section. > > Signed-off-by: Sebastian Hesselbarth > --- > Cc: Jason Cooper > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > --- > arch/arm/mach-dove/mpp.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) Applied to mvebu

Re: [PATCH 1/2] ARM: remove dmacap,memset from Device tree binding

2013-07-25 Thread Jason Cooper
On Tue, Jul 02, 2013 at 12:54:12PM +0200, Sebastian Hesselbarth wrote: > DMA_MEMSET support has been removed, so update the device tree files > and corresponding binding documentation for Marvell SoCs. > > Signed-off-by: Sebastian Hesselbarth > --- > Cc: Russell King > C

Re: [PATCH 2/2] ARM: orion5x: add missing mbus include

2013-07-25 Thread Jason Cooper
On Tue, Jul 02, 2013 at 12:54:13PM +0200, Sebastian Hesselbarth wrote: > edmini_v2-setup is missing an include of linux/mbus.h which causes > compiler error because of missing reference to mvebu_mbus_add_window. > > Signed-off-by: Sebastian Hesselbarth > --- > Cc: Russell

Re: [PATCH v6 0/7] ARM: mvebu: switch to DT probed mv643xx_eth

2013-07-25 Thread Jason Cooper
T fixes and missing include on edmini_v2). > > netdev is added on Cc for completeness, this is all Marvell related and > should go through Jason Cooper's branch if there are no objections. > > Sebastian Hesselbarth (7): > ARM: dove: add gigabit ethernet and mvmdio device

Re: [PATCH v4 0/7] ARM: mvebu: switch to DT probed irqchip and clocksource

2013-07-25 Thread Jason Cooper
is different. This patch > set should be applied as a whole only, as device tree conversion breaks > kernel boot until the corresponding second patch is applied. As this set > is Marvell SoC related only, I suggest to take it all through Jason > Cooper's branch. > > Patch s

Re: DT bindings as ABI [was: Do we have people interested in device tree janitoring / cleanup?]

2013-07-25 Thread Jason Cooper
L'd a tarball and had to type 'tentative' to get to the binding doc I wanted, that would be a pretty clear clue to be delicate about how I trust/use/plan with that binding. thx, Jason. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [Ksummit-2013-discuss] DT bindings as ABI [was: Do we have people interested in device tree janitoring / cleanup?]

2013-07-25 Thread Jason Cooper
On Thu, Jul 25, 2013 at 09:04:35PM +0100, Mark Brown wrote: > On Thu, Jul 25, 2013 at 03:31:35PM -0400, Jason Cooper wrote: > > > I think the idea of a 'tentative' directory (or 'locked') is churnish, > > but necessary. If I DL'd a tarball and had to

Re: DT bindings as ABI [was: Do we have people interested in device tree janitoring / cleanup?]

2013-07-25 Thread Jason Cooper
On Thu, Jul 25, 2013 at 03:16:14PM -0500, Rob Herring wrote: > On Thu, Jul 25, 2013 at 2:31 PM, Jason Cooper wrote: > > On Thu, Jul 25, 2013 at 02:11:31PM -0500, Rob Herring wrote: > >> On Thu, Jul 25, 2013 at 11:09 AM, Olof Johansson wrote: > > > >> > On

Re: [PATCH 2/2] ARM: orion5x: add missing mbus include

2013-07-25 Thread Jason Cooper
On Thu, Jul 25, 2013 at 11:38:56AM -0400, Jason Cooper wrote: > On Tue, Jul 02, 2013 at 12:54:13PM +0200, Sebastian Hesselbarth wrote: > > edmini_v2-setup is missing an include of linux/mbus.h which causes > > compiler error because of missing reference to mvebu_mbus_add_window.

Re: DT bindings as ABI [was: Do we have people interested in device tree janitoring / cleanup?]

2013-07-25 Thread Jason Gunthorpe
rough UEFI and AHCI) to let the firmware do low level hardware specific work at runtime. This is how x86 gets the kind of compatability it has. Trying to describe and control every tiny detail (pin mux, regulator, clk) is great for embedded, but fundamentally not future-proof enough for general purpose. Re

Re: DT bindings as ABI [was: Do we have people interested in device tree janitoring / cleanup?]

2013-07-26 Thread Jason Cooper
On Thu, Jul 25, 2013 at 08:27:15PM -0400, jonsm...@gmail.com wrote: > On Thu, Jul 25, 2013 at 7:18 PM, Russell King - ARM Linux > wrote: > > On Thu, Jul 25, 2013 at 03:31:35PM -0400, Jason Cooper wrote: > >> On Thu, Jul 25, 2013 at 02:11:31PM -0500, Rob Herring wrote: > &

Re: [Ksummit-2013-discuss] DT bindings as ABI [was: Do we have people interested in device tree janitoring / cleanup?]

2013-07-26 Thread Jason Cooper
On Thu, Jul 25, 2013 at 10:53:15PM +0100, Ben Hutchings wrote: > On Thu, Jul 25, 2013 at 04:32:28PM -0400, Jason Cooper wrote: > [...] > > One of the things I've been trying to square up in my head is how to > > retain the history of the binding when moving to the new tre

<    2   3   4   5   6   7   8   9   10   11   >