Prev: always create the locations that need frequent I/O /home, swapon the outer tracks ?
Next: Am I doing this Grub2 upgrade correctly in my old Debian box?
From: Jean-David Beyer on 17 Jul 2010 09:59 Aragorn wrote: > On Saturday 17 July 2010 12:38 in comp.os.linux.setup, somebody > identifying as annalissa wrote... > >> Hi all, >> >> The following is what i have read in a magazine named "linux for >> you" , To what extent this is true ? >> >> The general rule is that you should always create the locations that >> need frequent I/O -/home, swap on the outer tracks , the easiest way >> to achieve this is to create these partitions first when partitioning >> your hard disk ? >> [snip] > > While the above is true, I don't think that there would be a significant > performance impact if you happen to have the filesystems with the most > frequent I/O closer to the spindle. It will be measurable via > benchmarks, yes, but whether you will actually notice it as a user is > something I tend to question. ;-) > > There are also a few other considerations if you want to take that > article serious, i.e. if your system has a lot of RAM, then you will > most likely not be using swap at all, or only under very rare > circumstances. True for me. 8 GBytes RAM, 636 KBytes on swap after running 24/7 for almost 10 days. [snip] > > So, all things considered, I would take the advice from that article > with a grain of salt. Yes, it is good advice, but there are more > things to consider, as I have elaborated upon in the above > paragraphs. ;-) > > That said, here's how I have organized things on this machine here... > > Filesystem Size Used Avail Use% Mounted on > /dev/hda2 393M 179M 214M 46% / > /dev/hda1 197M 38M 159M 20% /boot > /dev/hda3 9.8G 2.5G 7.3G 26% /usr > /dev/hda6 746M 33M 714M 5% /opt > /dev/hda7 2.0G 359M 1.6G 18% /var > /dev/hda8 298M 33M 266M 11% /usr/local > /dev/hda9 79G 2.4G 77G 4% /home > /dev/hda10 21G 3.2G 18G 16% /srv > none 1014M 52K 1014M 1% /tmp > > The swap partition is "/dev/hda5", and it barely gets used. This is a > 32-bit PCLinuxOS installation on a system with 2 GB of RAM, and as you > can see, I have "/usr" pretty close up front, and "/home" still more to > the rear, but this is a 120 GB hard disk and "/home" is by far the > largest of the partitions. I have "/srv" last, but it only contains > static data on this system - i.e. multimedia files which should be > accessible to all user accounts - and it doesn't get used much. I also > have "/tmp" on a tmpfs, so its contents live in RAM only, which is > faster than any disk. > I agree. My file system is like this: /dev/sda1 101086 22701 73166 24% /boot /dev/sda2 16253956 3933720 11481244 26% /usr /dev/sda3 4061572 395456 3456468 11% / /dev/sda5 12192608 9018028 2545236 78% /home /dev/sda6 8123168 150392 7553484 2% /tmp /dev/sda7 4061540 187192 3664704 5% /usr/local /dev/sda8 4061540 1662772 2189124 44% /srv/dbms/dataA /dev/sdb1 16253924 1830436 14255692 12% /home/boinc /dev/sdb2 6092388 1498700 4279216 26% /opt /dev/sdb3 4061572 142136 3709788 4% /usr/src /dev/sdb5 16253924 1750848 13664084 12% /homeB /dev/sdb6 12192608 2282204 9281060 20% /var /dev/sdb7 4061540 78712 3773184 3% /srv/dbms/dataB /dev/sdc1 17390224 249696 16242900 2% /srv/dbms/dataC /dev/sdd1 17390224 421604 16070992 3% /srv/dbms/dataD /dev/sde1 17390224 543292 15949304 4% /srv/dbms/dataE /dev/sdf1 17390224 424856 16067740 3% /srv/dbms/dataF with swaps on /dev/sda9 and /dev/sdb8 The database is nearly empty at the moment. -- .~. Jean-David Beyer Registered Linux User 85642. /V\ PGP-Key: 9A2FC99A Registered Machine 241939. /( )\ Shrewsbury, New Jersey http://counter.li.org ^^-^^ 09:50:01 up 9 days, 18:36, 4 users, load average: 4.95, 4.70, 4.68 |