Chapter 1 - Introduction To File Structures
Chapter 1 - Introduction To File Structures
–Storage of data
Introduction to File Structures
–Organization of data
–Access to data
This will be built on your knowledge of
Data Structures
File Structures
Introduction
Introduction to
to File
File Organization
Organization
Data processing from a computer science perspective:
1
–Storage of data
Introduction to File Structures
–Organization of data
–Access to data
This will be built on your knowledge of
Data Structures
File Structures
Computer
ComputerArchitecture
Architecture
1
CPU Differences
Registers
Introduction to File Structures
—Fast
Cache —Small
—Expensive
—Volatile
RAM Main Memory
(Semiconductor) —Slow
—Large
Disk, Tape, Second Storage —Cheap
DVD-R —Stable
File Structures
Memory
Memory Hierarchy
Hierarchy
1
Introduction to File Structures
File Structures
Memory
Memory Hierarchy
Hierarchy
File Structures
Definition
Definition
1
File Structures
Why
WhyStudy
StudyFile
FileStructure
StructureDesign?
Design?
I.I.Data
DataStorage
Storage
1
[Computer
Memory]
Our – Secondary Storage [Online Disk/ Tape/ CDRom
Focus that can be accessed by the computer]
– Tertiary Storage ==> Archival Data [Offline
Disk/Tape/ CDRom not directly available to the
computer.]
File Structures
II.
II.Memory
Memoryversus
versusSecondary
SecondaryStorage
Storage
1
File Structures
III.
III.How
HowCan
CanSecondary
SecondaryStorage
StorageAccess
AccessTime
Timebe
beImproved?
Improved?
1
File Structures
Overview
Overviewof ofFile
FileStructure
StructureDesign
Design
I.I.General
GeneralGoals
Goals
1
Introduction to File Structures
File Structures
II.
II.Fixed
Fixedversus
versusDynamic
DynamicFiles
Files
1
File Structures
II.
II.The
Theemergence
emergenceof
ofDisks
Disksand
andIndexes
Indexes
As files grew very large, unaided sequential access was not a good
1
solution.
Disks allowed for direct access.
Introduction to File Structures
File Structures
How
How Fast?
Fast?
Typical times for getting info
1
120 10 9
– Main memory: ~120 nanoseconds =
Introduction to File Structures
30 10 6
– Magnetic Disks: ~30 milliseconds =
An analogy keeping same time proportion as above
– Looking at the index of a book: 20 seconds
versus
– Going to the library: 58 days
File Structures
Comparison
Comparison
Main Memory
1
File Structures
Goal
Goal of
of the
the Course
Course
Minimize number of trips to the disk in order to get desired
1
File Structures
Good
Good File
File Structure
Structure Design
Design
File Structures
History
History of
of File
File Structure
Structure Design
Design
1. In the beginning… it was the tape
1
– Sequential access
– Access cost proportional to size of file
Introduction to File Structures
File Structures