Make the vm object bypass and collapse counters per-CPU counters.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
vm/vm_object.c | ||
---|---|---|
166 ↗ | (On Diff #36980) | I think it does not matter, collapses and bypasses start to occur only when forks are executed, which does not happen earlier than init startup. You used the same values as vmcounter_startup(), which is fine. |
vm/vm_object.c | ||
---|---|---|
153 ↗ | (On Diff #36980) | Should I put the description on its own line? |
vm/vm_object.c | ||
---|---|---|
153 ↗ | (On Diff #36980) | Description on the new line is bde' preferred style. IMO it unnecessarily spends vertical space if the description fits into line length. |
Comment Actions
As an aside, it seems to me that sys/counter.h and/or the man page ought to provide guidance on when counter_u64_alloc() becomes possible. It appears to me that it is earlier than SI_SUB_CPU, specifically, we need the following to have completed:
SYSINIT(pcpu_zones, SI_SUB_KMEM, SI_ORDER_ANY, pcpu_zones_startup, NULL);