public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: Duncan <1i5t5.duncan@cox.net>
To: gentoo-amd64@lists.gentoo.org
Subject: [gentoo-amd64]  Re: 2nd HDD for var, tmp, usr/portage, swap
Date: Fri, 20 Jul 2007 18:41:08 +0000 (UTC)	[thread overview]
Message-ID: <pan.2007.07.20.18.41.08@cox.net> (raw)
In-Reply-To: 200707201641.30655.e0026053@student.tuwien.ac.at

Bernhard Auzinger <e0026053@student.tuwien.ac.at> posted
200707201641.30655.e0026053@student.tuwien.ac.at, excerpted below, on 
Fri, 20 Jul 2007 16:41:30 +0200:

> as I have four hdd's in my computer, I was wondering if it does make
> sense to source out some partitions/directories to a second hdd.
> 
> At the moment I have separate partitions for /var, /tmp and /usr/portage
> (I feel portage is a lot faster since I've done this) on the same hdd.
> 
> My question is if it makes sence to move these partitions to another
> harddisk?

With four hard drives, particularly if they are near the same size (not 
an old 8 gig on the one end, and a new half terabyte on the other, with 
two in the middle), your best performance is likely to be in RAID.  Here, 
I have four drives in RAID, using the kernel's own md RAID drivers, with 
RAID-1 for /boot, RAID-6 for my main system, and RAID-0 for stuff like 
/usr/portage, /usr/src, my ccache dir, and /tmp (altho with 8 gig memory, 
I actually have /tmp on a memory based tmpfs).  Swap is also setup as 
effectively RAID-0.

Note that RAID using both master and slave on IDE/PATA isn't all that 
efficient, however.  Here, my hard drives are all SATA, tho I'm still 
using PATA CD/DVD drives (but only one on each channel master, not master 
and slave).  Of course, SCSI is its own discussion.

If your drives are different size but all say 80 gig or better, you could 
still do a RAID-0 for speed and put /tmp, swap and the like on that (you 
don't want to put anything important on RAID-0, since if one drives dies, 
you lose everything on the RAID-0, but it's fast, so is good for temp 
stuff like swap and /tmp, and stuff you can download off the net again 
easily if necessary, like the gentoo/portage tree), especially if the 
drives aren't installed as IDE/PATA both master and slave.  If one or 
more of the drives are older and below about 80 gig, chances are it's 
slow enough it'd be bottlenecking the others anyway, so don't bother.

Alternatively, you want to make sure as much as possible, that stuff 
accessed at the same time is on different disks.  Generally, that's the 
same stuff as the candidates for RAID-0 above, swap, /tmp (and /var/tmp), 
ccache, and the gentoo/portage tree, particularly if you tend to do 
emerges in the background while continuing to work on other stuff.  The 
caveat for swap is that the newer and therefore larger drives tend to be 
faster, and it's them that generally have the main system on them already 
(unless you have your largest drive as a dedicated media drive as some 
people do).  It's often most convenient to try swap on the old/slow 
drive, but of course, that can be counter-productive.  Still, it 
depends.  It may still be faster on it, than having the new/fast drive 
trying to handle both system and swap at the same time, even if the swap 
drive /is/ your old/slow one.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

-- 
gentoo-amd64@gentoo.org mailing list



  parent reply	other threads:[~2007-07-20 18:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-20 14:41 [gentoo-amd64] 2nd HDD for var, tmp, usr/portage, swap Bernhard Auzinger
2007-07-20 15:13 ` Bob Sanders
2007-07-20 17:10   ` Beso
2007-07-20 17:31 ` Richard Freeman
2007-07-20 17:40   ` Richard Freeman
2007-07-20 18:31     ` Bernhard Auzinger
2007-07-20 18:35     ` Neil Bothwick
2007-07-20 19:37       ` Richard Freeman
2007-07-20 19:49         ` Neil Bothwick
2007-07-23 13:53           ` Richard Freeman
2007-07-23 14:05             ` Neil Bothwick
2007-07-23 14:18               ` Richard Freeman
2007-07-23 14:55                 ` Neil Bothwick
2007-07-20 19:17     ` Marek Wróbel
2007-08-01 16:39   ` Bernhard Auzinger
2007-08-01 17:15     ` Richard Freeman
2007-07-20 18:41 ` Duncan [this message]
2007-07-20 18:47 ` Bernhard Auzinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=pan.2007.07.20.18.41.08@cox.net \
    --to=1i5t5.duncan@cox.net \
    --cc=gentoo-amd64@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox