How to check whether physical page is in-use?
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I am implementing kernel thread
which scans whole physical pages in memory and inspect physical page frame numbers of in-used pages.
At first, I thought I can check whether specific page is used by PG_lru flag
but the scan result came out strangely.
Is there other way to inspect page is in-use or free?
Should I have to check _mapcount field
in struct page?
Please help me...
Thank you so much.
linux kernel linux-kernel memory-management
add a comment |Â
up vote
2
down vote
favorite
I am implementing kernel thread
which scans whole physical pages in memory and inspect physical page frame numbers of in-used pages.
At first, I thought I can check whether specific page is used by PG_lru flag
but the scan result came out strangely.
Is there other way to inspect page is in-use or free?
Should I have to check _mapcount field
in struct page?
Please help me...
Thank you so much.
linux kernel linux-kernel memory-management
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I am implementing kernel thread
which scans whole physical pages in memory and inspect physical page frame numbers of in-used pages.
At first, I thought I can check whether specific page is used by PG_lru flag
but the scan result came out strangely.
Is there other way to inspect page is in-use or free?
Should I have to check _mapcount field
in struct page?
Please help me...
Thank you so much.
linux kernel linux-kernel memory-management
I am implementing kernel thread
which scans whole physical pages in memory and inspect physical page frame numbers of in-used pages.
At first, I thought I can check whether specific page is used by PG_lru flag
but the scan result came out strangely.
Is there other way to inspect page is in-use or free?
Should I have to check _mapcount field
in struct page?
Please help me...
Thank you so much.
linux kernel linux-kernel memory-management
edited Mar 15 at 6:47
Debian_yadav
8342522
8342522
asked Mar 15 at 5:38
JuHyung Son
707
707
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f430317%2fhow-to-check-whether-physical-page-is-in-use%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password