hammer2 - Improve swapcache support

Operating Systems / DragonFlyBSD - Matthew Dillon [apollo.backplane.com] - 8 September 2017 14:00 EDT

- Properly set B_NOTMETA on media buffers, which allows swapcache to distinguish between data and meta-data buffers.

This ensures that a user desiring to only swapcache meta-data does not blow all the SSD swap on file data, particularly if there is an excessive amount of file data.

- Greatly improves bulkfree performance on hard drives when SSD swapcache is enabled for meta-data only.

432f29d hammer2 - Improve swapcache support
sys/vfs/hammer2/hammer2_io.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)

Upstream: gitweb.dragonflybsd.org

  • Share