Re: revised two-level bitmap fdalloc diff

YAMAMOTO Takashi <[email protected]>
Newsgroups gmane.os.netbsd.devel.performance
Message-ID <[email protected]>
> YAMAMOTO Takashi <[email protected]> writes:
> 
> > i meant, "NDLOSLOTS(i) <= NDLOSLOTS(1024)"
> > (lomap is more sensitive.  no actual difference anyway, though)
> 
> Really no actual difference?  Anyway, I guess ...
> 
> 	- leave the test to use NDHISLOTS().
> 	- use NDHISLOTS() << NDENTRYSHIFT to calculate the allocation
>           size of lomap.  use NDLOSLOTS() only to bound the search.

is there any benefit to malloc > NDLOSLOTS() ?

> ... is better.  As the malloc() will return space of power of 2 length
> until 262144 file descriptors are requested (on 4k pages machine).
> 
> enami.

i agree it's better if fdexpand() takes account of bitmap size
to determine how much to expand the descriptor table.

YAMAMOTO Takashi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.