Re: [PATCH V6 ] mm readahead: Fix readahead fail for memoryless cpu and limit readahead pages

2014-03-18 Thread Raghavendra K T
On 03/17/2014 07:37 AM, Madper Xie wrote: Raghavendra K T writes: On 02/18/2014 03:19 PM, Jan Kara wrote: On Tue 18-02-14 12:55:38, Raghavendra K T wrote: Hi. Just a concern. Will the performance reduce on some special storage backend? E.g. tape. The existent applications may using readahea

Re: [PATCH V6 ] mm readahead: Fix readahead fail for memoryless cpu and limit readahead pages

2014-03-16 Thread Madper Xie
Raghavendra K T writes: > On 02/18/2014 03:19 PM, Jan Kara wrote: >> On Tue 18-02-14 12:55:38, Raghavendra K T wrote: >>> Currently max_sane_readahead() returns zero on the cpu having no local >>> memory node >>> which leads to readahead failure. Fix the readahead failure by returning >>> minim

Re: [PATCH V6 ] mm readahead: Fix readahead fail for memoryless cpu and limit readahead pages

2014-02-18 Thread David Rientjes
On Tue, 18 Feb 2014, Andrew Morton wrote: > > I'm not sure I understand why we want to be independent of PAGE_SIZE since > > we're still relying on PAGE_CACHE_SIZE. Don't you mean to do > > > > #define MAX_READAHEAD ((512*PAGE_SIZE)/PAGE_CACHE_SIZE) > > MAX_READAHEAD is in units of "page

Re: [PATCH V6 ] mm readahead: Fix readahead fail for memoryless cpu and limit readahead pages

2014-02-18 Thread Andrew Morton
On Tue, 18 Feb 2014 14:23:44 -0800 (PST) David Rientjes wrote: > On Tue, 18 Feb 2014, Raghavendra K T wrote: > > > Currently max_sane_readahead() returns zero on the cpu having no local > > memory node > > which leads to readahead failure. Fix the readahead failure by returning > > minimum of

Re: [PATCH V6 ] mm readahead: Fix readahead fail for memoryless cpu and limit readahead pages

2014-02-18 Thread David Rientjes
On Tue, 18 Feb 2014, Raghavendra K T wrote: > Currently max_sane_readahead() returns zero on the cpu having no local memory > node > which leads to readahead failure. Fix the readahead failure by returning > minimum of (requested pages, 512). Users running application on a memory-less > cpu > wh

Re: [PATCH V6 ] mm readahead: Fix readahead fail for memoryless cpu and limit readahead pages

2014-02-18 Thread Jan Kara
On Tue 18-02-14 17:34:54, Raghavendra K T wrote: > On 02/18/2014 03:19 PM, Jan Kara wrote: > >On Tue 18-02-14 12:55:38, Raghavendra K T wrote: > >>Currently max_sane_readahead() returns zero on the cpu having no local > >>memory node > >>which leads to readahead failure. Fix the readahead failure

Re: [PATCH V6 ] mm readahead: Fix readahead fail for memoryless cpu and limit readahead pages

2014-02-18 Thread Raghavendra K T
On 02/18/2014 03:19 PM, Jan Kara wrote: On Tue 18-02-14 12:55:38, Raghavendra K T wrote: Currently max_sane_readahead() returns zero on the cpu having no local memory node which leads to readahead failure. Fix the readahead failure by returning minimum of (requested pages, 512). Users running a

Re: [PATCH V6 ] mm readahead: Fix readahead fail for memoryless cpu and limit readahead pages

2014-02-18 Thread Jan Kara
On Tue 18-02-14 12:55:38, Raghavendra K T wrote: > Currently max_sane_readahead() returns zero on the cpu having no local memory > node > which leads to readahead failure. Fix the readahead failure by returning > minimum of (requested pages, 512). Users running application on a memory-less > cpu

[PATCH V6 ] mm readahead: Fix readahead fail for memoryless cpu and limit readahead pages

2014-02-17 Thread Raghavendra K T
Currently max_sane_readahead() returns zero on the cpu having no local memory node which leads to readahead failure. Fix the readahead failure by returning minimum of (requested pages, 512). Users running application on a memory-less cpu which needs readahead such as streaming application see con