Re: Inactive memory keep growing and how to release it?

2013-03-15 Thread Theodore Ts'o
On Fri, Mar 15, 2013 at 04:41:41PM +0800, Simon Jeons wrote: > >This is really an old kernel and also a distribution one which might > >contain a lot of patches on top of the core kernel. I would suggest to > >contact Redhat or try to reproduce the issue with the vanilla and > > What's the

Re: Inactive memory keep growing and how to release it?

2013-03-15 Thread Simon Jeons
On 03/14/2013 08:39 PM, Hillf Danton wrote: On Sat, Mar 9, 2013 at 10:14 AM, Will Huck wrote: Cc experts. Hugh, Johannes, On 03/04/2013 08:21 PM, Lenky Gao wrote: 2013/3/4 Zlatko Calusic : The drop_caches mechanism doesn't free dirty page cache pages. And your bash script is creating a lot

Re: Inactive memory keep growing and how to release it?

2013-03-15 Thread Simon Jeons
On 03/14/2013 06:14 PM, Michal Hocko wrote: On Mon 04-03-13 17:52:22, Lenky Gao wrote: Hi, When i just run a test on Centos 6.2 as follows: #!/bin/bash while true do file="/tmp/filetest" echo $file dd if=/dev/zero of=${file} bs=512 count=204800 &> /dev/null

Re: Inactive memory keep growing and how to release it?

2013-03-15 Thread Simon Jeons
On 03/14/2013 06:14 PM, Michal Hocko wrote: On Mon 04-03-13 17:52:22, Lenky Gao wrote: Hi, When i just run a test on Centos 6.2 as follows: #!/bin/bash while true do file=/tmp/filetest echo $file dd if=/dev/zero of=${file} bs=512 count=204800 /dev/null

Re: Inactive memory keep growing and how to release it?

2013-03-15 Thread Simon Jeons
On 03/14/2013 08:39 PM, Hillf Danton wrote: On Sat, Mar 9, 2013 at 10:14 AM, Will Huck will.hu...@gmail.com wrote: Cc experts. Hugh, Johannes, On 03/04/2013 08:21 PM, Lenky Gao wrote: 2013/3/4 Zlatko Calusic zlatko.calu...@iskon.hr: The drop_caches mechanism doesn't free dirty page cache

Re: Inactive memory keep growing and how to release it?

2013-03-15 Thread Theodore Ts'o
On Fri, Mar 15, 2013 at 04:41:41PM +0800, Simon Jeons wrote: This is really an old kernel and also a distribution one which might contain a lot of patches on top of the core kernel. I would suggest to contact Redhat or try to reproduce the issue with the vanilla and What's the meaning of

Re: Inactive memory keep growing and how to release it?

2013-03-14 Thread Lenky Gao
On Thu, Mar 14, 2013 at 6:14 PM, Michal Hocko wrote: > One way would be to increase /proc/sys/vm/min_free_kbytes which will > enlarge watermaks so the reclaim starts sooner. > Good tip thanks. :) > This is really an old kernel and also a distribution one which might > contain a lot of patches

Re: Inactive memory keep growing and how to release it?

2013-03-14 Thread Hillf Danton
On Sat, Mar 9, 2013 at 10:14 AM, Will Huck wrote: > Cc experts. Hugh, Johannes, > > On 03/04/2013 08:21 PM, Lenky Gao wrote: >> >> 2013/3/4 Zlatko Calusic : >>> >>> The drop_caches mechanism doesn't free dirty page cache pages. And your >>> bash >>> script is creating a lot of dirty pages. Run it

Re: Inactive memory keep growing and how to release it?

2013-03-14 Thread Michal Hocko
On Mon 04-03-13 17:52:22, Lenky Gao wrote: > Hi, > > When i just run a test on Centos 6.2 as follows: > > #!/bin/bash > > while true > do > > file="/tmp/filetest" > > echo $file > > dd if=/dev/zero of=${file} bs=512 count=204800 &> /dev/null > > sleep 5 > done > >

Re: Inactive memory keep growing and how to release it?

2013-03-14 Thread Michal Hocko
On Mon 04-03-13 17:52:22, Lenky Gao wrote: Hi, When i just run a test on Centos 6.2 as follows: #!/bin/bash while true do file=/tmp/filetest echo $file dd if=/dev/zero of=${file} bs=512 count=204800 /dev/null sleep 5 done the inactive memory keep

Re: Inactive memory keep growing and how to release it?

2013-03-14 Thread Hillf Danton
On Sat, Mar 9, 2013 at 10:14 AM, Will Huck will.hu...@gmail.com wrote: Cc experts. Hugh, Johannes, On 03/04/2013 08:21 PM, Lenky Gao wrote: 2013/3/4 Zlatko Calusic zlatko.calu...@iskon.hr: The drop_caches mechanism doesn't free dirty page cache pages. And your bash script is creating a

Re: Inactive memory keep growing and how to release it?

2013-03-14 Thread Lenky Gao
On Thu, Mar 14, 2013 at 6:14 PM, Michal Hocko mho...@suse.cz wrote: One way would be to increase /proc/sys/vm/min_free_kbytes which will enlarge watermaks so the reclaim starts sooner. Good tip thanks. :) This is really an old kernel and also a distribution one which might contain a lot of

Re: Inactive memory keep growing and how to release it?

2013-03-08 Thread Will Huck
Cc experts. Hugh, Johannes, On 03/04/2013 08:21 PM, Lenky Gao wrote: 2013/3/4 Zlatko Calusic : The drop_caches mechanism doesn't free dirty page cache pages. And your bash script is creating a lot of dirty pages. Run it like this and see if it helps your case: sync; echo 3 >

Re: Inactive memory keep growing and how to release it?

2013-03-08 Thread Will Huck
Cc experts. Hugh, Johannes, On 03/04/2013 08:21 PM, Lenky Gao wrote: 2013/3/4 Zlatko Calusic zlatko.calu...@iskon.hr: The drop_caches mechanism doesn't free dirty page cache pages. And your bash script is creating a lot of dirty pages. Run it like this and see if it helps your case: sync;

Re: Inactive memory keep growing and how to release it?

2013-03-04 Thread Lenky Gao
2013/3/4 Zlatko Calusic : > > The drop_caches mechanism doesn't free dirty page cache pages. And your bash > script is creating a lot of dirty pages. Run it like this and see if it > helps your case: > > sync; echo 3 > /proc/sys/vm/drop_caches Thanks for your advice. The inactive memory still

Re: Inactive memory keep growing and how to release it?

2013-03-04 Thread Zlatko Calusic
On 04.03.2013 10:52, Lenky Gao wrote: Hi, When i just run a test on Centos 6.2 as follows: #!/bin/bash while true do file="/tmp/filetest" echo $file dd if=/dev/zero of=${file} bs=512 count=204800 &> /dev/null sleep 5 done the inactive memory keep growing:

Re: Inactive memory keep growing and how to release it?

2013-03-04 Thread Zlatko Calusic
On 04.03.2013 10:52, Lenky Gao wrote: Hi, When i just run a test on Centos 6.2 as follows: #!/bin/bash while true do file=/tmp/filetest echo $file dd if=/dev/zero of=${file} bs=512 count=204800 /dev/null sleep 5 done the inactive memory keep growing:

Re: Inactive memory keep growing and how to release it?

2013-03-04 Thread Lenky Gao
2013/3/4 Zlatko Calusic zlatko.calu...@iskon.hr: The drop_caches mechanism doesn't free dirty page cache pages. And your bash script is creating a lot of dirty pages. Run it like this and see if it helps your case: sync; echo 3 /proc/sys/vm/drop_caches Thanks for your advice. The inactive