scmfs a file system for storage class memory
play

SCMFS: A File System for Storage Class Memory Xiaojian Wu, - PowerPoint PPT Presentation

SCMFS: A File System for


  1. �������������������������������������� ����������������������������������� SCMFS: A File System for Storage Class Memory Xiaojian Wu, Narasimha Reddy Texas A&M University

  2. �������������������������������������� ����������������������������������� What is SCM? � Storage Class Memory � Byte!addressable, like DRAM � Non!volatile, persistent storage � Example: Phase Change Memory

  3. �������������������������������������� ����������������������������������� PCM Attributes ������������

  4. �������������������������������������� ����������������������������������� Hardware hierarchy Storage Memory CPU RAM DISK/SSD Storage Class Memory

  5. �������������������������������������� ����������������������������������� How to use SCM as storage? � External interfaces change slower than internals. � Provide consistent APIs, � e.g., POSIX � Name space � Directory!based file systems

  6. �������������������������������������� ����������������������������������� How to use SCM as storage? � Device level � Use existing file system on RamDisk � File system level � Design a new file system

  7. �������������������������������������� ����������������������������������� Use existing FS on Ramdisk Applications C Libraries User space System Call Interfaces Kernel space VFS Ext2 Ext3 Btrfs 8 Generic Block layer Not necessary Device Driver Device Driver RamDisk Hard Disk Flash Disk SCM

  8. �������������������������������������� ����������������������������������� New FS on SCM Applications C Libraries User space System Call Interfaces Kernel space VFS Remove page cache Ext2 Ext3 Btrfs 8 scmfs How to design SCMFS? Generic Block layer Device Driver Device Driver Hard Disk Flash Disk SCM

  9. �������������������������������������� ����������������������������������� Keep It Small and Simple

  10. �������������������������������������� ����������������������������������� Simplify the SCMFS � Block management in FS � Allocate/De!allocate blocks � Manage the resources on storage device � Memory Management in OS � Allocate/De!allocate memory pages � Manage the memory resources

  11. �������������������������������������� ����������������������������������� Indirect blocks in regular FSs Direct blocks Indirect blocks Double indirect blocks Inode Meta) Meta)

  12. �������������������������������������� ����������������������������������� Keep files always contiguous Inode Meta) Meta) File data File data ) _start _start )

  13. �������������������������������������� ����������������������������������� Wrap up � Re!utilize Memory Management (MM) module in O/S to do block management � Implement the file system in Virtual Address Space � Keep all the files contiguous in Virtual Address Space

  14. �������������������������������������� ����������������������������������� Memory space layout Mapping Mapping Physical address space Metadata Metadata FS space FS space table table Page mapping Virtual address space Super block Super block Inode table Inode table Files Files NVMALLOC_START NVMALLOC_END

  15. �������������������������������������� ����������������������������������� SCMFS File system layout Super block dir1 file1 file2 r r o o ) Inode table o o t t Directory file Null file ) Ordinary file Active data Mapped but inactive data Unmapped space

  16. �������������������������������������� ����������������������������������� Modify OS kernel to support SCMFS � OS should be able to distinguish SCM from volatile DRAM � Add a new address range type “AddressRangeStorage” to E820 table � Add a new memory zone “ZONE STORAGE” � Put memory range with “AddressRangeStorage” into this zone � Add new kernel APIs � nvmalloc()/nvfree()/nvmalloc_expand()/nvmalloc_shrink( )8 � Always operate in the zone “ZONE STORAGE” (physical address space) � Always operate between NVMALLOC_START and NVMALLOC_END (total 2 47 )

  17. �������������������������������������� ����������������������������������� More features � Pre!allocation � Allocate more space than needed � Null files � Garbage collection � File system consistency � Write ordering problem � Cache, CPU instruction re!ordering � Use ������������������� to provide metadata consistency � Combination of ������ and ������� . � Flush the CPU cache periodically to provide data consistency.

  18. �������������������������������������� ����������������������������������� Evaluation � Environment � 2.33GHz Intel Core2 Quad Processor Q8200 � 8GB RAM, 4GB is used as SCM. � Linux 2.6.33 � Benchmarks � IoZone – Workload on file data � Postmark – Workload on metadata � Use Performance Counter to analyze the results

  19. �������������������������������������� ����������������������������������� Simplicity � Modification to OS consists of 300 SLOC. � SCMFS consists of 2700+ SLOC (1/10th of Ext2FS)

  20. �������������������������������������� ����������������������������������� Performance (IoZone Random)

  21. �������������������������������������� ����������������������������������� L2 Data Cache Miss Rate (IoZone Random)

  22. �������������������������������������� ����������������������������������� Instruction Cache Miss Rate (IoZone Random)

  23. �������������������������������������� ����������������������������������� Data TLB Misses (IoZone Random) SCMFS suffers from TLB misses.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend