tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: nmbclusters on amd64



On Wed, Aug 24, 2016 at 01:54:19PM +0100, Stephen Borrill wrote:
> Machine in question has 16GB RAM and is running amd64. Reading further, it
> looks like setting NMBCLUSTERS in netbsd-7 as a compile-time option is only
> capable of limiting the number which is generally counterproductive:

Looking at one of my build VMs running 7.0 with 16GB, auto-scaling
gives:
kern.mbuf.nmbclusters = 524274

> #ifdef NMBCLUSTERS_MAX
>         max_size = MIN(max_size, NMBCLUSTERS_MAX);
> #endif
> 
> #ifdef NMBCLUSTERS
>         return MIN(max_size, NMBCLUSTERS);
> #else
>         return max_size;
> #endif
> 
> Perhaps this should have been MAX(max_size, NMBCLUSTERS) which makes more
> sense to me.

No, the intention is to compute the limit of what the system ressources
can sustain and cap at that.

Joerg


Home | Main Index | Thread Index | Old Index