Skip to content

Implement the cache feature for Page FTL #35

@BlaCkinkGJ

Description

@BlaCkinkGJ

Page FTL has not been finished implementing the cache feature. It needs to implement.

Moreover, its architecture's cache shares read and write routines. The cache only can be updated by the write routine. In other words, the current cache implementation cannot efficiently absorb the I/O performance degradation.

#ifdef PAGE_FTL_USE_CACHE
cached = (struct device_request *)lru_get(pgftl->cache, lpn);
if (cached) {
memcpy(request->data, &((char *)cached->data)[offset],
request->data_len);
ret = request->data_len;
device_free_request(request);
pthread_mutex_unlock(&pgftl->mutex);
goto exception;
}
#endif

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions