MAXCPU preparations

Robert N. M. Watson rwatson at FreeBSD.org
Tue Sep 28 18:19:32 UTC 2010


On 28 Sep 2010, at 17:45, Sean Bruno wrote:

> Working on a dynamic version today.  I'll spam it over to you for review
> later.  
> 
> I'm moving the percpu struct definitions outside of struct memory_type,
> allocating quantity kern.smp.maxcpus, removing the boundary checks based
> on MEMSTAT_MAXCPU and then removing MEMSTAT_MAXCPU all together.

Sounds like the right answer. Make sure to also keep the adapt the use of maxcpus from crashdumps so that we can also size the data structure when analyzing cores (or /dev/kmem or firewire).

Robert


More information about the freebsd-current mailing list