OS-Allocatong and Freeing Space

When files are allocated and freed it is common for the space on disk to become increasingly fragmented. One technique for alleviating this ...

When files are allocated and freed it is common for the space on disk to become increasingly fragmented. One technique for alleviating this problem is to perform periodic compaction or garbage collection. Files may be reorganized to occupy adjacent areas of the disk, and free areas may be collected into a single block or a group of large blocks. This garbage collection is often done during the system shut down; some systems perform compaction dynamically while in operation. A system may choose to reorganize the files of users not currently logged in, or it may reorganize files that have not been referenced for a long time.

Designing a file system requires knowledge of the user community, including the number of users, the average number and size of files per user, the average duration of user sessions, the nature of application to be run on the system, and the like. Users searching a file for information often use file scan options to locate the next record or the previous record.

In a paged systems, the smallest amount of information transferred between secondary and primary storage is a page, so it makes sense to allocate secondary storage in blocks of the page size or a multiple of a page size.

Locality tells us tat once a process has referred to a data item on a page it is likely to reference additional data items on that page; it is also likely to reference data items on pages contiguous to that page in the user’s virtual address space.

Best Online Tutorials | Source codes | Programming Languages: OS-Allocatong and Freeing Space
OS-Allocatong and Freeing Space
Best Online Tutorials | Source codes | Programming Languages
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content