Re: spanned vs. present

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- "Per Fransson" <per.fransson.ml@xxxxxxxxx> wrote:

> Hi,
> 
> I'm wondering why kmem -f uses the spanned pages of every zone when
> reporting its size. Wouldn't it be more informative to get a value
> which excludes any holes?
> 
> This is the code from memory.c I'm thinking of:
> 
> /*
>  *  Same as dump_free_pages_zones_v1(), but updated for numerous 2.6 zone
>  *  and free_area related data structure changes.
>  */
> static void
> dump_free_pages_zones_v2(struct meminfo *fi)
> {
> 	[...]
> 	if (VALID_MEMBER(zone_spanned_pages))
> 		zone_size_offset =  OFFSET(zone_spanned_pages);
> 	else
> 		error(FATAL, "zone struct has no spanned_pages field\n");
> 	[...]
> }

You can get the present pages with "kmem -z".

Dave

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility


[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux