home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / ultrix / 9426 < prev    next >
Encoding:
Text File  |  1993-01-22  |  3.2 KB  |  106 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!engage.pko.dec.com!nntpd.lkg.dec.com!nntpd2.cxo.dec.com!nabeth!alan
  3. From: alan@nabeth.enet.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
  4. Subject: Re: Three swap partitions on Ultrix 4.3?
  5. Message-ID: <1993Jan22.041848.7424@nntpd2.cxo.dec.com>
  6. Lines: 93
  7. Sender: alan@nabeth (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
  8. Reply-To: alan@nabeth.enet.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
  9. Organization: Digital Equipment Corporation
  10. References:  <19633.2b5f18fd@levels.unisa.edu.au>
  11. Date: Fri, 22 Jan 1993 04:18:48 GMT
  12.  
  13.  
  14. In article <19633.2b5f18fd@levels.unisa.edu.au>, ccbjs@levels.unisa.edu.au writes:
  15. >
  16. >Is it possible to configure an Ultrix 4.3 system to use 3 disks
  17. >for swap?   The documentation for swapon  sort of suggests it is.
  18. >We have found from experience that swapon  doesn't work unless
  19. >the kernal was configured to use it, eg two partitions:
  20.  
  21. As far as I know more than two is supported and works.  I'm not sure
  22. what the limit is.  I was able to pretty quickly configure a system
  23. with five for a reply to this.  Below is a cut and paste transcript
  24. of what I did.  The command "swapdev" is something I wrote ages ago
  25. to walk through the "_swdevt" data structure and put names to the
  26. device numbers.
  27.  
  28. >
  29. >When we added the 3rd partition to fstab it would boot OK, but strange
  30. >things happened:
  31. >  pstat -s returned
  32. >  -8k    (Thats minus!) for swap configured.
  33. >
  34.  
  35. The only thing intesting I saw as I added each swap device was that
  36. the amount missing got smaller and the amount "reserved" got larger.
  37. It looks like the space not turned on is reserved.
  38.  
  39. >  and top failed to execute.
  40.  
  41. It would be tacky if top only expected a limited number of devices.
  42.  
  43. It's also possible that one of the devices has a strange size and
  44. is causing problems.  You should be able to look at the kernel swap
  45. device table with dbx:
  46.  
  47. # dbx -k /vmunix /dev/mem
  48. (dbx) print swdevt[0]
  49. (dbx) print swdevt[...]
  50. (dbx) print swdevt[n-1]
  51.  
  52. Here's my transcript.
  53.  
  54. # swapdev
  55. /dev/ra0b:
  56.         Freed: 1
  57.         NBlks: 190464
  58. /dev/ra4b:
  59.         Freed: 1
  60.         NBlks: 190464
  61. /dev/ra8b:
  62.         Freed: 0
  63.         NBlks: 190464
  64. /dev/ra129b:
  65.         Freed: 0
  66.         NBlks: 190464
  67. /dev/ra60b:
  68.         Freed: 0
  69.         NBlks: 190464
  70.  
  71. # swapon /dev/ra8b
  72. # pstat -s
  73. 476158k swap configured
  74. 197909k reserved virtual address space
  75.         15k used (0k text, 0k smem)
  76.         285679k free, 0k wasted, 190464k missing
  77. avail: 8927*32k 15*1k
  78.  
  79. # swapon /dev/ra129b
  80. # pstat -s
  81. 476158k swap configured
  82. 102679k reserved virtual address space
  83.         15k used (0k text, 0k smem)
  84.         380911k free, 0k wasted, 95232k missing
  85. avail: 11903*32k 15*1k
  86.  
  87. # swapon /dev/ra60b
  88. # pstat -s
  89. 476158k swap configured
  90. 7449k reserved virtual address space
  91.         15k used (0k text, 0k smem)
  92.         476143k free, 0k wasted, 0k missing
  93. avail: 14879*32k 15*1k
  94.  
  95.  
  96. >
  97. >Thanks for your help, Bevin Steer, Unix Systems Manager,
  98. >------------                                                      ------------
  99. >ccbjs@levels.unisa.edu.au
  100. >Phone:  +61-8-302-3271                                           Fax: 302 3385
  101. >Computer Centre, University of South Australia, The Levels, SA 5095, Australia
  102. >
  103. --
  104. Alan Rollow                alan@nabeth.cxo.dec.com
  105.  
  106.