Re: [PATCH 1/2] mm: Export vm_committed_as

2012-11-08 Thread Andrew Morton
On Thu, 8 Nov 2012 14:14:35 -0800 (PST) David Rientjes wrote: > On Thu, 8 Nov 2012, Andrew Morton wrote: > > > > > I don't think you should export the symbol itself to modules but rather > > > > a > > > > helper function that returns s64 that just wraps > > > > percpu_counter_read_positive()

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-11-08 Thread David Rientjes
On Thu, 8 Nov 2012, Andrew Morton wrote: > > > I don't think you should export the symbol itself to modules but rather a > > > helper function that returns s64 that just wraps > > > percpu_counter_read_positive() which your driver could use instead. > > > > > > (And why

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-11-08 Thread KY Srinivasan
@canonical.com; de...@linuxdriverproject.org; linux- > m...@kvack.org; Hiroyuki Kamezawa; Michal Hocko; Johannes Weiner; Ying Han > Subject: Re: [PATCH 1/2] mm: Export vm_committed_as > > On Thu, 8 Nov 2012 22:01:33 + > KY Srinivasan wrote: > > > > > > > > -Origi

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-11-08 Thread Andrew Morton
fle.de; linux-kernel@vger.kernel.org; > > a...@firstfloor.org; a...@canonical.com; de...@linuxdriverproject.org; > > linux- > > m...@kvack.org; Hiroyuki Kamezawa; Michal Hocko; Johannes Weiner; Ying Han > > Subject: RE: [PATCH 1/2] mm: Export vm_committed_as > > > >

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-11-08 Thread KY Srinivasan
xdriverproject.org; linux- > m...@kvack.org; Hiroyuki Kamezawa; Michal Hocko; Johannes Weiner; Ying Han > Subject: RE: [PATCH 1/2] mm: Export vm_committed_as > > On Mon, 5 Nov 2012, KY Srinivasan wrote: > > > The Hyper-V host has a policy engine for managing available physica

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-11-08 Thread David Rientjes
On Thu, 8 Nov 2012, KY Srinivasan wrote: > > Thanks Michal. Yes, the kernel driver reports this metric to the host. > > Andrew, let me know how I should proceed here. > > Ping. > Could you respond to my email in this thread? -- To unsubscribe from this list: send the line "unsubscribe

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-11-08 Thread KY Srinivasan
- > m...@kvack.org; Hiroyuki Kamezawa; Johannes Weiner; Ying Han > Subject: RE: [PATCH 1/2] mm: Export vm_committed_as > > > > > -Original Message- > > From: Michal Hocko [mailto:msts...@gmail.com] On Behalf Of Michal Hocko > > Sent: Tuesday, November 06, 2012

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-11-08 Thread KY Srinivasan
Kamezawa; Johannes Weiner; Ying Han Subject: RE: [PATCH 1/2] mm: Export vm_committed_as -Original Message- From: Michal Hocko [mailto:msts...@gmail.com] On Behalf Of Michal Hocko Sent: Tuesday, November 06, 2012 4:06 AM To: KY Srinivasan Cc: Andrew Morton; Greg KH; o...@aepfle.de

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-11-08 Thread David Rientjes
On Thu, 8 Nov 2012, KY Srinivasan wrote: Thanks Michal. Yes, the kernel driver reports this metric to the host. Andrew, let me know how I should proceed here. Ping. Could you respond to my email in this thread? -- To unsubscribe from this list: send the line unsubscribe linux-kernel in

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-11-08 Thread KY Srinivasan
...@kvack.org; Hiroyuki Kamezawa; Michal Hocko; Johannes Weiner; Ying Han Subject: RE: [PATCH 1/2] mm: Export vm_committed_as On Mon, 5 Nov 2012, KY Srinivasan wrote: The Hyper-V host has a policy engine for managing available physical memory across competing virtual machines. This policy

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-11-08 Thread Andrew Morton
; a...@firstfloor.org; a...@canonical.com; de...@linuxdriverproject.org; linux- m...@kvack.org; Hiroyuki Kamezawa; Michal Hocko; Johannes Weiner; Ying Han Subject: RE: [PATCH 1/2] mm: Export vm_committed_as On Mon, 5 Nov 2012, KY Srinivasan wrote: The Hyper-V host has a policy

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-11-08 Thread KY Srinivasan
; linux- m...@kvack.org; Hiroyuki Kamezawa; Michal Hocko; Johannes Weiner; Ying Han Subject: Re: [PATCH 1/2] mm: Export vm_committed_as On Thu, 8 Nov 2012 22:01:33 + KY Srinivasan k...@microsoft.com wrote: -Original Message- From: David Rientjes [mailto:rient...@google.com

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-11-08 Thread David Rientjes
On Thu, 8 Nov 2012, Andrew Morton wrote: I don't think you should export the symbol itself to modules but rather a helper function that returns s64 that just wraps percpu_counter_read_positive() which your driver could use instead. (And why percpu_counter_read_positive() returns a

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-11-08 Thread Andrew Morton
On Thu, 8 Nov 2012 14:14:35 -0800 (PST) David Rientjes rient...@google.com wrote: On Thu, 8 Nov 2012, Andrew Morton wrote: I don't think you should export the symbol itself to modules but rather a helper function that returns s64 that just wraps percpu_counter_read_positive()

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-11-06 Thread Michal Hocko
On Mon 05-11-12 14:33:12, David Rientjes wrote: > On Mon, 5 Nov 2012, KY Srinivasan wrote: > > > The Hyper-V host has a policy engine for managing available physical memory > > across > > competing virtual machines. This policy decision is based on a number of > > parameters > > including the

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-11-06 Thread KY Srinivasan
@canonical.com; de...@linuxdriverproject.org; linux- > m...@kvack.org; Hiroyuki Kamezawa; Johannes Weiner; Ying Han > Subject: Re: [PATCH 1/2] mm: Export vm_committed_as > > On Mon 05-11-12 22:12:25, KY Srinivasan wrote: > > > > > > > -Original Message- > >

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-11-06 Thread Michal Hocko
kernel.org; > > a...@firstfloor.org; > > a...@canonical.com; de...@linuxdriverproject.org; linux...@kvack.org; > > Hiroyuki Kamezawa; Michal Hocko; Johannes Weiner; Ying Han > > Subject: Re: [PATCH 1/2] mm: Export vm_committed_as > &g

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-11-06 Thread Michal Hocko
; a...@canonical.com; de...@linuxdriverproject.org; linux...@kvack.org; Hiroyuki Kamezawa; Michal Hocko; Johannes Weiner; Ying Han Subject: Re: [PATCH 1/2] mm: Export vm_committed_as On Sat, 3 Nov 2012 14:09:38 + KY Srinivasan k...@microsoft.com wrote: Ok, but you're going

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-11-06 Thread KY Srinivasan
...@linuxdriverproject.org; linux- m...@kvack.org; Hiroyuki Kamezawa; Johannes Weiner; Ying Han Subject: Re: [PATCH 1/2] mm: Export vm_committed_as On Mon 05-11-12 22:12:25, KY Srinivasan wrote: -Original Message- From: Andrew Morton [mailto:a...@linux-foundation.org] Sent: Monday

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-11-06 Thread Michal Hocko
On Mon 05-11-12 14:33:12, David Rientjes wrote: On Mon, 5 Nov 2012, KY Srinivasan wrote: The Hyper-V host has a policy engine for managing available physical memory across competing virtual machines. This policy decision is based on a number of parameters including the memory

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-11-05 Thread David Rientjes
On Mon, 5 Nov 2012, KY Srinivasan wrote: > The Hyper-V host has a policy engine for managing available physical memory > across > competing virtual machines. This policy decision is based on a number of > parameters > including the memory pressure reported by the guest. Currently, the pressure

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-11-05 Thread KY Srinivasan
verproject.org; linux...@kvack.org; > Hiroyuki Kamezawa; Michal Hocko; Johannes Weiner; Ying Han > Subject: Re: [PATCH 1/2] mm: Export vm_committed_as > > On Sat, 3 Nov 2012 14:09:38 + > KY Srinivasan wrote: > > > > > > > > > > >

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-11-05 Thread Andrew Morton
On Sat, 3 Nov 2012 14:09:38 + KY Srinivasan wrote: > > > > > > > > Ok, but you're going to have to get the -mm developers to agree that > > > this is ok before I can accept it. > > > > Well I guess it won't kill us. > > Andrew, > > I presumed this was an Ack from you with regards to

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-11-05 Thread Andrew Morton
On Sat, 3 Nov 2012 14:09:38 + KY Srinivasan k...@microsoft.com wrote: Ok, but you're going to have to get the -mm developers to agree that this is ok before I can accept it. Well I guess it won't kill us. Andrew, I presumed this was an Ack from you with regards to

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-11-05 Thread KY Srinivasan
; Hiroyuki Kamezawa; Michal Hocko; Johannes Weiner; Ying Han Subject: Re: [PATCH 1/2] mm: Export vm_committed_as On Sat, 3 Nov 2012 14:09:38 + KY Srinivasan k...@microsoft.com wrote: Ok, but you're going to have to get the -mm developers to agree that this is ok before I

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-11-05 Thread David Rientjes
On Mon, 5 Nov 2012, KY Srinivasan wrote: The Hyper-V host has a policy engine for managing available physical memory across competing virtual machines. This policy decision is based on a number of parameters including the memory pressure reported by the guest. Currently, the pressure

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-11-03 Thread KY Srinivasan
; From: Greg KH [mailto:gre...@linuxfoundation.org] > > > > Sent: Sunday, October 07, 2012 8:44 PM > > > > To: KY Srinivasan > > > > Cc: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; > o...@aepfle.de; > > > > a...@canonical.com; a...@

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-11-03 Thread KY Srinivasan
, 2012 8:44 PM To: KY Srinivasan Cc: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; a...@linux-foundation.org; a...@firstfloor.org Subject: Re: [PATCH 1/2] mm: Export vm_committed_as On Sun, Oct 07, 2012 at 04:59:45PM -0700, K

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-10-09 Thread KY Srinivasan
project.org > Subject: Re: [PATCH 1/2] mm: Export vm_committed_as > > On Wed, 10 Oct 2012 00:11:28 + KY Srinivasan wrote: > > > > > > > > -Original Message- > > > From: Andrew Morton [mailto:a...@linux-foundation.org] > > > Sent: Tuesda

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-10-09 Thread Andrew Morton
fle.de; linux-kernel@vger.kernel.org; > > a...@firstfloor.org; a...@canonical.com; de...@linuxdriverproject.org > > Subject: Re: [PATCH 1/2] mm: Export vm_committed_as > > > > On Mon, 8 Oct 2012 06:35:39 -0700 > > Greg KH wrote: > > > > > On Mon, Oct 08, 2012 at 03:35

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-10-09 Thread KY Srinivasan
; From: Greg KH [mailto:gre...@linuxfoundation.org] > > > > Sent: Sunday, October 07, 2012 8:44 PM > > > > To: KY Srinivasan > > > > Cc: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; > o...@aepfle.de; > > > > a...@canonical.com; a...@

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-10-09 Thread Andrew Morton
2 8:44 PM > > > To: KY Srinivasan > > > Cc: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; > > > o...@aepfle.de; > > > a...@canonical.com; a...@linux-foundation.org; a...@firstfloor.org > > > Subject: Re: [PATCH 1/2] mm: Export vm_com

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-10-09 Thread Andrew Morton
: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; a...@linux-foundation.org; a...@firstfloor.org Subject: Re: [PATCH 1/2] mm: Export vm_committed_as On Sun, Oct 07, 2012 at 04:59:45PM -0700, K. Y. Srinivasan wrote: The policy

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-10-09 Thread KY Srinivasan
, 2012 8:44 PM To: KY Srinivasan Cc: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; a...@linux-foundation.org; a...@firstfloor.org Subject: Re: [PATCH 1/2] mm: Export vm_committed_as On Sun, Oct 07, 2012 at 04:59:45PM -0700, K

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-10-09 Thread Andrew Morton
; a...@firstfloor.org; a...@canonical.com; de...@linuxdriverproject.org Subject: Re: [PATCH 1/2] mm: Export vm_committed_as On Mon, 8 Oct 2012 06:35:39 -0700 Greg KH gre...@linuxfoundation.org wrote: On Mon, Oct 08, 2012 at 03:35:50AM +, KY Srinivasan wrote: -Original

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-10-09 Thread KY Srinivasan
; linux-kernel@vger.kernel.org; a...@firstfloor.org; a...@canonical.com; de...@linuxdriverproject.org Subject: Re: [PATCH 1/2] mm: Export vm_committed_as On Mon, 8 Oct 2012 06:35:39 -0700 Greg KH gre...@linuxfoundation.org wrote: On Mon, Oct 08, 2012 at 03:35:50AM +, KY

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-10-08 Thread KY Srinivasan
nux-foundation.org > Subject: Re: [PATCH 1/2] mm: Export vm_committed_as > > On Mon, Oct 08, 2012 at 03:35:50AM +, KY Srinivasan wrote: > > > > > > > -Original Message- > > > From: Greg KH [mailto:gre...@linuxfoundation.org] > > > Sent: Sunday

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-10-08 Thread Greg KH
de...@linuxdriverproject.org; > > o...@aepfle.de; > > a...@canonical.com; a...@linux-foundation.org; a...@firstfloor.org > > Subject: Re: [PATCH 1/2] mm: Export vm_committed_as > > > > On Sun, Oct 07, 2012 at 04:59:45PM -0700, K. Y. Srinivasan wrote: > > > The p

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-10-08 Thread Greg KH
; a...@canonical.com; a...@linux-foundation.org; a...@firstfloor.org Subject: Re: [PATCH 1/2] mm: Export vm_committed_as On Sun, Oct 07, 2012 at 04:59:45PM -0700, K. Y. Srinivasan wrote: The policy engine on the host expects the guest to report the committed_as. Since this variable

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-10-08 Thread KY Srinivasan
: Re: [PATCH 1/2] mm: Export vm_committed_as On Mon, Oct 08, 2012 at 03:35:50AM +, KY Srinivasan wrote: -Original Message- From: Greg KH [mailto:gre...@linuxfoundation.org] Sent: Sunday, October 07, 2012 8:44 PM To: KY Srinivasan Cc: linux-kernel@vger.kernel.org; de

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-10-07 Thread KY Srinivasan
; a...@firstfloor.org > Subject: Re: [PATCH 1/2] mm: Export vm_committed_as > > On Sun, Oct 07, 2012 at 04:59:45PM -0700, K. Y. Srinivasan wrote: > > The policy engine on the host expects the guest to report the > > committed_as. Since this variable is not exported, > >

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-10-07 Thread Greg KH
On Sun, Oct 07, 2012 at 04:59:45PM -0700, K. Y. Srinivasan wrote: > The policy engine on the host expects the guest to report the > committed_as. Since this variable is not exported, > export this symbol. Why are these symbols not needed by either Xen or KVM or vmware, which I think all support

Re: [PATCH 1/2] mm: Export vm_committed_as

2012-10-07 Thread Greg KH
On Sun, Oct 07, 2012 at 04:59:45PM -0700, K. Y. Srinivasan wrote: The policy engine on the host expects the guest to report the committed_as. Since this variable is not exported, export this symbol. Why are these symbols not needed by either Xen or KVM or vmware, which I think all support the

RE: [PATCH 1/2] mm: Export vm_committed_as

2012-10-07 Thread KY Srinivasan
Subject: Re: [PATCH 1/2] mm: Export vm_committed_as On Sun, Oct 07, 2012 at 04:59:45PM -0700, K. Y. Srinivasan wrote: The policy engine on the host expects the guest to report the committed_as. Since this variable is not exported, export this symbol. Why are these symbols not needed by either