[suman@ajit ~]$ getconf PAGE_SIZE
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
/* 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
* PAGE_SHIFT determines the actual kernel page size. */
# define PAGE_SHIFT 12
# define PAGE_SHIFT 13
# define PAGE_SHIFT 14
# define PAGE_SHIFT 16
So ia64 machine can use 4KB,8KB,16KB or 64KB depends upon the configuration during compilation.