Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-24 Thread Michal Hocko
On Tue 24-06-14 10:25:32, Xishi Qiu wrote: > On 2014/6/23 19:29, Michal Hocko wrote: [...] > > This doesn't make much sense to me. So you have a problem with latency > > caused by direct reclaim so you add a new way of direct page cache > > reclaim. > > > >> A user process produces page cache

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-24 Thread Michal Hocko
On Tue 24-06-14 10:25:32, Xishi Qiu wrote: On 2014/6/23 19:29, Michal Hocko wrote: [...] This doesn't make much sense to me. So you have a problem with latency caused by direct reclaim so you add a new way of direct page cache reclaim. A user process produces page cache frequently, so

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-23 Thread Xishi Qiu
On 2014/6/23 19:29, Michal Hocko wrote: > On Mon 23-06-14 10:05:48, Xishi Qiu wrote: >> On 2014/6/20 23:32, Michal Hocko wrote: >> >>> On Fri 20-06-14 15:56:56, Xishi Qiu wrote: On 2014/6/17 9:35, Xishi Qiu wrote: > On 2014/6/16 20:50, Rafael Aquini wrote: > >> On Mon, Jun

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-23 Thread Michal Hocko
On Mon 23-06-14 10:05:48, Xishi Qiu wrote: > On 2014/6/20 23:32, Michal Hocko wrote: > > > On Fri 20-06-14 15:56:56, Xishi Qiu wrote: > >> On 2014/6/17 9:35, Xishi Qiu wrote: > >> > >>> On 2014/6/16 20:50, Rafael Aquini wrote: > >>> > On Mon, Jun 16, 2014 at 01:14:22PM +0200, Michal Hocko

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-23 Thread Xishi Qiu
On 2014/6/23 19:29, Michal Hocko wrote: On Mon 23-06-14 10:05:48, Xishi Qiu wrote: On 2014/6/20 23:32, Michal Hocko wrote: On Fri 20-06-14 15:56:56, Xishi Qiu wrote: On 2014/6/17 9:35, Xishi Qiu wrote: On 2014/6/16 20:50, Rafael Aquini wrote: On Mon, Jun 16, 2014 at 01:14:22PM +0200,

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-23 Thread Michal Hocko
On Mon 23-06-14 10:05:48, Xishi Qiu wrote: On 2014/6/20 23:32, Michal Hocko wrote: On Fri 20-06-14 15:56:56, Xishi Qiu wrote: On 2014/6/17 9:35, Xishi Qiu wrote: On 2014/6/16 20:50, Rafael Aquini wrote: On Mon, Jun 16, 2014 at 01:14:22PM +0200, Michal Hocko wrote: On Mon 16-06-14

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-22 Thread Xishi Qiu
On 2014/6/20 23:32, Michal Hocko wrote: > On Fri 20-06-14 15:56:56, Xishi Qiu wrote: >> On 2014/6/17 9:35, Xishi Qiu wrote: >> >>> On 2014/6/16 20:50, Rafael Aquini wrote: >>> On Mon, Jun 16, 2014 at 01:14:22PM +0200, Michal Hocko wrote: > On Mon 16-06-14 17:24:38, Xishi Qiu wrote:

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-22 Thread Xishi Qiu
On 2014/6/20 23:32, Michal Hocko wrote: On Fri 20-06-14 15:56:56, Xishi Qiu wrote: On 2014/6/17 9:35, Xishi Qiu wrote: On 2014/6/16 20:50, Rafael Aquini wrote: On Mon, Jun 16, 2014 at 01:14:22PM +0200, Michal Hocko wrote: On Mon 16-06-14 17:24:38, Xishi Qiu wrote: When system(e.g. smart

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-20 Thread Michal Hocko
On Fri 20-06-14 15:56:56, Xishi Qiu wrote: > On 2014/6/17 9:35, Xishi Qiu wrote: > > > On 2014/6/16 20:50, Rafael Aquini wrote: > > > >> On Mon, Jun 16, 2014 at 01:14:22PM +0200, Michal Hocko wrote: > >>> On Mon 16-06-14 17:24:38, Xishi Qiu wrote: > When system(e.g. smart phone) running for

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-20 Thread Xishi Qiu
On 2014/6/17 9:35, Xishi Qiu wrote: > On 2014/6/16 20:50, Rafael Aquini wrote: > >> On Mon, Jun 16, 2014 at 01:14:22PM +0200, Michal Hocko wrote: >>> On Mon 16-06-14 17:24:38, Xishi Qiu wrote: When system(e.g. smart phone) running for a long time, the cache often takes a large

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-20 Thread Xishi Qiu
On 2014/6/17 9:35, Xishi Qiu wrote: On 2014/6/16 20:50, Rafael Aquini wrote: On Mon, Jun 16, 2014 at 01:14:22PM +0200, Michal Hocko wrote: On Mon 16-06-14 17:24:38, Xishi Qiu wrote: When system(e.g. smart phone) running for a long time, the cache often takes a large memory, maybe the

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-20 Thread Michal Hocko
On Fri 20-06-14 15:56:56, Xishi Qiu wrote: On 2014/6/17 9:35, Xishi Qiu wrote: On 2014/6/16 20:50, Rafael Aquini wrote: On Mon, Jun 16, 2014 at 01:14:22PM +0200, Michal Hocko wrote: On Mon 16-06-14 17:24:38, Xishi Qiu wrote: When system(e.g. smart phone) running for a long time, the

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-16 Thread Xishi Qiu
On 2014/6/16 20:50, Rafael Aquini wrote: > On Mon, Jun 16, 2014 at 01:14:22PM +0200, Michal Hocko wrote: >> On Mon 16-06-14 17:24:38, Xishi Qiu wrote: >>> When system(e.g. smart phone) running for a long time, the cache often takes >>> a large memory, maybe the free memory is less than 50M, then

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-16 Thread Rafael Aquini
On Mon, Jun 16, 2014 at 01:14:22PM +0200, Michal Hocko wrote: > On Mon 16-06-14 17:24:38, Xishi Qiu wrote: > > When system(e.g. smart phone) running for a long time, the cache often takes > > a large memory, maybe the free memory is less than 50M, then OOM will happen > > if APP allocate a large

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-16 Thread Michal Hocko
On Mon 16-06-14 17:24:38, Xishi Qiu wrote: > When system(e.g. smart phone) running for a long time, the cache often takes > a large memory, maybe the free memory is less than 50M, then OOM will happen > if APP allocate a large order pages suddenly and memory reclaim too slowly. Have you ever

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-16 Thread Xishi Qiu
On 2014/6/16 18:04, Zhang Yanfei wrote: > Hi, > > On 06/16/2014 05:24 PM, Xishi Qiu wrote: >> When system(e.g. smart phone) running for a long time, the cache often takes >> a large memory, maybe the free memory is less than 50M, then OOM will happen >> if APP allocate a large order pages

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-16 Thread Zhang Yanfei
Hi, On 06/16/2014 05:24 PM, Xishi Qiu wrote: > When system(e.g. smart phone) running for a long time, the cache often takes > a large memory, maybe the free memory is less than 50M, then OOM will happen > if APP allocate a large order pages suddenly and memory reclaim too slowly. If there is

[PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-16 Thread Xishi Qiu
When system(e.g. smart phone) running for a long time, the cache often takes a large memory, maybe the free memory is less than 50M, then OOM will happen if APP allocate a large order pages suddenly and memory reclaim too slowly. Use "echo 3 > /proc/sys/vm/drop_caches" will drop the whole cache,

[PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-16 Thread Xishi Qiu
When system(e.g. smart phone) running for a long time, the cache often takes a large memory, maybe the free memory is less than 50M, then OOM will happen if APP allocate a large order pages suddenly and memory reclaim too slowly. Use echo 3 /proc/sys/vm/drop_caches will drop the whole cache,

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-16 Thread Zhang Yanfei
Hi, On 06/16/2014 05:24 PM, Xishi Qiu wrote: When system(e.g. smart phone) running for a long time, the cache often takes a large memory, maybe the free memory is less than 50M, then OOM will happen if APP allocate a large order pages suddenly and memory reclaim too slowly. If there is

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-16 Thread Xishi Qiu
On 2014/6/16 18:04, Zhang Yanfei wrote: Hi, On 06/16/2014 05:24 PM, Xishi Qiu wrote: When system(e.g. smart phone) running for a long time, the cache often takes a large memory, maybe the free memory is less than 50M, then OOM will happen if APP allocate a large order pages suddenly and

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-16 Thread Michal Hocko
On Mon 16-06-14 17:24:38, Xishi Qiu wrote: When system(e.g. smart phone) running for a long time, the cache often takes a large memory, maybe the free memory is less than 50M, then OOM will happen if APP allocate a large order pages suddenly and memory reclaim too slowly. Have you ever seen

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-16 Thread Rafael Aquini
On Mon, Jun 16, 2014 at 01:14:22PM +0200, Michal Hocko wrote: On Mon 16-06-14 17:24:38, Xishi Qiu wrote: When system(e.g. smart phone) running for a long time, the cache often takes a large memory, maybe the free memory is less than 50M, then OOM will happen if APP allocate a large order

Re: [PATCH 0/8] mm: add page cache limit and reclaim feature

2014-06-16 Thread Xishi Qiu
On 2014/6/16 20:50, Rafael Aquini wrote: On Mon, Jun 16, 2014 at 01:14:22PM +0200, Michal Hocko wrote: On Mon 16-06-14 17:24:38, Xishi Qiu wrote: When system(e.g. smart phone) running for a long time, the cache often takes a large memory, maybe the free memory is less than 50M, then OOM will