Are the size of a memory page and the size of a file system cluster always the same

filesystemslinuxmemorywindows

From http://en.wikipedia.org/wiki/Page_%28computer_memory%29

A page, memory page, or virtual page is a fixed-length contiguous block of virtual memory, described by a single entry in the page
table. It is the smallest unit of data for memory allocation performed
by the operating system on behalf of a program, and for transfers
between the main memory and any other auxiliary store, such as a hard
disk drive.

From http://en.wikipedia.org/wiki/Data_cluster

In computer file systems, a cluster or allocation unit is a unit of disk space allocation for files and directories. To reduce the overhead of managing on-disk data structures, the filesystem does not allocate individual disk sectors by default, but contiguous groups of sectors, called clusters.

I wonder if the size of a memory page and the size of a file system cluster in the same computer system (hardware and OS, in particular Linux, Windows, Mac) are always the same? Thanks.

Best Answer

Always? No. Often? Yes, which is of course convenient. (Notice no claim for "usually".)

For example, with Windows:

just like in Win32, the x64 page size is 4KB

And for NTFS, the default cluster size is 4KB for disks up to 16TB. But (1) that's just the default; (2) for really large disks, the default is larger; and (3) there are other file systems.

Related Question