Re: Why are the PAGE_SIZE and the physical page frame size different in x86_64 kernel?

2018-03-29 Thread valdis . kletnieks
On Thu, 29 Mar 2018 22:48:24 +0800, Hao Lee said: > I'm confused about the meaning of the PAGE_SIZE macro in x86_64 > kernel. Its value is 4KB and I once thought it was the size of a > physical page frame, but now I think I'm wrong. I find that most of > the physical address space is mapped by PMD

Why are the PAGE_SIZE and the physical page frame size different in x86_64 kernel?

2018-03-29 Thread Hao Lee
Hi, I'm confused about the meaning of the PAGE_SIZE macro in x86_64 kernel. Its value is 4KB and I once thought it was the size of a physical page frame, but now I think I'm wrong. I find that most of the physical address space is mapped by PMD entries, which means the actual physical page frame