On Thu, 06 Jan 2022 15:54:10 +0000, Johannes Koehler wrote:
> I try to get more skills to know about the following relation:
>
> (b) blocksize@filesystem
The block size depends on your filesystem. Example of a good man-page
might be to study the -b flag at the man-page of mke2fs. To see the block
size of an existing ext*fs you can try something like:
dumpe2fs /dev/sda1
As you probably understand, it is prefered to have a block size which is
a multiple of 1 or bigger of the sector size.
> (c) pagesize@(linux kernel or file)
The page size is usually 4 kB, you can check if that is really the case
on your system by doing:
cat /proc/1/smaps | grep PageSize
Again, for swapping performance, it is prefered to have a page size which
is a multiple of 1 or bigger of the sector size.
One simple way to test you raw disk performance with different block
sizes is to do:
dd if=/dev/sda of=/dev/null bs=512
dd if=/dev/sda of=/dev/null bs=1024
dd if=/dev/sda of=/dev/null bs=2048
dd if=/dev/sda of=/dev/null bs=4096
dd if=/dev/sda of=/dev/null bs=8192
...
For RAID systems you might want to compare the performance with different
stripe sizes.
regards Henrik