Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Filesystems & Performance Partitioning
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Erlend
Guru
Guru


Joined: 26 Dec 2004
Posts: 493

PostPosted: Mon Mar 28, 2005 7:58 pm    Post subject: Filesystems & Performance Partitioning Reply with quote

I'm thinking of re-partitioning my gentoo system soon... basically because I only have two partitions: /boot and /.

I have 240GB of hard disk space, split fairly evenly between Windows and Linux (I don't know why though - I barely use Windows these days). My proposal for partitioning is:
Code:

Partition    Mount Point      Size     Filesystem
0              /mnt/windows  120GB   ntfs
1              /boot               50MB    ext2
2              swap               512MB  swap
3              /                     20GB    reiserfs
4              /home             lots       reiserfs
5              /var                7GB      ext2
6              /tmp               1GB      ext2
7              /usr                10GB     reiserfs

Firstly I want to ask if having this many partitions is excessive? I'm not really worried about wasting diskspace, but I know each partition will use some ram when it is mounted (I'm not sure how much), and I don't want to waste this.

Also, are my filesystem choices wise? I'm not sure about the ext2 for /var, but I am guessing it might speed things up (am I correct in saying that the stuff in /var isn't vital - i.e. journal isn't neccessary?).

I don't really see the advantage of having /usr on a separate partition, but lots of people seem to do it so I put it in there preliminarily.

Finally, I would consider using lvm2 for this set up. I have installed lvm2 before so I don't expect to get stuck doing it, but I'm not sure if it is worth it considering my partitions will be big enough to (hopefully) not require being resized. Will lvm2 slow down boot much?

Thanks,

Erlend
Back to top
View user's profile Send private message
Nard`
Apprentice
Apprentice


Joined: 23 Jan 2005
Posts: 250

PostPosted: Mon Mar 28, 2005 8:07 pm    Post subject: Reply with quote

A general rule of thumb is to place partitions you use more closer to the disc as it should be slightly faster, so you might want to rethink your layout, but apart from that a lot of things strike me:


boot and swap are fine.
for root i'd go for ext3 as data integrity is essential.
home should be a good size yes, yet again i'd go for ext3 for data integrity
var i'd say reiserfs and bear in mind things you compile get stored in /var/tmp/portage. Also, have you ever looked around /var? /var/db/pkg is stored there, so is /var/lib/portage (which contains your world file btw). /var is quite important.
/tmp should be reiserfs and you might want to consider making it larger, reiserfs is great for lots of small files.
/usr is fine, you might also consider putting /usr/portage on a seperate partition, but theres not too much point.

also, 120GB for windows is overkill by a lot, especially if you don't use it that much. I couldn't fill up 120gb on my desktop if i tried, i'd split up windows partition 1X20gb NTFS C: and another fat32 partition for sharing stuff beetween windows and linux. I'd opt for 20gb for that too, but maybye 40gb.

EDIT:

Oh, and if you don't know how to partition your disk then dont! That is, leave three space on it. Are you going to use 240gb? Come off it. Leave some free for expansion.
_________________
Programming is the process of putting bugs in.
Debugging is the process of attempting to take bugs out, doing an ugly hack, hitting your computer, then claiming insurance.
Back to top
View user's profile Send private message
Erlend
Guru
Guru


Joined: 26 Dec 2004
Posts: 493

PostPosted: Mon Mar 28, 2005 8:18 pm    Post subject: Reply with quote

Thanks for the reply...

I was trying to avoid mixing journal types, as I've heard it eats memory.

Quote:
also, 120GB for windows is overkill by a lot

Yeah, you're right. I've been thinking for a while. I only use windows on the odd occassion I want to play a computer game. Ideally I'd like it at the end of the disk where read speed is slower. Might use bootitng to slide it (I'll use partimage first though!).

I will leave some free space on the disk.

What do you think about lvm? And what justification is there for placing /usr on a separate partition, esp. considering partitions have a memory upkeep when mounted?

Thank you,

Erlend
Back to top
View user's profile Send private message
ninjaboy13
n00b
n00b


Joined: 25 Sep 2004
Posts: 47
Location: Huntington Beach, CA

PostPosted: Mon Mar 28, 2005 8:25 pm    Post subject: Reply with quote

I have two Gentoo desktops that I use, one at work and the other at home. My home PC also has a 250GB SATA hard drive.

I used reiserfs on all the partitions except for boot which I used ext2. I set it up like so:

Partition
1 /boot 100mb
2 swap 2048mb
3 / 20GB
5 /home 190GB
6 /usr 25GB
7 /var 13GB

I hope that helps.
Back to top
View user's profile Send private message
Nard`
Apprentice
Apprentice


Joined: 23 Jan 2005
Posts: 250

PostPosted: Mon Mar 28, 2005 8:59 pm    Post subject: Reply with quote

Erlend wrote:
Thanks for the reply...

I was trying to avoid mixing journal types, as I've heard it eats memory.

Quote:
also, 120GB for windows is overkill by a lot

Yeah, you're right. I've been thinking for a while. I only use windows on the odd occassion I want to play a computer game. Ideally I'd like it at the end of the disk where read speed is slower. Might use bootitng to slide it (I'll use partimage first though!).

I will leave some free space on the disk.

What do you think about lvm? And what justification is there for placing /usr on a separate partition, esp. considering partitions have a memory upkeep when mounted?

Thank you,

Erlend


LVM is useful if your never sure what size you need :P some of us (like me) just accept i've got way too much space anyway so it doesn't really matter.

putting /usr on a seperate partition is good as / is good practice as it (yet more) segregates / from unimportant data. you also might thing of using xfs for /usr as it's suited for large files.

all in all it's not really important however it's good to have as many partitions as possible. However, that's more for servers as it prevents a rogue application for bringing down your system and you can put things such as nodev,nosuid,noexec etc on certain partitions.
_________________
Programming is the process of putting bugs in.
Debugging is the process of attempting to take bugs out, doing an ugly hack, hitting your computer, then claiming insurance.
Back to top
View user's profile Send private message
Erlend
Guru
Guru


Joined: 26 Dec 2004
Posts: 493

PostPosted: Mon Mar 28, 2005 10:09 pm    Post subject: Reply with quote

Quote:
LVM is useful if your never sure what size you need Razz some of us (like me) just accept i've got way too much space anyway so it doesn't really matter.

There is no performance loss/gain with lvm to speak of then?

Quote:
using xfs for /usr as it's suited for large files.

I'm a little wary of mixing two journaled filesystems - I've heard it wastes memory.

I've heard a lot about -o notails with reiserfs. Why does this speed things up?

What would people recommend for /opt?

Thanks again,

Erlend
Back to top
View user's profile Send private message
Erlend
Guru
Guru


Joined: 26 Dec 2004
Posts: 493

PostPosted: Tue Mar 29, 2005 7:23 pm    Post subject: Reply with quote

Is it possible to use partimage to "move" a partition - i.e. I've just made an image of my windows partition, can I now repartition the drive restore the image at the end?

Thanks,

Erlend
Back to top
View user's profile Send private message
monark
n00b
n00b


Joined: 11 Jul 2003
Posts: 6
Location: UTC -8

PostPosted: Thu Mar 31, 2005 2:07 am    Post subject: Reply with quote

Erlend wrote:
Quote:
LVM is useful if your never sure what size you need Razz some of us (like me) just accept i've got way too much space anyway so it doesn't really matter.

There is no performance loss/gain with lvm to speak of then?

Quote:
using xfs for /usr as it's suited for large files.

I'm a little wary of mixing two journaled file systems - I've heard it wastes memory.


I've been using reiserfs for at least 2 years now. I use it on all file systems except ones I've
been using lately to play with reiser4. It's also what I use on my large data volumes encompassing
over 2TB with files ranging from GBs each to MANY measly text files in the sub KB range. I keep
seeing people cite stability as a reason for using ext2/3. IMHO reiserfs is stable, there's no
real NEED for ext2/3. I'm sure arguments can be made for XFS and JFS but again there
isn't any NEED.

Quote:
I've heard a lot about -o notails with reiserfs. Why does this speed things up?


notails has to do with tail packing and is the feature of reiserfs that makes it so efficient at
storing lots of tiny files. Unless things have changed it's also a required flag when your /boot
file system is reiserfs. As for performance I think the noatime flag has the most profound effect.
It merely tells the OS not to update a file's access time stamp every time something reads that file.

Quote:
What would people recommend for /opt?


For as many years as I've been administrating Unix boxen I've been linking /opt to /usr/opt.
Fundamentally they're different names for file systems with the same purpose.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Thu Mar 31, 2005 9:20 am    Post subject: Reply with quote

Please follow up to https://forums.gentoo.org/viewtopic-t-188770.html

Moved from Installing Gentoo.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum