Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>most filesystems' performance nosedives after >90% disk usage anyway

With modern filesystems using delayed allocation to reduce fragmentation, and SSDs reducing the cost of fragmentation, you can often get good performance at higher occupancy nowadays.



Sure, I know, but if you're talking about really modern filesystems (which do copy-on-write/CoW), then the fragmentation caused by CoW is even worse than that avoided by delayed allocation.

SSDs certainly alleviate this problem, but even in SSDs, sequential I/O can be much faster than random I/O.

Anyway, I guess my point is that the vast majority of systems don't run with >90% disk space usage, so reserving up to 10% of the filesystem for swap space is not unreasonable.

Note that this would just be a space reservation. You wouldn't need to actually allocate specific disk blocks or write anything to the swap file, unless the system starts running out of memory.

In reality, you'd need much less than 10% (in the vast majority of cases), especially if you have a Windows-like API where you can allocate address space separately from committing memory (which means uncommitted address space doesn't need swap space reservation).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: