Re: [PATCH 7/9] swap_info: swap count continuations

From: David Rientjes
Date: Thu Oct 15 2009 - 17:19:11 EST


On Thu, 15 Oct 2009, KAMEZAWA Hiroyuki wrote:

> Hmm...maybe I don't understand the benefit of this style of data structure.
>
> Do we need fine grain chain ?
> Is array of "unsigned long" counter is bad ? (too big?)
>

I'm wondering if flex_array can be used for this purpose, which can store
up to 261632 elements of size unsigned long with 4K pages, or whether
finding the first available bit or weight would be too expensive.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/