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

I don't understand how you can do the equivalent of TRIM without filesystem support.

Doesn't TRIM necessarily rely on knowing which blocks contain live data and which contain deleted data? I.e., something the hardware can't know?



An SSD can read the filesystem allocation bitmap, but that's a "rampant layering violation".

Most people confuse trim with garbage collection, which proactively cleans out invalid data (creating more pre-erased blocks to speed future writes) and potentially defragments data (to speed future sequential reads).




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: