Re: [PATCH 3/4] ida: in-place ida allocation

2014-04-22 Thread Lai Jiangshan
On 04/23/2014 04:02 AM, Tejun Heo wrote: > On Tue, Apr 22, 2014 at 06:16:20PM +0800, Lai Jiangshan wrote: >> There are two stages of ida allocation/free, idr_layers and ida_bitmap. >> They add unneeded foot print and memory waste. >> >> When a single ID is first allocated from an ida, this ida

Re: [PATCH 3/4] ida: in-place ida allocation

2014-04-22 Thread Tejun Heo
On Tue, Apr 22, 2014 at 06:16:20PM +0800, Lai Jiangshan wrote: > There are two stages of ida allocation/free, idr_layers and ida_bitmap. > They add unneeded foot print and memory waste. > > When a single ID is first allocated from an ida, this ida requires > two big chunks of memory. One

[PATCH 3/4] ida: in-place ida allocation

2014-04-22 Thread Lai Jiangshan
There are two stages of ida allocation/free, idr_layers and ida_bitmap. They add unneeded foot print and memory waste. When a single ID is first allocated from an ida, this ida requires two big chunks of memory. One idr_layer and one ida_bitmap. To reduce the foot print and memory, we reduce the

[PATCH 3/4] ida: in-place ida allocation

2014-04-22 Thread Lai Jiangshan
There are two stages of ida allocation/free, idr_layers and ida_bitmap. They add unneeded foot print and memory waste. When a single ID is first allocated from an ida, this ida requires two big chunks of memory. One idr_layer and one ida_bitmap. To reduce the foot print and memory, we reduce the

Re: [PATCH 3/4] ida: in-place ida allocation

2014-04-22 Thread Tejun Heo
On Tue, Apr 22, 2014 at 06:16:20PM +0800, Lai Jiangshan wrote: There are two stages of ida allocation/free, idr_layers and ida_bitmap. They add unneeded foot print and memory waste. When a single ID is first allocated from an ida, this ida requires two big chunks of memory. One idr_layer and

Re: [PATCH 3/4] ida: in-place ida allocation

2014-04-22 Thread Lai Jiangshan
On 04/23/2014 04:02 AM, Tejun Heo wrote: On Tue, Apr 22, 2014 at 06:16:20PM +0800, Lai Jiangshan wrote: There are two stages of ida allocation/free, idr_layers and ida_bitmap. They add unneeded foot print and memory waste. When a single ID is first allocated from an ida, this ida requires