Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How my partitioning map should look like:
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Terrax
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2005
Posts: 114

PostPosted: Sun Jan 29, 2006 3:46 pm    Post subject: How my partitioning map should look like: Reply with quote

Right now I have my whole linux OS on one single partition (reiserFS).
But my emerge --sync is now very slow. So I thought about repartition my whole hd.

I thought about partitions like:

/dev/mapper/nvidia_ggffjaja2 ----- / ----- ? mb ----- ? filesystem
/dev/mapper/nvidia_ggffjaja3 ----- /var ----- ? mb ----- ext2 without journaling
/dev/mapper/nvidia_ggffjaja4 ----- /home ----- ? mb ----- ? filesystem
/dev/mapper/nvidia_ggffjaja5 ----- /usr/portage ----- 1000 mb ----- ext2 without journaling
/dev/mapper/nvidia_ggffjaja6 ----- /usr/portage/distfiles ----- ? mb ----- ? filesystem
/dev/mapper/nvidia_ggffjaja7 ----- /tmp ----- ? mb -----ext2 without journaling
/dev/mapper/nvidia_ggffjaja8 ----- /var/tmp ----- ? mb ----- ext2 without journaling
/dev/mapper/nvidia_ggffjaja9 ----- /usr/src ----- ? mb ----- ext2 without journaling

As you can see, I choose ext2 for the "less" important filesystems, without journaling. Which make it faster.
See:
https://forums.gentoo.org/viewtopic-t-422984-highlight-defragment+ext3.html

But what about the other partitions? I thought about a tuned up ext3?
And how much space should I give the different partitions? I have 220 gb on the raid. (100 gb on the first partition, which I will keep clean, if windows should come in mind. I hope not)

Does the partition map seem sane?

Thx for your help :)[/glep]
Back to top
View user's profile Send private message
Sgeorg
Apprentice
Apprentice


Joined: 01 Apr 2003
Posts: 152

PostPosted: Sun Jan 29, 2006 4:20 pm    Post subject: Reply with quote

Hi!

I don't see how partitioning (even a raid) could result in faster speed, since you only have X hds.

1) In my opinion reiserfs is one of the "cooles" fs with good performance.
2) use LVM if you want to partition up your system so you are most flexible in terms of resizing.
3) use tmpfs for /tmp --> cleans it on reboot and is realy fast
4) Partitioning a disk (single or raid) introduces fragmentation to the data which results in less perfomance
since the head has to move between partitions (not so bad on raid as on a single hd, but still).

greeting
georg
Back to top
View user's profile Send private message
Terrax
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2005
Posts: 114

PostPosted: Sun Jan 29, 2006 4:27 pm    Post subject: Reply with quote

But I want to partitioning to prevent fragmentation. I you place portage in a partition for itself, it will only fragment that partition, and will not effekt the others.
Back to top
View user's profile Send private message
Sgeorg
Apprentice
Apprentice


Joined: 01 Apr 2003
Posts: 152

PostPosted: Sun Jan 29, 2006 4:52 pm    Post subject: Reply with quote

ok, I see your point!

In this aspect you are right! - you still have fragmentation but it's only localy within the same data.

but give lvm a try, so you are more flexible

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


Joined: 23 May 2002
Posts: 589

PostPosted: Sun Jan 29, 2006 5:38 pm    Post subject: Reply with quote

Have you considered trying reiser4? I'm using it on my laptop and it's worked flawlessly for me. It's very fast as well. I'm using 4 partitions, one for /boot, one for swap, one for / and one for /home. If I was to repartition my system, I think I would consider creating one for /usr/portage as well. I don't think you'll gain much performance-wise from using that many partitions, if you do though please let me know. :)
Back to top
View user's profile Send private message
Terrax
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2005
Posts: 114

PostPosted: Sun Jan 29, 2006 6:45 pm    Post subject: Reply with quote

I will :)
Back to top
View user's profile Send private message
Terrax
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2005
Posts: 114

PostPosted: Sun Jan 29, 2006 7:57 pm    Post subject: Reply with quote

I am partitioning now.

But keep in mind, that maybe it will be just as fast as before. But in longer terms, it will be fastere, because you keep all the partitions, which is written and readed much too for them selves. = No fragmentation in all the other partitions.
Back to top
View user's profile Send private message
Aonoa
Guru
Guru


Joined: 23 May 2002
Posts: 589

PostPosted: Sun Jan 29, 2006 8:24 pm    Post subject: Reply with quote

That's true, I think I might boot into a LiveCD tomorrow and check how fragmented my partitions are. If they're bad I'm seriously considering re-partitioning my system. My system could have been slowly fragmented, so that I would not notice any loss in performance. However, my /home partition is definately the one I use the most. Next would be /usr and /usr/portage, so I might add one or two partitions for those if I change anything. We'll see. :)
Back to top
View user's profile Send private message
Terrax
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2005
Posts: 114

PostPosted: Mon Jan 30, 2006 11:41 am    Post subject: Reply with quote

Heion.

Don't forget your /tmp and /var (/var/tmp), which is written to very often by programs. Isolate them in a partition also, may decrease the fragmentation.

I just tried my newly defragmented / repartitioned system today. I must say WAU.

The portage on the /usr/portage partition with ext2 and inode 2048, and the distfiles on /usr/portage/distfiles partition with ext3 full journal. Its just running the emerge --sync very very fast!!! Even faster than a newly formated reiserfs (on a big single parititon).

It now takes 14 sek. to "updating portage cache". I would say its very fast. Maybe resierfs, would be faster in its own partition. But it will fragment faster.


Last edited by Terrax on Wed Feb 01, 2006 12:15 am; edited 2 times in total
Back to top
View user's profile Send private message
Aonoa
Guru
Guru


Joined: 23 May 2002
Posts: 589

PostPosted: Tue Jan 31, 2006 10:58 am    Post subject: Reply with quote

That's quite nice. :) It sounds so tempting that I'll begin thinking about making a backup of my laptop, that stage4 howto on this forum comes to mind. What sizes have you given your partitions? I don't want to make them too big, but certainly not too small either. :)
Back to top
View user's profile Send private message
Terrax
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2005
Posts: 114

PostPosted: Wed Feb 01, 2006 12:01 am    Post subject: Reply with quote

These are my partitions:

Filesystem Size Used Avail Use% Mounted on Type
/dev/mapper/nvidia_ggffjaja1 92G 129M 87G 1% /mnt/c-drev ext3
/dev/mapper/nvidia_ggffjaja8 92G 22G 66G 26% /usr ext3
/dev/mapper/nvidia_ggffjaja3 905M 561M 296M 66% /usr/portage ext2
/dev/mapper/nvidia_ggffjaja5 4.6G 4.3G 161M 97% /usr/portage/distfiles ext3
/dev/mapper/nvidia_ggffjaja6 4.6G 1.7G 2.7G 39% /var ext3
/dev/mapper/nvidia_ggffjaja7 1.9G 33M 1.8G 2% /tmp ext3
/dev/mapper/nvidia_ggffjaja9 97G 20G 73G 21% /home ext3

I actually made them this big. But I guess ext2 and 3 takes a lot of the space for directory info?:
/usr = 100 gb
/usr/portage = 1 gb
/usr/portage/distfiles = 5 gb
/var = 5 gb
/tmp = 2 gb
/home = 100 gb


If I could change something, I would move 5 gb from /home to /usr/portage/distfiles. I actually didn't know I had so many distfiles :) I must clean them up sometime.

Hope you can use the table :)

Can I delete all the distfiles, just like that? Will they just have to be downloaded again, if the come to use?


Last edited by Terrax on Wed Feb 01, 2006 12:12 am; edited 1 time in total
Back to top
View user's profile Send private message
Terrax
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2005
Posts: 114

PostPosted: Wed Feb 01, 2006 12:02 am    Post subject: Reply with quote

Damn. I made the table very nice and easy to read. But it doesnt seem this forum accept the "space" between words. Uhm hope its "readable" for you anyway. If not, Ill gladly send it to you by mail.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Wed Feb 01, 2006 1:28 am    Post subject: Reply with quote

If you want tables to look nice on the forums, put them inside a [code] block.
Back to top
View user's profile Send private message
Terrax
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2005
Posts: 114

PostPosted: Wed Feb 01, 2006 1:35 am    Post subject: Reply with quote

Ofcourse. Thx. Why didn't I though about that sooner :S
Back to top
View user's profile Send private message
Aonoa
Guru
Guru


Joined: 23 May 2002
Posts: 589

PostPosted: Wed Feb 01, 2006 8:06 am    Post subject: Reply with quote

It's readable, thanks. :) I'll do a similar setup of partitions, maybe with other filesystems. I've grown fond of reiser4, as long as I have many partitions the fragmentation should not be that bad. And I read something about using tmpfs on /tmp. Yes, you can just do a:

Code:
rm -rf /usr/portage/distfiles/*


It won't cause any harm, portage will just download whatever packages you emerge again.
Back to top
View user's profile Send private message
Terrax
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2005
Posts: 114

PostPosted: Wed Feb 01, 2006 9:30 am    Post subject: Reply with quote

Thx Ill do that then :)

By the way. When you format the /tmp partition. Do you just have to add tmpfs to fstab instead of ext3? Or do you also have to format the drive to tmpfs? I have read it also, but I didn't know, if I had to format the drive or just mount it with tmpfs type.
Back to top
View user's profile Send private message
Aonoa
Guru
Guru


Joined: 23 May 2002
Posts: 589

PostPosted: Wed Feb 01, 2006 10:56 am    Post subject: Reply with quote

Tmpfs does not exist on top of an underlying block device like a normal filesystem like ext3. It's similar to a ramdisk. This means that you can just mount it without formatting a partition for it.

Example:
Code:
mount tmpfs /mnt/tmpfs -t tmpfs

This gives you a new tmpfs filesystem mounted at /mnt/tmpfs.

The size of tmpfs is dynamic, it will increase and decrease as you add or delete files.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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