[suman@ajit ~]$ getconf PAGE_SIZE
4096
it says that i am using 4KB PAGE SIZE. Now i went to find out where the PAGE SIZE has been wriiten into the source code. I found it /include/asm-i386/page.h in my kernel-source(2.6.17) directory.My system architecture is i386 machine. I could see
#ifndef _I386_PAGE_H
#define _I386_PAGE_H
/* PAGE_SHIFT determines the page size */
#define PAGE_SHIFT 12
#define PAGE_SIZE (1UL << PAGE_SHIFT)
i see that PAGE_SIZE depends on the value of PAGE_SHIFT. i yet to see if i change the PAGE_SHIFT value,what would be the impact of my kernel? Let see..i will be informing....
Also i came to know that PAGE SIZE varries on architecture to architecure. Here is the code snapshot for ia64 archi. #ifndef _ASM_IA64_PAGE_H
#define _ASM_IA64_PAGE_H
* PAGE_SHIFT determines the actual kernel page size. */
#if defined(CONFIG_IA64_PAGE_SIZE
# define PAGE_SHIFT 12
#elif defined(CONFIG_IA64_PAGE_SIZE
# define PAGE_SHIFT 13
#elif defined(CONFIG_IA64_PAGE_SIZE
# define PAGE_SHIFT 14
#elif defined(CONFIG_IA64_PAGE_SIZE
# define PAGE_SHIFT 16
#else
So ia64 machine can use 4KB,8KB,16KB or 64KB depends upon the configuration during compilation.
4 comments:
Thanks informative....
The explanation makes the Advance AI Course in Coimbatore look very approachable for beginners.
Very useful site! The platform makes it easier to plan step by step. The recommendations are clear and reduce unnecessary confusion. universities in Germany.
Really nice explanation. The platform helps users approach things with better clarity. free education countries for indian students.
It makes the entire experience less overwhelming
Post a Comment