DOC PREVIEW
UW-Madison CS 736 - Ext2 On Singularity

This preview shows page 1-2-17-18-19-36-37 out of 37 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 37 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 37 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 37 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 37 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 37 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 37 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 37 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 37 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Slide 1Ext2 DefinedMicrosoft Research’s SingularityMy GoalsOverview of ResultsOutlineSingularityProgramming EnvironmentProcess ModelCommunication ChannelsDisk Read ExampleDisk Read ExampleDisk Read ExampleDisk Read ExampleDisk Read ExampleDisk Read ExampleExt2 ImplementationRequired PiecesExt2 Client ManagerExt2 ControlExt2FsFile Read SequenceFile Read Sequence 2CachingResultsTestingSlide 27Slide 28Slide 29ResultsConclusionQuestionsExtrasSlide 34Slide 35Slide 36Slide 37Ext2 On SingularityScott FinleyUniversity of Wisconsin – MadisonCS 736 ProjectBasic, default Linux file systemAlmost exactly the same as FFS◦Disk broken into “block groups”◦Super-block, inode/block bitmaps, etc.Ext2 DefinedNew from the ground upReliability as #1 goalReevaluate conventional OS structureLeverage advances of the last 20 years◦Languages and compilers◦Static analysis of whole systemMicrosoft Research’s SingularityImplement Ext2 on SingularityFocus on read support with cachingInvestigate how Singularity design impact FS integrationInvestigate performance implicationsMy GoalsI have a Ext2 “working” on Singularity◦Reading fully supported◦Caching improves performance!◦Limited write supportSingularity design◦Garbage collection hurts performance◦Reliability is good: I couldn’t crash it.Overview of Results1. Singularity Details2. Details of my Ext2 implementation3. ResultsOutlineSingularityEverything is written in C#◦Small pieces of kernel (< 5%) in assembly and C++ as neededKernel and processes are garbage collectedNo virtual machine◦Compiled to native codeVery aggressive optimizing compilerProgramming EnvironmentSingularity is a micro kernelEverything else is a SIP◦“Software Isolated Process”No hardware based memory isolation◦SIP “Object Space” isolation guaranteed by static analysis and safe language (C#)◦Context switches are much fasterProcess ModelAll SIP communication is via message channelsNo shared memoryMessages and data passed via Exchange HeapObject ownership is trackedZero copy data passing via pointersCommunication ChannelsApplication creates buffer in ExHeapDisk Read ExampleAppFile SystemDisk DriverExchange HeapEmpty BufferApplication send read request to file system◦File system owns the bufferDisk Read ExampleAppFile SystemDisk DriverExchange HeapEmpty BufferFile system sends read request to driver◦Driver owns the bufferDisk Read ExampleAppFile SystemDisk DriverExchange HeapEmpty BufferDriver fills buffer and replies to file systemDisk Read ExampleAppFile SystemDisk DriverExchange HeapFull BufferFile system replies to applicationDisk Read ExampleAppFile SystemDisk DriverExchange HeapFull BufferApplication consumes the bufferDisk Read ExampleAppFile SystemDisk DriverExchange HeapExt2 ImplementationExt2Control: Command line applicationExt2ClientManager: Manages mount pointsExt2FS: Core file system functionalityExt2Contracts: Defines communicationRequired PiecesSystem service (SIP) launched at bootAccessible at known location in /dev directoryDoes “Ext2 stuff”Operates on Ext2 volumes and mount pointsExports “Mount” and “Unmount”◦Would also provide “Format” if implemented300 lines of codeExt2 Client ManagerCommand line applicationAllows Ext2 Client Manger interface accessNot used by other applications500 lines of code Ext2 ControlCore Ext2 file system.Separate instance (SIP) for each mount point.◦Exports “Directory Service Provider” interfaceClients open files and directories by attaching a communication channel◦Internally paired with an Inode.Reads implemented, Writes in progress2400 Lines of codeExt2FsClient wants to read file “/mnt/a/b.txt”◦Ext2 mounted at “/mnt”1. App --CH0-->SNS: <Bind,“/mnt/a/b.txt”,CH1>2. App<--CH0-- SNS: <Reparse, “/mnt”>3. App --CH0-->SNS: <Bind,”/mnt”,CH1>4. App<--CH0-- SNS: <AckBind>File Read Sequence5. App --CH1-->Ext2Fs: <Bind,“/a/b.txt”,CH2>6. App<--CH1-- Ext2Fs: <AckBind>7. App --CH2-->Ext2Fs: <Read, Buff, BOff, FOff>8. App<--CH2-- Ext2Fs: <ReadAck, Buff>9. …File Read Sequence 21. Inodes: Used on every access2. Block Numbers: Very important for large files3. Data Blocks: Naturally captures othersAll use LRU replacementLarge files unusable without caching◦8300X faster reading 350 MB fileCachingResultsAthlon 64 3200, 1 GB RAMDisk: 120GB, 7200 RPM, 2 MB buffer, PATAMeasured sequential readsVaried read buffer size from 4 KB to 96 MBTimed each requestFile sizes ranged from 13 MB to 350 MBTesting2,048 20,480 204,800 2,048,000 20,480,000 204,800,00005101520253035350MB File Sequential ReadLinuxAverage4 KB8 KB16 KB64 KB256 KB1 MB8 MB64 MB96 MBColdBuffer Size (Bytes)Read Speed (MB/S)05101520253035Request Service Time for reads of 350 MB file with 16 KB buffersTimeRequest Service Time (ms)05101520253035200 Sequential 16 KB Buffer Reads of 350 MB FileTimeRead Speed (MB/s)Linux is faster◦Not clear that this is fundamentalPerformance is not horrible◦“Good enough” objective met◦Garbage collection overhead < 0.1%Not sensitive to file sizeResultsSystem programming in a modern languageSystem programming with no crashesMicro kernel is feasible◦Hurts feature integration: mmap, cache sharing◦Clean, simple interfacesConclusionQuestionsExtras2,048 20,480 204,800 2,048,000 20,480,000 204,800,0000510152025303513 MB File Sequential ReadLinuxAverage4 KB8 KB16 KB64 KB256 KB1 MB8 MB64 MB96 MBColdBuffer Size (Bytes)Read Speed (MB/S)0510152025303564 KB Buffer Reads of 350 MB FileTimeRead Speed (MB/s)05101520253064 MB Buffer Reads of 350 MB FileTimeRead Speed (MB/s)2,048 20,480 204,800 2,048,000 20,480,000 204,800,000051015202530Average Sequential Read Speeds13 MB File350 MB FileBuffer SizeRead Speed


View Full Document

UW-Madison CS 736 - Ext2 On Singularity

Documents in this Course
Load more
Download Ext2 On Singularity
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Ext2 On Singularity and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Ext2 On Singularity 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?