View previous topic :: View next topic |
Author |
Message |
yzg Guru
Joined: 18 Jun 2005 Posts: 493
|
Posted: Wed Jun 26, 2013 2:01 am Post subject: Gentoo partition layout |
|
|
Is there a technical reason for having the standard Gentoo partition layout as
Code: |
/dev/sda1 boot
/dev/sda2 swap
/dev/sda3 root
|
instead of
Code: |
/dev/sda1 boot
/dev/sda2 root
/dev/sda3 swap
|
or it was just an ad hoc decision? |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Jun 26, 2013 3:25 am Post subject: |
|
|
While your root partition is less than almost completely full, swap space at the beginning of the physical disk will be closer to most of your files, thus minimizing seek times, so not arbitrary.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
yzg Guru
Joined: 18 Jun 2005 Posts: 493
|
Posted: Wed Jun 26, 2013 11:33 pm Post subject: |
|
|
Hi John
Thank you for pointing this reason.
But if the root partition is greater than 50% full, then the [boot,root,swap] order will be better.
I'm thinking of a fast recovery scheme where the root partition is small and I will do an image for the disk to the end of the root partition. Having the swap partition at the end will make the image smaller and faster. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21489
|
Posted: Thu Jun 27, 2013 1:02 am Post subject: |
|
|
If your backup is based on the contents of the filesystem, its size will not be affected by where you place the partitions on the underlying drive. If your backup is based on a dump of the drive, then you are copying free space. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Thu Jun 27, 2013 2:40 am Post subject: |
|
|
yzg wrote: | But if the root partition is greater than 50% full, then the [boot,root,swap] order will be better. | Well, no. Only the files after the 50% mark will be closer to a trailing swap partition. Like I said, until the drive is completely full, most files will be closer to a leading swap partition.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
|