⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rp.4

📁 UNIX版本6的源代码
💻 4
字号:
.th RP IV 2/21/74.sh NAMErp \*- RP-11/RP03 moving-head disk.sh DESCRIPTIONThe files.it "rp0 ... rp7"refer to sections of RP disk drive 0.The files.it "rp8 ... rp15"refer to drive 1 etc.This is done since the size ofa full RP drive is 81200 blocks andinternally the system is only capableof addressing 65536blocks.Also since the disk is so large,this allows it to be broken upinto more manageable pieces..s3The origin and size of the pseudo-disks on each drive areas follows:.s3.br	disk	start	length.br	0	0	40600.br	1	40600	40600.br	2	0	9200.br	3	72000	9200.br	4	0	65535.br	5	15600	65535.br	6-7	unassigned.s3It is unwise for all of these files to be present in one installation,since there is overlap in addresses and protection becomesa sticky matter.Here is a suggestion for two useful configurations:If the root of the file system is on some other deviceand the RP used as a mounted device,then.it rp0and.it rp1,which divide the disk into two equal size portions, is a good idea.Other things being equal, it is advantageous to have two equal-sized portionssince one can always be copied onto the other, which is occasionally useful..s3If the RP is the only disk and has tocontain the root and the swap area,the root can be put on.it rp2and a mountable file system on.it rp5.Then the swap space can be put in theunused blocks 9200 to 15600 of.it rp0(or, equivalently,.it rp4).This arrangement puts the root file system, the swap area,and the i-list of the mounted file system relativelynear each other and thus tends tominimize head movement..s3The.it rpfilesaccess the disk via the system's normalbuffering mechanismand may be read and written without regard tophysical disk records.There is also a ``raw'' interfacewhich provides for direct transmission between the diskand the user's read or write buffer.A single read or write call results in exactly one I/O operationand therefore raw I/O is considerably more efficient whenmany words are transmitted.The names of the raw RP filesbegin with.it rrpand end with a number which selects the same disksection as the corresponding.it rpfile..s3In raw I/O the buffer must begin on a word boundary,and counts should be a multiple of 512 bytes(a disk block).Likewise.it seekcalls should specify a multiple of 512 bytes..sh FILES/dev/rp?, /dev/rrp?.sh BUGS

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -