|
this is a multi-dimensional question, op. so let’s look at its individual components. for a spinning disk: a fuller drive is likely to be more fragmented. this means non-contiguous reads and writes, which slows spinning disks considerably, since seek times are brutally slow. a fuller drive also requires the heads to move further to find the data, as it may be on the inner sectors or the outer sectors of the disk. an emptier drive, properly defragged, is going to have all of the data in adjacent sectors to minimize head movement. for ssds: ssds are effectively copy on write, which can lead to lots of fragmentation in the physical block layer. when there are fewer empty pages to deal with, garbage collection often resorts to coalescing fragmented pages (I.e., copying the valid blocks to a new page so the current page can be erased). this is a lot of write amplification. fuller drives, particularly fragmented ones, will have more complex flash translation layer (FTL) mapping tables. these translate logical block addresses to physical ones. finding a block may require reading more levels of entries, and rewriting one adds more maintenance effort to the ftl data structures. while ssds are far better at scatter-gather IO than spinning disks, it is still suboptimal to linear IO, especially if blocks are interleaved on parallel nands chips (kind of a raid 1 setup) for filesystems in general: many file systems scale pretty poorly with many files or lots of files in a single directory. finding the index nodes for a file may require linear searches through long directory entries, meaning they need to be read, often with multiple layers of indirection, just to find the intended file. this is the slowdown we are used to when dealing with many small files. so, in conclusion, disks suck and are bad. would not recommend.
|
# ¿ Jun 21, 2023 08:17 |
|
|
# ¿ May 14, 2024 08:07 |
|
echinopsis posted:is a hard drive ever empty ??? isn’t it always 100% full of information even if it’s noise/garbage/zeros? a magnetic disk is never empty. flash media is “full” when it’s erased. writing frees trapped electrons so it gets lighter.
|
# ¿ Jun 21, 2023 08:20 |
|
I forgot your ram, op. your OS page cache is less likely to contain the data in the full drive, because there is more of it. it is less likely to have cached copies of the directory entries your care about or the index nodes for the files you want to read. that’s going to cost you a lot more in io overhead,
|
# ¿ Jun 21, 2023 08:23 |
|
fart simpson posted:nerd thanks. i couldn’t sleep last night so I typed this thing and then I could sleep. thanks yospos
|
# ¿ Jun 21, 2023 16:30 |