. . - 6-32 -   - . - (400 MB ) . ( ) . - - , . - . - : - ; - , ; - , . , . , , - , . , () , , . , - , . , - .   , - , - - . - , . . - 6-33 - ---------------------------------------------- 0 1 , 0 2 , 1 3 , 2 .............................................. 9 , 8 ; . - . , - ( ) . , , . , , : -------------------------------------------------------- . 0 . 5 , 2 , . 7 , . 5 , , - . , , ( - 0). , 5 , - , 2, . 5 , - , - 0. , - , 5, , 0 - .  ,  schedule, , ; , - (8-10 200-400 MB). . - 6-34 - +--------------------------------------------------------------+ | # 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10| | # Filesystem M T W T F M T W T F M T W T F M T W T F | | /dev/rroot 0 x 9 x 9 8 x 9 x 9 1 x 9 x 9 8 x 9 x 9 | | /dev/ru 9 0 9 9 9 9 8 9 9 9 9 1 9 9 9 9 8 9 9 9 | +--------------------------------------------------------------+  6-5. , /u /dev/ru . - . ; - , . , , - ( 0) /dev/ru . ( 0 , 0 /u .) 9 /dev/ru, - 0. , . . - , - 0, - - , . , - (0, 1 8), - ; 9 - . 9 . root . , - . - , - 9. /u, 9 , . . - 6-35 -  -   , , - . , , , . , - , - - . - : * 0 ( ) * 1 ( ) * 8 ( ) * 9 ( ) 8, - , 1 . , , - . ; .  7   ________________________________________________________________ 7-1 7-2 7-2 7-3 7-3 - 7-2 - ________________________________________________________________   UNIX , , / - . - . - . - . - , . - : * . * . , , - . * , . , custom(ADM). *  , , . cd /etc/conf/cf.d , , .   - . , . - 7-3 - , - , - , , . , custom. , , - : custom sysadmsh  : -> , , . Custom  V- UNIX . - UNIXa, - . custom , - , - . . - , " - ". , " ", , - .   - , . , , : ./< > - 7-3a -   . - ; , , . - /dev, mknod(C). 10 " " mknod(C).   , , - , ( , ): - 7-4 - 1. - : cp/unix/unix.old 2. . - .o  ( Driver.o) . : ./routines Driver.o ________________________________________________________________  . , , . . . , . , / sioDriver.o. 2-10 , , , . ________________________________________________________________ 3.  . - , spl, 0 7. - spl . - , spl6  - , 6. spl . 4. . , sio. - :open, lose, read, write, ioctl, startup, exit, fork, exec, init, halt, poll, strategy, print, _tty, intr. . , - 3routines  sioDriver.o   , sio, ttinit , , - sio. Sio  , , siopinit - - "p". Sio - : . - 7-5 - 5. --  - . strategy print, -. - read, write ioctl, - -. - , , - -. 6. /etc/conf/pack.d , . - . 2mkdir /etc/conf/pack.d/prefix (. -h  configure, ), . , - . Driver.o. space.c  stub.c, - . 2mv Driver.o space.c stubs.c /etc/conf/pack.d/prefix _______________________________________________________________  ( . ), (, sioDriver.o, siospace.c  siostubs.c). - /etc/conf/pack.d, - , Driver.o, space.c stubs.c. : mv sioDriver.o /etc/conf/pack.d/sio/Driver.o mv space.c /etc/conf/pack.d/sio/space.c mv stubs.c /etc/conf/pack.d/sio/stubs.c , . _______________________________________________________________ - 7-6 - 7.   : ./configure -j NEXTMAJOR 8.   . intr, , - . - , - : ./vectorsinuse , , , . - . 9. configure . configure  (ADM). configure  - , .. Return , : ./configure -b -c -m < > - -m \ < > -l < > -h \ < > - : -b , -- . -c , - . -m , . -s -h, -m,-b -c. - -m -c. -v intr - ; . -a , - routines - . - 7-7 - -l spl - ; , . -h , , - , stream module ; /etc/conf/pack.d, , . , - /, : ./configure -c -m 5 -v 3 4 -a sioopen sioread siowrite\ sioioctl siopoll sioinit sio_tty -l 7 , - : ./configure -b -m 31 -a ramopen ramclose ramstrategy \ ramprint -s -h, - : ./configure -a nmi_init -s -h nmi 10. , ,    /dev. , , - - , . - mknod. , ( "b" - - , "c" - -), ( , ). , /, : /etc/mknod /dev/ttyla c 5 1 : /etc/mknod /dev/hcd0 b 1 0 /etc/mknod /dev/rhcd0 c 1 0 /etc/mknod /dev/hqp c 7 0 UNIX . - . - "r". - 7-8 - 11. , , : ./link_unix sysadmsh  : ->->- -> , - , - . 12. , : /etc/shutdown sysadmsh : -> . <Return> - . ________________________________________________________________             , /unix.old ________________________________________________________________  8   ________________________________________________________________ 8-1 8-3 8-4 configure 8-5 8-7 8-8 8-8 8-8 8-9a 8-10a 8-11 8-14 ps 8-14 $PATH 8-15 8-16 : 8-17 : sar -b 8-17 : sar -q 8-18 : sar -u 8-19 : sar -v 8-20 : sar -w 8-21 : timex 8-22 8-23 8-23 8-25 , 8-26 , 8-29 8-31 8-32 8-32 8-33 8-34 8-35 8-35 p p 8-38 p- pp 8-38 pp p 8-38 - 8-1 - ________________________________________________________________  configure(ADM), , . . , , - . UNIX - . , - , , . : , - . ( , , ). - , - , . , - ( - ). - , , . UNIX. , - , . - , , . - - . - 8-2 - ________________________________________________________________  , - , . ________________________________________________________________ : * . * , - , , - . * , - , (, - ). * . - . , , . - , - - . , , - , , . , - - (NBUF, NCLIST .) , , - . , , , - . , . : * * * $PATH - 8-3 - * ps, sar, , - . , , .   . , , , , - , . - , , , , , - . . . configure. - 8-4 - ________________________________________________________________  CONFIGURE configure -- , , - ,   ,       link_unix, , . - - : 1. ( ). 2. custom (ADM) , - (LINK). - , - custom. 3. , , - , : cd /etc/conf/cf.d ./configure sysadmsh  : -> -> -> 4. configure: +---------------------------------------------------------------+ | 1. | | 2. | | 3. , | | 4. , | | 5. | | 6. | | 7. | | 8. | | 9. | | 10. | | 11. | | 12. | | 13. - | | 14. | | | | , - | | , "1" "14" "q" : | +---------------------------------------------------------------+ - 8-5 - - . , . - <Return>. - - , configure . - "q". ________________________________________________________________  , , , , . , Stream , . ________________________________________________________________ 5. , , . : ./link_unix sysadmsh  : -> -> -> - , . - " - " " ".  configure configure , . , , - 70 50, - , . , , , : - 8-6 - 2./configure -y RESOURCE RESOURCE - ( ). , , : 2./configure RESOURCE=<> ; . - . - 8-7 - ________________________________________________________________   , - , . . . - , - "", - . , , , - , . - 8.1, . - , , , - 100% . - , - , . - 8-7a -  8.1   +-----------------------------------------------+--------------+ | | | +-----------------------------------------------+--------------+ |iget-inode table overflow | NINODE | |( iget-inode) | | +-----------------------------------------------+--------------+ |timeout table overflow | NCALL | |( ) | | +-----------------------------------------------+--------------+ |file table overflow | NFILE | |( ) | | +-----------------------------------------------+--------------+ |mfree map overflow n(*) | SPTMAP | |( mfree) | | +-----------------------------------------------+--------------+ |Region table overflow | NREGION | |( ) | | +-----------------------------------------------+--------------+ |configured value of NOFILES n(*) is less than | NOFILES | |minimum(greater of the maximum) | | |[ NOFILES | | |( )] | | +-----------------------------------------------+--------------+ |stropen: out of streams | NSTREAM | |( ) | | +----------