Comments (5)
Under Linux normally we use the physical block size reported by the device. However, there are a small number of devices which incorrectly report their physical block size (normally as 512b) so we maintain a white list. If you have a Samsung 840 I'd suggest checking /sys/block/<device>/queue/physical_block_size
to see what it reports.
Setting this value larger than the actual physical block size can result in wasted space, setting it smaller can result in terrible performance. So it's definitely best if it actually matches the what's used internally in the drive.
from zfsonlinux.github.com.
The device reports 512b blocks I was questioning the disparity between the zfsonlinux blocksize override for that device (8K) the value joyent picked (4K) for the same device.
My reasoning for doubting the zfsonlinux value is that the hardware will have been tuned for NTFS which is going to pick an allocation size of 4K.
This stems from the fact that I am running an NTFS volume with 4K allocation size on a zvol (volblocksize 4K) and if I go with the zfsonlinux default of ashift=13 (8K) I also hit the problem of performance tanking as my writes are too small for the zpool.
from zfsonlinux.github.com.
Also the pagesize on x86_64 is 4K so if you swap on a zvol with 4K blocksize belonging to a zpool with ashift=13 / 8K blocks you are going be issuing writes that are too small
from zfsonlinux.github.com.
The datasheet for this device doesn't seem to explicitly state the physical block size. so either the 4k or 8k value really could be correct. The ZoL commit message in bff32e0972bbc07ba5f2b9ce5b965813d8edcf78 says the 8k value was verified but it doesn't provide a link. Regardless, the important thing is how the device behaves. I'd suggest trying both sizes and see if you notice any difference, you can use the -o ashift=X
option when creating the pool to force the ashift.
from zfsonlinux.github.com.
Closed as stale.
from zfsonlinux.github.com.
Related Issues (18)
- please move https://github.com/zfsonlinux/zfs/issues/3413 here HOT 3
- Please point archive.zfsonlinux.org to Dualstack S3 endpoint HOT 1
- Roll back 0.7.7 links from zfsonlinux.org? HOT 2
- Missing message ID HOT 3
- msg pages should be linuxisized and use the same page layout HOT 1
- https not http for the repo home page link to zfsonlinux.org HOT 5
- Shrinking boot pool HOT 1
- ZFS Breaks Install Scripts with Permission Error (Root on EXT4) HOT 1
- Instability on AL2 HOT 7
- zfsonlinux.org - not available via ipv6 HOT 6
- fedora37 release? HOT 17
- Is download.zfsonlinux.org offline? HOT 1
- Release request for EPEL 8.7 HOT 5
- Fedora 38 HOT 2
- EL8 packages missing HOT 10
- Linux load average increased since 2.2.0 HOT 1
- Fedora 39 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zfsonlinux.github.com.