Re: [RFC] mm-controller

2007-06-25 Thread Vaidyanathan Srinivasan
Paul Menage wrote: > On 6/25/07, Paul Menage <[EMAIL PROTECTED]> wrote: >> On 6/22/07, Vaidyanathan Srinivasan <[EMAIL PROTECTED]> wrote: >>> Merging both limits will eliminate the issue, however we would need >>> individual limits for pagecache and RSS for better control. There are >>> use

Re: [RFC] mm-controller

2007-06-25 Thread Vaidyanathan Srinivasan
Peter Zijlstra wrote: > On Fri, 2007-06-22 at 22:05 +0530, Vaidyanathan Srinivasan wrote: > >> Merging both limits will eliminate the issue, however we would need >> individual limits for pagecache and RSS for better control. There are >> use cases for pagecache_limit alone without RSS_limit

Re: [RFC] mm-controller

2007-06-25 Thread Paul Menage
On 6/22/07, Vaidyanathan Srinivasan <[EMAIL PROTECTED]> wrote: Merging both limits will eliminate the issue, however we would need individual limits for pagecache and RSS for better control. There are use cases for pagecache_limit alone without RSS_limit like the case of database application

Re: [RFC] mm-controller

2007-06-25 Thread Paul Menage
On 6/25/07, Paul Menage <[EMAIL PROTECTED]> wrote: On 6/22/07, Vaidyanathan Srinivasan <[EMAIL PROTECTED]> wrote: > > Merging both limits will eliminate the issue, however we would need > individual limits for pagecache and RSS for better control. There are > use cases for pagecache_limit alone

Re: [RFC] mm-controller

2007-06-25 Thread Balbir Singh
Peter Zijlstra wrote: > On Fri, 2007-06-22 at 22:05 +0530, Vaidyanathan Srinivasan wrote: > >> Merging both limits will eliminate the issue, however we would need >> individual limits for pagecache and RSS for better control. There are >> use cases for pagecache_limit alone without RSS_limit

Re: [RFC] mm-controller

2007-06-25 Thread Peter Zijlstra
On Fri, 2007-06-22 at 22:05 +0530, Vaidyanathan Srinivasan wrote: > Merging both limits will eliminate the issue, however we would need > individual limits for pagecache and RSS for better control. There are > use cases for pagecache_limit alone without RSS_limit like the case of > database

Re: [RFC] mm-controller

2007-06-25 Thread Peter Zijlstra
On Fri, 2007-06-22 at 22:05 +0530, Vaidyanathan Srinivasan wrote: Merging both limits will eliminate the issue, however we would need individual limits for pagecache and RSS for better control. There are use cases for pagecache_limit alone without RSS_limit like the case of database

Re: [RFC] mm-controller

2007-06-25 Thread Balbir Singh
Peter Zijlstra wrote: On Fri, 2007-06-22 at 22:05 +0530, Vaidyanathan Srinivasan wrote: Merging both limits will eliminate the issue, however we would need individual limits for pagecache and RSS for better control. There are use cases for pagecache_limit alone without RSS_limit like the

Re: [RFC] mm-controller

2007-06-25 Thread Paul Menage
On 6/22/07, Vaidyanathan Srinivasan [EMAIL PROTECTED] wrote: Merging both limits will eliminate the issue, however we would need individual limits for pagecache and RSS for better control. There are use cases for pagecache_limit alone without RSS_limit like the case of database application

Re: [RFC] mm-controller

2007-06-25 Thread Paul Menage
On 6/25/07, Paul Menage [EMAIL PROTECTED] wrote: On 6/22/07, Vaidyanathan Srinivasan [EMAIL PROTECTED] wrote: Merging both limits will eliminate the issue, however we would need individual limits for pagecache and RSS for better control. There are use cases for pagecache_limit alone without

Re: [RFC] mm-controller

2007-06-25 Thread Vaidyanathan Srinivasan
Peter Zijlstra wrote: On Fri, 2007-06-22 at 22:05 +0530, Vaidyanathan Srinivasan wrote: Merging both limits will eliminate the issue, however we would need individual limits for pagecache and RSS for better control. There are use cases for pagecache_limit alone without RSS_limit like the

Re: [RFC] mm-controller

2007-06-25 Thread Vaidyanathan Srinivasan
Paul Menage wrote: On 6/25/07, Paul Menage [EMAIL PROTECTED] wrote: On 6/22/07, Vaidyanathan Srinivasan [EMAIL PROTECTED] wrote: Merging both limits will eliminate the issue, however we would need individual limits for pagecache and RSS for better control. There are use cases for

Re: [RFC] mm-controller

2007-06-22 Thread Vaidyanathan Srinivasan
Peter Zijlstra wrote: > On Thu, 2007-06-21 at 16:33 +0530, Balbir Singh wrote: >> Peter Zijlstra wrote: [snip] > Not quite sure on 2, from reading the pagecache controller, I got the > impression that enforcing both limits got you into trouble. Merging the > limits would rid us of that issue,

Re: [RFC] mm-controller

2007-06-22 Thread Pavel Emelianov
Balbir Singh wrote: [snip] >> With the current dual list approach, something like that could be done >> by treating the container lists as pure FIFO (and ignore the reference >> bit and all that) and make container reclaim only unmap, not write out >> pages. >> >> Then global reclaim will do the

Re: [RFC] mm-controller

2007-06-22 Thread Pavel Emelianov
Balbir Singh wrote: [snip] With the current dual list approach, something like that could be done by treating the container lists as pure FIFO (and ignore the reference bit and all that) and make container reclaim only unmap, not write out pages. Then global reclaim will do the work (if

Re: [RFC] mm-controller

2007-06-22 Thread Vaidyanathan Srinivasan
Peter Zijlstra wrote: On Thu, 2007-06-21 at 16:33 +0530, Balbir Singh wrote: Peter Zijlstra wrote: [snip] Not quite sure on 2, from reading the pagecache controller, I got the impression that enforcing both limits got you into trouble. Merging the limits would rid us of that issue, no?

Re: [RFC] mm-controller

2007-06-21 Thread Balbir Singh
Peter Zijlstra wrote: > On Thu, 2007-06-21 at 16:33 +0530, Balbir Singh wrote: >> Peter Zijlstra wrote: >>> Having read the RSS and Pagecache controllers some things bothered me. >>> >>> - the duplication of much of the reclaim data (not code) >>>and the size increase as a result thereof. >>>

Re: [RFC] mm-controller

2007-06-21 Thread Peter Zijlstra
On Thu, 2007-06-21 at 16:33 +0530, Balbir Singh wrote: > Peter Zijlstra wrote: > > Having read the RSS and Pagecache controllers some things bothered me. > > > > - the duplication of much of the reclaim data (not code) > >and the size increase as a result thereof. > > > > Are you referring

Re: [RFC] mm-controller

2007-06-21 Thread Balbir Singh
Peter Zijlstra wrote: > Having read the RSS and Pagecache controllers some things bothered me. > > - the duplication of much of the reclaim data (not code) >and the size increase as a result thereof. > Are you referring to the duplication due to the per container LRU list? > - the clear

Re: [RFC] mm-controller

2007-06-21 Thread Balbir Singh
Peter Zijlstra wrote: Having read the RSS and Pagecache controllers some things bothered me. - the duplication of much of the reclaim data (not code) and the size increase as a result thereof. Are you referring to the duplication due to the per container LRU list? - the clear

Re: [RFC] mm-controller

2007-06-21 Thread Peter Zijlstra
On Thu, 2007-06-21 at 16:33 +0530, Balbir Singh wrote: Peter Zijlstra wrote: Having read the RSS and Pagecache controllers some things bothered me. - the duplication of much of the reclaim data (not code) and the size increase as a result thereof. Are you referring to the

Re: [RFC] mm-controller

2007-06-21 Thread Balbir Singh
Peter Zijlstra wrote: On Thu, 2007-06-21 at 16:33 +0530, Balbir Singh wrote: Peter Zijlstra wrote: Having read the RSS and Pagecache controllers some things bothered me. - the duplication of much of the reclaim data (not code) and the size increase as a result thereof. Are you