Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.hardware > #3523
| From | Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> |
|---|---|
| Newsgroups | comp.os.linux.hardware |
| Subject | Re: block oriented storage |
| Date | 2022-01-07 07:04 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <sr8omr$pl6$1@dont-email.me> (permalink) |
| References | <slrnste452.srn.jko@IONNOKEFKO.johannes-koehler.de> |
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
Back to comp.os.linux.hardware | Previous | Next — Previous in thread | Find similar | Unroll thread
block oriented storage Johannes Koehler <jko@johannes-koehler.de> - 2022-01-06 15:54 +0000 Re: block oriented storage Marco Moock <mo01@posteo.de> - 2022-01-06 19:57 +0100 Re: block oriented storage Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> - 2022-01-07 07:04 +0000
csiph-web