Just a very quick question about paging of linux

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.

Moderators: JAAman, klange, Octocontrabass, sortie, kmcguire, chase, thepowersgang, Owen, Combuster, AJ, 01000101, carbonBased, Candy, pcmattman

Post Reply
clementttttttttt
Member
Member
Posts: 70
Joined: Tue Jul 14, 2020 4:01 am
Freenode IRC: clementttttttttt

Just a very quick question about paging of linux

Post by clementttttttttt »

Did Linux identity mapped the pages to the whole memory(paging)?
nullplan
Member
Member
Posts: 1643
Joined: Wed Aug 30, 2017 8:24 am

Re: Just a very quick question about paging of linux

Post by nullplan »

That terse question deserves an equally terse answer: No.

At least, if I understand your horribly phrased question right. Linux does not, in fact, identity map anything, except maybe a trampoline on boot up. That will then get mapped out.
Carpe diem!
User avatar
bzt
Member
Member
Posts: 1584
Joined: Thu Oct 13, 2016 4:55 pm
Contact:

Re: Just a very quick question about paging of linux

Post by bzt »

clementttttttttt wrote:Did Linux identity mapped the pages to the whole memory(paging)?
Original Linux identity mapped the first 8M (all the RAM Linus had) during boot. See head.s.
Then as tasks were started, the mm replaced the identity mapping with per-task mappings.

Cheers,
bzt
sj95126
Member
Member
Posts: 151
Joined: Tue Aug 11, 2020 12:14 pm

Re: Just a very quick question about paging of linux

Post by sj95126 »

bzt wrote:
clementttttttttt wrote:Did Linux identity mapped the pages to the whole memory(paging)?
Original Linux identity mapped the first 8M (all the RAM Linus had) during boot. See head.s.

And by the way, this technique wasn't just used in the very early versions (the link goes to the original release 0.0.1). 2.x kernels continued to do this in the kernel bootstrap code.
Post Reply