Re: [PATCH v2] mlock: fix mlock count can not decrease in race condition

2017-05-25 Thread Yisheng Xie
Hi Vlastimil, Thanks for comment! On 2017/5/25 14:32, Vlastimil Babka wrote: > On 05/25/2017 04:13 AM, Yisheng Xie wrote: >> Kefeng reported that when run the follow test the mlock count > >> in meminfo >> cannot be decreased: > > "increases permanently."? Yes if I am not mis-understanding what

Re: [PATCH v2] mlock: fix mlock count can not decrease in race condition

2017-05-25 Thread Yisheng Xie
Hi Vlastimil, Thanks for comment! On 2017/5/25 14:32, Vlastimil Babka wrote: > On 05/25/2017 04:13 AM, Yisheng Xie wrote: >> Kefeng reported that when run the follow test the mlock count > >> in meminfo >> cannot be decreased: > > "increases permanently."? Yes if I am not mis-understanding what

Re: [PATCH v2] mlock: fix mlock count can not decrease in race condition

2017-05-25 Thread Vlastimil Babka
On 05/25/2017 04:13 AM, Yisheng Xie wrote: > Kefeng reported that when run the follow test the mlock count > in meminfo > cannot be decreased: "increases permanently."? > [1] testcase > linux:~ # cat test_mlockal > grep Mlocked /proc/meminfo > for j in `seq 0 10` > do > for i in

Re: [PATCH v2] mlock: fix mlock count can not decrease in race condition

2017-05-25 Thread Vlastimil Babka
On 05/25/2017 04:13 AM, Yisheng Xie wrote: > Kefeng reported that when run the follow test the mlock count > in meminfo > cannot be decreased: "increases permanently."? > [1] testcase > linux:~ # cat test_mlockal > grep Mlocked /proc/meminfo > for j in `seq 0 10` > do > for i in

[PATCH v2] mlock: fix mlock count can not decrease in race condition

2017-05-24 Thread Yisheng Xie
Kefeng reported that when run the follow test the mlock count in meminfo cannot be decreased: [1] testcase linux:~ # cat test_mlockal grep Mlocked /proc/meminfo for j in `seq 0 10` do for i in `seq 4 15` do ./p_mlockall >> log & done sleep 0.2

[PATCH v2] mlock: fix mlock count can not decrease in race condition

2017-05-24 Thread Yisheng Xie
Kefeng reported that when run the follow test the mlock count in meminfo cannot be decreased: [1] testcase linux:~ # cat test_mlockal grep Mlocked /proc/meminfo for j in `seq 0 10` do for i in `seq 4 15` do ./p_mlockall >> log & done sleep 0.2