jcd@spock.att.com (Jack Dixon) (04/08/91)
I have a dim memory of a discussion concerning increasing the size of the swap space partition, but I don't think I ever saw a posted solution. I've checked the FAQs and the osu-archives, but didn't see the method there. Could someone explain the way to do this? I just installed the wd2010, P5.1, and the large Priam drive from Augustine Cano's group buy and figured that I may as well add a few more meg to the swap partition now while it's not much trouble. Thanks. -- -- Jack Dixon, AT&T Network Systems { ...!att!vogon!jcd, jcd@vogon.att.com }
ostroff@Oswego.EDU (Boyd Ostroff) (04/09/91)
In article <1991Apr8.081311.18416@cbnewse.att.com> jcd@spock.att.com (Jack Dixon) writes: >I have a dim memory of a discussion concerning increasing the size of the swap >space partition, but I don't think I ever saw a posted solution. Perhaps the new, improved utility disk lets you do this - don't know since I've never bothered to get a copy. You can certainly do it "by hand", though the same way you create any other disk partitions you need. Take a look at the manual page for iv. Note, however that iv -i, which is supposed to format the disk and perform a surface test does not work. You will have to format your drive using the utility disk (disk 1 of the foundation set). Unless you think you need to reformat the drive, though you can skip that step. I don't have the manual here, but I just re-partitioned my drive last weekend, so I think I can outline the procedure. Find the iv description table for your hard disk in /usr/lib/iv. The default will have 3 partitions: 0 - loader 1 - swap 2 - / Note that the iv description contains the number of the first logical block of each partition (read the man page for details). To make a bigger swap partition, just increase the address for the start of partition #2. If you want to make any additional partitions, just add them to the table also. WARNING: unless you're using 3.51m, you can only mount 3 filesystems in addition to / (including floppies). Once you're sure you have this right (and have backed up everything :-), make a floppy filesystem and boot disk (as per the FAQ) - make sure you copy iv, your description file and anything else you might need (mkfs?) to the floppy. Boot off the floppy and use "iv -uv descriptionfile" to re-partition the drive. If you have created any new filesystems, you'll need to use mkfs to initialize them (not for the swap, though). >and figured that I may as well >add a few more meg to the swap partition now while it's not much trouble. That's how to do it, but I'm not sure if you really gain anything by doing it (unless you're swapping out LOTS of processes). Perhaps someone else can answer this one.....
n138ct@tamuts.tamu.edu (Brent Burton) (04/11/91)
speaking of swap space and the number of processes, how many processes total (ignore memory constraints) can a UPC handle? Try this program at home: (got from comp.unix.wizards for how to crash a unix system) main() { fork(); main(); } This program will doo-doo your system quite nicely. Mine didn't crash, but it took 10 minutes and numerous calls to 'killall' to zap this beast. Within 5 minutes over 8000 new processes were started. Wow! (It seemed once you killed one, a chain of hundreds would die.) My system (20M, 2MR, 3.51 at th~re time) started killing processes due to no swap space. +----------------------+--------------------------+ | Brent P. Burton | n138ct@tamuts.tamu.edu | | Texas A&M University | Computer Science/Physics | +----------------------+--------------------------+
vince@tc.fluke.COM (Craig Johnson) (04/16/91)
In article <1991Apr9.160921.11987@oswego.oswego.edu> ostroff@Oswego.EDU (Boyd Ostroff) writes: > Take a look at the manual page for iv. Note, however that iv -i, which is > supposed to format the disk and perform a surface test does not work. You > will have to format your drive using the utility disk (disk 1 of the > foundation set). Unless you think you need to reformat the drive, though > you can skip that step. Are you certain iv -i won't work? I recently used it to format the second hard drive on my system. But initially it doesn't like the descriptor it was told to use which came out of /usr/lib/iv. I had to change the 'type' field to "HD2" before it was happy. I may have changed the 'name' field also. Run iv -d to get a usable descriptor, then edit that to taste. Craig V. Johnson ...!fluke!vince John Fluke Mfg. Co. or Everett, WA vince@tc.fluke.com