Skip to contentSkip to conversation

Dump struct page array?

DISCUSSION Phillip Susi 2 participants 3 messages Jun 5, 2014 Memory management

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Is there a way to dump the struct page array or perhaps even a tool to analyze it? I would like to get a map of what pages are in use, or in particular, where all of the unmovable pages are. -----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTkI0QAAoJEI5FoCIzSKrwcrcH/AiOUvh5osAFezgR2pGlp3Iy G+rvqzHdgFFef2RX057ehK+lj2nW8fNFyCy/zKR0aaueyH88yj4nFgoZw060cklo 0P5Fcvim1BKhPMUpD+0J8XaFEP9WD95/Q5XPqmfSUf64VrwPQSLcppwUJPO+ec7D PBEctU9EvnXKPtrQRui44t6U0VRRvsN2OaRI8tZR7ou7V0FrOe86GdyXFRu8dsTN 22hy9A0JqTldjM9ebbr8xCu5cRRQFkUZSFqBv2lnnox+V8/1M8N8ZwCbkayQiyMQ pW7DMTottjGsXrq/+l96UF2aWQv5PIof9NR4FJ3YSFdo1YvTfUozSLbX24KCQFI= =t4Q0
-----END PGP SIGNATURE-----

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#1 lore raw
Quoted 6 lines · Phillip Susi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Is there a way to dump the struct page array or perhaps even a tool to analyze it? I would like to get a map of what pages are in use, or in particular, where all of the unmovable pages are.

Have you seen "page-types"? tools/vm/page-types.c in the kernel source tree.

Quoted 13 lines

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTkI0QAAoJEI5FoCIzSKrwcrcH/AiOUvh5osAFezgR2pGlp3Iy G+rvqzHdgFFef2RX057ehK+lj2nW8fNFyCy/zKR0aaueyH88yj4nFgoZw060cklo 0P5Fcvim1BKhPMUpD+0J8XaFEP9WD95/Q5XPqmfSUf64VrwPQSLcppwUJPO+ec7D PBEctU9EvnXKPtrQRui44t6U0VRRvsN2OaRI8tZR7ou7V0FrOe86GdyXFRu8dsTN 22hy9A0JqTldjM9ebbr8xCu5cRRQFkUZSFqBv2lnnox+V8/1M8N8ZwCbkayQiyMQ pW7DMTottjGsXrq/+l96UF2aWQv5PIof9NR4FJ3YSFdo1YvTfUozSLbX24KCQFI= =t4Q0
-----END PGP SIGNATURE-----

Quoted 5 lines

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 6/5/2014 11:56 AM, Konstantin Khlebnikov wrote:

| On Thu, Jun 5, 2014 at 7:30 PM, Phillip Susi <[email protected]> wrote:
| Is there a way to dump the struct page array or perhaps even a tool to
| analyze it?  I would like to get a map of what pages are in use, or in
| particular, where all of the unmovable pages are.
|
|> Have you seen "page-types"? tools/vm/page-types.c in the kernel source tree.

Thanks, that is very interesting... I noticed that there are no reserved pages. There *must* be some pages marked as reserved for the bios somewhere right? Also how do you tell what pages are free or allocated to the kernel? It seems that free pages sometimes have the buddy bit set and sometimes not, and pages used by the slab cache sometimes have the slab bit set, and sometimes not.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTkMYcAAoJEI5FoCIzSKrwq28H/18Y/O+u/ZTT7ICVvUUjM5YP LNb43Nf/7uvaE/ElMiemGdzqSzUcf4wb93HtVeV3OmuV/ALk1H/eaYFLpxxq1sGI hXojGoqaHUwHTie//3Xq3C4Dfi0jDqC7tTX6uywSDRdCzbq2TOGuruc+0n0k3r7b MCQC+Vqr+mzW0d8U8EVE6ux8noA9FlUMFdNDTJAMEbZiyfKdjFXCua4lnVPope/h yB3M4Th+eYY6YGvPoEPfJeYSdeqNGwW2JH6zRGokVk7i21D1G8vudMmwMYziso5D YmTeLvrLhQw3tnX1O0Y7MKepRabx9vqhbruK+5RzTQYl1UZYZEnZ3NO6ithC+UU= =bkUL
-----END PGP SIGNATURE-----

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>