From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d58b48806bfecc6b X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-10-14 15:22:01 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!decwrl!pa.dec.com!nntpd2.cxo.dec.com!nabeth.cxo.dec.com!alan From: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.) Subject: Re: Where to put swap? Message-ID: <1993Oct14.214501.10491@nntpd2.cxo.dec.com> Sender: usenet@nntpd2.cxo.dec.com (USENET News System) Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.) Organization: Digital Equipment Corporation References: Date: Thu, 14 Oct 1993 21:45:01 GMT In article , Jon Allen Boone writes: >lawley@kurango.cit.gu.edu.au (michael lawley) writes: >> In the "Guide to Installing DEC OSF/1" there is a line which says DEC >> recommends that the swap partition be on the same disk as the root >> partition. This seems very strange to me - can anyone tell me why DEC would >> recommend this course of action? > > What is strange about it? This is the "normal" (ie, default) way of >installing unices. Root partitions usually go on the A partition, >with swap on the B partition. You could make your primary swap space >be on another disk, but that invites trouble. > The curious question is why it invites trouble? If you remove /sbin/swapdefault you don't have any page/swap space anyway and you could probably run this way for a short time. You should be able to use nearly any device. There might be that expectation that the root file system device is more "available" than others and thus it is a safer place for the page/swap. I doubt this is the sort of thing people consider in depth when chosing a root file system device. You want to spread your page/swap space around for performance if you might actually have to page. As you add more devices you increase the likelyhood that the "array" will fail by having one of the devices fail, so do you don't want to spread the data over too many devices. Some historical possibilities: 1. The primary page/swap space is often the crash dump space. 2. On ULTRIX systems using VMB to boot, it could only write a crash dump to the boot disk (*). This made it desirable for the dump space to be on the same disk as the root file system. 3. If you had the primary swap space on a different device than the dump device, config would complain. (*) It may have been less restrictive; same controller as root disk for example. -- Alan Rollow alan@nabeth.cxo.dec.com