Dave Anderson wrote:
If you give an optional string pattern to "help -o", you
will
see just those entries that match, instead of all ~500 entries.
So, taking a 2.6.9 kernel, here's what was initialized
for the kmem_cache_s structure entries needed:
crash> help -o kmem_cache
offset_table:
kmem_cache_s_c_nextp: -1
kmem_cache_s_c_name: -1
kmem_cache_s_c_num: -1
kmem_cache_s_c_org_size: -1
kmem_cache_s_c_flags: -1
kmem_cache_s_c_offset: -1
kmem_cache_s_c_firstp: -1
kmem_cache_s_c_gfporder: -1
kmem_cache_s_c_magic: -1
kmem_cache_s_c_align: -1
kmem_cache_s_num: 184
kmem_cache_s_next: 244
kmem_cache_s_name: 240
kmem_cache_s_objsize: 176
kmem_cache_s_flags: 180
kmem_cache_s_gfporder: 200
kmem_cache_s_slabs: -1
kmem_cache_s_slabs_full: -1
kmem_cache_s_slabs_partial: -1
kmem_cache_s_slabs_free: -1
kmem_cache_s_cpudata: -1
kmem_cache_s_colour_off: 212
kmem_cache_s_array: 0
kmem_cache_s_lists: 136
size_table:
kmem_cache_s: 252
array_table:
kmem_cache_s_name: 0
kmem_cache_s_c_name: 0
kmem_cache_s_array: 32
kmem_cache_s_cpudata: 0
crash>
Again, the -1 entries are for older kernels and are
irrelevant. It's just the initialization for the other
11 entries that are non-zero need to be addressed,
s/non-zero/not -1/
Just to be clear, those entries containing "0" are
are legitimate, required, entries.
Dave