The emerging Storage Class Memory, which offers characteristics of byte-addressability, persistence, and low power consumption, will be expected to replace memory/storages. A new file system is required in this environment. In the design of file systems, data consistency is one of the most important issues that should be taken into account. To do this, most file systems exploit journaling or shadow paging for the consistency. Shadow paging employs copy-on-write for the consistency. However, it incurs many copy overheads. In order to relieve these problems, BPFS proposed a short-circuit shadow paging. But, in our experiments, we showed that it incurs many copy-on-write blocks as ever. In this paper, we propose a last block logging mechanism for improving the performance and the lifetime of SCM-based file system, by reducing copy-on-write blocks considerably. Our approach is to store the only changed contents to the available space of the last block, instead of performing copy-on-write on the entire block. Also, our approach updates the address of the last block and maintains the information on the logged data in order to ensure the data consistency. SQLite benchmark shows that the proposed mechanism reduces the overall elapsed time by 14% and the written data amount up to 72%, compared to the mechanism of BPFS.
[1]
Robert B. Hagmann,et al.
Reimplementing the Cedar file system using logging and group commit
,
1987,
SOSP '87.
[2]
OHAD RODEH,et al.
B-trees, shadowing, and clones
,
2008,
TOS.
[3]
Cristian Ungureanu,et al.
Revisiting storage for smartphones
,
2012,
TOS.
[4]
Eunji Lee,et al.
On-Demand Snapshot: An Efficient Versioning File System for Phase-Change Memory
,
2013,
IEEE Transactions on Knowledge and Data Engineering.
[5]
Christopher Frost,et al.
Improving file system consistency and durability with patches and bpfs
,
2010
.
[6]
Christopher Frost,et al.
Better I/O through byte-addressable, persistent memory
,
2009,
SOSP '09.
[7]
Rina Panigrahy,et al.
Design Tradeoffs for SSD Performance
,
2008,
USENIX ATC.
[8]
Trevor N. Mudge,et al.
Using non-volatile memory to save energy in servers
,
2009,
2009 Design, Automation & Test in Europe Conference & Exhibition.
[9]
James Lau,et al.
File System Design for an NFS File Server Appliance
,
1994,
USENIX Winter.