kernel - Make kern_proc cache-friendly
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 5 Dec 2016 23:01:10 +0000 (15:01 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 5 Dec 2016 23:01:10 +0000 (15:01 -0800)
commit43fdf49008ec87f6742547d87923237e86fa3b56
treecf6c3aaca9e6b6dc866a0f7fe0e5e35134f29a9d
parent2eccaef52dab614a753aba8029714fe5424c26e1
kernel - Make kern_proc cache-friendly

* Make the proc_tokens[], allprocs[], allpgrps[], and allsessn[]
  arrays cache-friendly by aggregating them into a cache-aligned
  struct procglob.

* Doesn't do much for the token array, but should help
  allprocs/allpgrps/allsessn scans whos structures were previously
  8-byte aligned.
lib/libkvm/kvm_proc.c
sys/kern/kern_proc.c
sys/sys/proc.h