Re: [PATCH] lib: stackdepot: Add support to configure STACK_HASH_SIZE

2020-11-19 Thread Zhenhua Huang
On Fri, Nov 20, 2020 at 01:04:23PM +0800, Minchan Kim wrote: > On Thu, Nov 19, 2020 at 11:34:32AM +0800, Zhenhua Huang wrote: > > On Wed, Nov 04, 2020 at 07:27:03AM +0800, Minchan Kim wrote: > > > Sorry if this mail corrupts the mail thread or had heavy mangling > > > since I lost this mail from my

Re: [PATCH] lib: stackdepot: Add support to configure STACK_HASH_SIZE

2020-11-19 Thread Minchan Kim
On Thu, Nov 19, 2020 at 11:34:32AM +0800, Zhenhua Huang wrote: > On Wed, Nov 04, 2020 at 07:27:03AM +0800, Minchan Kim wrote: > > Sorry if this mail corrupts the mail thread or had heavy mangling > > since I lost this mail from my mailbox so I am sending this mail by > > web gmail. > > > > On Thu,

Re: [PATCH] lib: stackdepot: Add support to configure STACK_HASH_SIZE

2020-11-18 Thread Zhenhua Huang
On Wed, Nov 04, 2020 at 07:27:03AM +0800, Minchan Kim wrote: > Sorry if this mail corrupts the mail thread or had heavy mangling > since I lost this mail from my mailbox so I am sending this mail by > web gmail. > > On Thu, Oct 22, 2020 at 10:18 AM wrote: > > > > From: Yogesh Lal > > > > Use STA

Re: [PATCH] lib: stackdepot: Add support to configure STACK_HASH_SIZE

2020-11-17 Thread Minchan Kim
On Thu, Nov 12, 2020 at 02:56:49PM -0800, Andrew Morton wrote: > On Thu, 12 Nov 2020 18:26:24 +0530 Vijayanand Jitta > wrote: > > > >> 1. page_owner=off, stackdepot_stack_hash=0 -> no more wasted memory > > >> when we don't use page_owner > > >> 2. page_owner=on, stackdepot_stack_hash=8M -> reas

Re: [PATCH] lib: stackdepot: Add support to configure STACK_HASH_SIZE

2020-11-12 Thread Andrew Morton
On Thu, 12 Nov 2020 18:26:24 +0530 Vijayanand Jitta wrote: > >> 1. page_owner=off, stackdepot_stack_hash=0 -> no more wasted memory > >> when we don't use page_owner > >> 2. page_owner=on, stackdepot_stack_hash=8M -> reasonable hash size > >> when we use page_owner. > >> > >> > > > > This idea

Re: [PATCH] lib: stackdepot: Add support to configure STACK_HASH_SIZE

2020-11-12 Thread Vijayanand Jitta
On 11/4/2020 3:59 PM, Vijayanand Jitta wrote: > > > On 11/4/2020 4:57 AM, Minchan Kim wrote: >> Sorry if this mail corrupts the mail thread or had heavy mangling >> since I lost this mail from my mailbox so I am sending this mail by >> web gmail. >> >> On Thu, Oct 22, 2020 at 10:18 AM wrote:

Re: [PATCH] lib: stackdepot: Add support to configure STACK_HASH_SIZE

2020-11-04 Thread Vijayanand Jitta
On 11/4/2020 4:57 AM, Minchan Kim wrote: > Sorry if this mail corrupts the mail thread or had heavy mangling > since I lost this mail from my mailbox so I am sending this mail by > web gmail. > > On Thu, Oct 22, 2020 at 10:18 AM wrote: >> >> From: Yogesh Lal >> >> Use STACK_HASH_ORDER_SHIFT t

Re: [PATCH] lib: stackdepot: Add support to configure STACK_HASH_SIZE

2020-11-03 Thread Minchan Kim
Sorry if this mail corrupts the mail thread or had heavy mangling since I lost this mail from my mailbox so I am sending this mail by web gmail. On Thu, Oct 22, 2020 at 10:18 AM wrote: > > From: Yogesh Lal > > Use STACK_HASH_ORDER_SHIFT to configure STACK_HASH_SIZE. > > Aim is to have configurab

[PATCH] lib: stackdepot: Add support to configure STACK_HASH_SIZE

2020-10-22 Thread vjitta
From: Yogesh Lal Use STACK_HASH_ORDER_SHIFT to configure STACK_HASH_SIZE. Aim is to have configurable value for STACK_HASH_SIZE, so depend on use case one can configure it. One example is of Page Owner, default value of STACK_HASH_SIZE lead stack depot to consume 8MB of static memory. Making i