Skip to content

Zone based memory stats - Comments welcome!

The issue is that the free program is good for over-all type memory statistics, but sometimes not all memory is created equal and you can have limit hits even though you have some spare memory somewhere.

For starters, I was thinking of something like free, but the rows are each zone (e.g. Zone0 DMA, Zone0 DMA32.... ZoneX Movable).

The columns is where I need help. You don't need to code it, but I'm looking for people that need the zone information and will hopefully know what fields they need.

Currently I'm thinking of:

Source Description
present Total available pages in zone
managed Analogue to "used", I think
min minimum watermark
low low watermark
high high watermark
Max Protection maximum of protection list
Reserve calculated: min( Managed,max([Protection]) ) + High

Some of these figures assist on how Available in meminfo is calculated, I have a script in snippet $3711928 that shows how it is worked out.

Edited by Craig Small