Skip to content

Force adapter Buckets to persist in the hierarchy despite their reference counts reaching 0 #258

@ChristopherHogan

Description

@ChristopherHogan

The Problem

IOR "read after write" performance with the POSIX adapter will be poor. The IOR flow for "read after write" is

open
write
close

open
read
close

The result of the first close will be that the file's Bucket and Blobs are destroyed, so when the read arrives, Hermes will have to retrieve the data from disk again.

Solution

Using the native API, this is easily solved by calling Bucket::Close instead of Bucket::Destroy. I guess I need to implement a way to pass a hint to Hermes from the adapters to close instead of destroy.

Metadata

Metadata

Labels

adapter-posixRelated to the POSIX adapteradapter-stdioRelates to the STDIO adapterpeformanceImprovements or defects in performance

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions