Editing Memory page
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
Size of memory page is architecture and operating system dependant. On an x86 and x86_64 hardware, memory page is equal to 4KB. On an Intel Itanium (IA64) memory page size is 16KB. | Size of memory page is architecture and operating system dependant. On an x86 and x86_64 hardware, memory page is equal to 4KB. On an Intel Itanium (IA64) memory page size is 16KB. | ||
− | |||
You can get the actual value on your Linux/UNIX system with the '''getpagesize'''-Syscall. Here is a C Program that prints the pagesize on your system : | You can get the actual value on your Linux/UNIX system with the '''getpagesize'''-Syscall. Here is a C Program that prints the pagesize on your system : | ||
− | < | + | <code> |
#include <unistd.h> | #include <unistd.h> | ||
#include <stdio.h> | #include <stdio.h> | ||
Line 16: | Line 15: | ||
return 0; | return 0; | ||
} | } | ||
− | </ | + | </code> |
− | compile with : | + | compile with : gcc -o getpagesize getpagesize.c |
− | |||
− | gcc -o getpagesize getpagesize.c | ||
− | |||
− | |||
− | |||
[[Category:Definitions]] | [[Category:Definitions]] |