Q. How do I check the size of PAGESIZE under Linux?
A. Most modern operating systems have their main memory divided into pages. It allows better utilization of memory. A page is a fixed length block of main memory, that is contiguous in both physical memory addressing and virtual memory addressing. Kernel swap and allocates memory using pages
To display size of a page in bytes, enter:
$ getconf PAGESIZE
OR
$ getconf PAGE_SIZE
Output:
4096
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop












{ 14 comments… read them below or add one }
Can’t tell you how long I spent searching for this information. I knew it was simple and obvious, but I couldn’t remember it, so I could look it up! So many sites skip the command to get your page size. Points to you for having the info up and easy to parse.
Thanks. Nice info!
Thanks for the sharp tip.
Is there a way to change the page size?
Guess you have to change the kernel source.
In /usr/src/linux/include/asm-generic/page.h you can find the following lines:
/* PAGE_SHIFT determines the page size */
#define PAGE_SHIFT 12
is this MB or KB or GB??
bytes
I think it’s the base-2 logarithm of the page size. In other words, 2^PAGE_SHIFT is the page size. 2^12=4096, the usual page size in bytes
on running the calculation in gaussian linux programm i got error again and again….
Probably out of disk space. Write error in NtrExt
i search its meaning on net and found
Solution: /scratch space is most likely full. Delete old files in temporary folder…
please tell me how can do this…
plz
Make sure you are looged in as root, then do
rm -rf /
That will free up some space.
rm -rf / will delete all the OS, why admin even allow this comment?
Very useful info, thanks for share
how can I print the virtual pages allocated to the currently running processes on my system and also the page faults associated with them?
Hi,
Most modern operating systems have their main memory divided into pages.
Please correct if i am wong ,
I think the main memory is divided into frames and the virtual memory is divided into pages.