Re: [RFC PATCH 08/12] mm: use mirrorable to switch allocate mirrored memory

2015-06-12 Thread Naoya Horiguchi
On Thu, Jun 04, 2015 at 09:02:49PM +0800, Xishi Qiu wrote: > Add a new interface in path /proc/sys/vm/mirrorable. When set to 1, it means > we should allocate mirrored memory for both user and kernel processes. As Dave and Kamezawa-san commented, documentation is not enough, so please add a sectio

Re: [RFC PATCH 08/12] mm: use mirrorable to switch allocate mirrored memory

2015-06-09 Thread Kamezawa Hiroyuki
On 2015/06/09 19:09, Xishi Qiu wrote: On 2015/6/9 15:06, Kamezawa Hiroyuki wrote: On 2015/06/04 22:02, Xishi Qiu wrote: Add a new interface in path /proc/sys/vm/mirrorable. When set to 1, it means we should allocate mirrored memory for both user and kernel processes. Signed-off-by: Xishi Qiu

Re: [RFC PATCH 08/12] mm: use mirrorable to switch allocate mirrored memory

2015-06-09 Thread Xishi Qiu
On 2015/6/9 15:06, Kamezawa Hiroyuki wrote: > On 2015/06/04 22:02, Xishi Qiu wrote: >> Add a new interface in path /proc/sys/vm/mirrorable. When set to 1, it means >> we should allocate mirrored memory for both user and kernel processes. >> >> Signed-off-by: Xishi Qiu > > I can't see why do we n

Re: [RFC PATCH 08/12] mm: use mirrorable to switch allocate mirrored memory

2015-06-09 Thread Kamezawa Hiroyuki
On 2015/06/04 22:02, Xishi Qiu wrote: Add a new interface in path /proc/sys/vm/mirrorable. When set to 1, it means we should allocate mirrored memory for both user and kernel processes. Signed-off-by: Xishi Qiu I can't see why do we need this switch. If this is set, all GFP_HIGHUSER will use

Re: [RFC PATCH 08/12] mm: use mirrorable to switch allocate mirrored memory

2015-06-04 Thread Xishi Qiu
On 2015/6/5 2:41, Dave Hansen wrote: > On 06/04/2015 06:02 AM, Xishi Qiu wrote: >> Add a new interface in path /proc/sys/vm/mirrorable. When set to 1, it means >> we should allocate mirrored memory for both user and kernel processes. > > That's a pretty dangerously short name. :) > Hi Dave, Th

Re: [RFC PATCH 08/12] mm: use mirrorable to switch allocate mirrored memory

2015-06-04 Thread Dave Hansen
On 06/04/2015 06:02 AM, Xishi Qiu wrote: > Add a new interface in path /proc/sys/vm/mirrorable. When set to 1, it means > we should allocate mirrored memory for both user and kernel processes. That's a pretty dangerously short name. :) How would this end up getting used? It seems like it would b

RE: [RFC PATCH 08/12] mm: use mirrorable to switch allocate mirrored memory

2015-06-04 Thread Luck, Tony
> Add a new interface in path /proc/sys/vm/mirrorable. When set to 1, it means > we should allocate mirrored memory for both user and kernel processes. With some "to be defined later" mechanism for how the user requests mirror vs. not mirror. Plus some capability/ulimit pieces that restrict who c