View previous topic :: View next topic |
Author |
Message |
mek42 n00b
Joined: 18 Feb 2015 Posts: 12
|
Posted: Fri Feb 20, 2015 2:21 am Post subject: prospective new user / compiler choice |
|
|
I have ordered parts for a new system. Have just about decided to give Gentoo a spin. Doing some pre-reading had shown me how little I know.
One question I have is whether people have used something other than gcc to compile their system. Would an Opteron madhine benefit from using the AMD compiler to make the system? |
|
Back to top |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
Posted: Fri Feb 20, 2015 4:49 am Post subject: |
|
|
For modern hardware, it comes down to whether you NEED the absolute speed for intense mathimatical calculations that run days, weeks, months, or for normal desktop activities.
First, let me point out that most software is tested using gcc and the standard linker. So, if this is your first Gentoo install, stick with gcc, it will make life easier for you. You have a lot more to learn doing the install, configuring and maintaining your system. Besides, for normal desktop activities, it is unlikely that you will notice any speed difference. Getting an SSD instead of a regular HDD will make a far bigger speed improvement than a compiler will ever make.
Once you are comfortable with your system, you can install a different compiler alongside gcc and begin some testing. You will undoubtedly run into issues with compiling some applications with compilers other than gcc. _________________ Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch... |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Fri Feb 20, 2015 8:09 am Post subject: |
|
|
What dol-sen said; stick with gcc. |
|
Back to top |
|
|
Irre Guru
Joined: 09 Nov 2013 Posts: 434 Location: Stockholm
|
Posted: Fri Feb 20, 2015 8:52 am Post subject: |
|
|
I think clang (llvm.org) is a good choice. It is faster than gcc. FreeBSD prefer it to gcc. I think we should switch too. |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Fri Feb 20, 2015 8:59 am Post subject: |
|
|
Irre wrote: | I think clang (llvm.org) is a good choice. It is faster than gcc. FreeBSD prefer it to gcc. I think we should switch too. | faster maybe but how proven? Especially against the entire tree. _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2284 Location: Adendorf, Germany
|
Posted: Fri Feb 20, 2015 10:20 am Post subject: |
|
|
Naib wrote: | Irre wrote: | I think clang (llvm.org) is a good choice. It is faster than gcc. FreeBSD prefer it to gcc. I think we should switch too. | faster maybe but how proven? Especially against the entire tree. | Rumors say it is now slower. However, the performance of the binaries is (and was always) worse. So why reduce compile time if this affects overall system performance negatively? Phoronix is full of tests regarding clang versus gcc. (Example: GCC 4.9 vs. LLVM Clang 3.5, google for "Phoronix clang vs gcc" to find many more.) _________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
mek42 n00b
Joined: 18 Feb 2015 Posts: 12
|
Posted: Fri Feb 20, 2015 11:30 am Post subject: |
|
|
Ok, I'll stick with gcc for most things, maybe experiment with compilers for compute intensive applications - for my uses panoramic stitching (photography) comes to mind.
I'm going to have two 128 Gb SATA SSD drives and two 450 Gb SAS 15K near-line drives, each pair in RAID 1. I've started reading about howto partition between these two drives. It looks like SSD should get /boot and /, maybe separate out /usr and /opt on separate SSD partitions, using only 3/4 available space. Then on the 15K drive I'll have /home, /var, /tmp and swap. This is a desktop machine, but if I likeGentoo I'll also put it on laptop, so I think I'm going to make swap a little bigger than total RAM to configure hibernate.
If I have binaries in ~/bin would there be an advantage with making /usr/username directory and making ~/bin be a symbolic link to /usr/username?
Also, /etc is going to have lots of small text files. Should that go on the 15k drive as well? |
|
Back to top |
|
|
augustin Guru
Joined: 23 Feb 2015 Posts: 318
|
Posted: Mon Feb 23, 2015 9:58 pm Post subject: |
|
|
mek42 wrote: |
I'm going to have two 128 Gb SATA SSD drives and two 450 Gb SAS 15K near-line drives, each pair in RAID 1. |
Hi mek,
I'm also a very soon to be new user. I am preparing to build a new box in the next month or two. I am currently pondering what storage choice to make (spacious HDD vs rapid SSD vs SAS + RAID). I am very interested in your make up, quoted above. Can you share with us the reasoning that led you to such a choice? Had you considered other options?
Thanks and good luck on your new build!
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Mon Feb 23, 2015 10:31 pm Post subject: |
|
|
mek42,
/etc is a directory on /. Your boot sequence will die a horrible death if its elsewhere.
After / is mounted, /etc/fstab is read to find out what else to mount ... but it can't be read as /etc is no longer on /
There are other things too.
Will you really need /tmp on disk? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
mek42 n00b
Joined: 18 Feb 2015 Posts: 12
|
Posted: Wed Feb 25, 2015 2:48 pm Post subject: |
|
|
augustin wrote: | mek42 wrote: |
I'm going to have two 128 Gb SATA SSD drives and two 450 Gb SAS 15K near-line drives, each pair in RAID 1. |
Hi mek,
I'm also a very soon to be new user. I am preparing to build a new box in the next month or two. I am currently pondering what storage choice to make (spacious HDD vs rapid SSD vs SAS + RAID). I am very interested in your make up, quoted above. Can you share with us the reasoning that led you to such a choice? Had you considered other options?
Thanks and good luck on your new build!
|
To be honest, I purchased based on reading about consumer grade builds, not considering that I'm making, in effect, a server/workstation class machine. With what I now know about filesystems and partitioning I think things will have been easier for me if I'd just gotten 4 300 Gb 15krpm SAS drives to do a mirror of stripes. Oh well, this will force me to learn more.
They say an ssd drive is 2-3 times faster than a consumer grade 7200 rpm SATA hdd. A 15krpm SAS hdd should be just over twice as fast as the SATA comparison drive, so I don't know that the performance boost of ssd in my system is going to justify the time I'm spending figuring things out for install. At least it is a hobby machine and I will be walking away with a little bit more admin knowledge. |
|
Back to top |
|
|
mek42 n00b
Joined: 18 Feb 2015 Posts: 12
|
Posted: Wed Feb 25, 2015 2:50 pm Post subject: |
|
|
NeddySeagoon wrote: | mek42,
/etc is a directory on /. Your boot sequence will die a horrible death if its elsewhere.
After / is mounted, /etc/fstab is read to find out what else to mount ... but it can't be read as /etc is no longer on /
There are other things too.
Will you really need /tmp on disk? |
I didn't know that /tmp was by default in RAM, thank you.
As for which devices the various root directories are in, isn't that what the initramdisk is for? |
|
Back to top |
|
|
mrbassie l33t
Joined: 31 May 2013 Posts: 772 Location: over here
|
Posted: Wed Feb 25, 2015 5:18 pm Post subject: |
|
|
Irre wrote: | I think clang (llvm.org) is a good choice. It is faster than gcc. FreeBSD prefer it to gcc. I think we should switch too. |
They prefer anything that isn't GPL'd though tbf.
I'm sure I read the other day somewhere that while clang compiles more quickly the resultant binaries are slower. |
|
Back to top |
|
|
augustin Guru
Joined: 23 Feb 2015 Posts: 318
|
Posted: Wed Feb 25, 2015 5:38 pm Post subject: |
|
|
mek42 wrote: |
To be honest, I purchased based on reading about consumer grade builds, not considering that I'm making, in effect, a server/workstation class machine. With what I now know about filesystems and partitioning I think things will have been easier for me if I'd just gotten 4 300 Gb 15krpm SAS drives to do a mirror of stripes. Oh well, this will force me to learn more.
They say an ssd drive is 2-3 times faster than a consumer grade 7200 rpm SATA hdd. A 15krpm SAS hdd should be just over twice as fast as the SATA comparison drive, so I don't know that the performance boost of ssd in my system is going to justify the time I'm spending figuring things out for install. At least it is a hobby machine and I will be walking away with a little bit more admin knowledge. |
Interesting. Thanks for the feedback. I am still considering options for my own build. Best of luck with yours. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Wed Feb 25, 2015 7:30 pm Post subject: |
|
|
mek42,
/tmp can be in RAM but its not by default. Its no longer persistent, as its flushed by the init scripts.
mek42 wrote: | As for which devices the various root directories are in, isn't that what the initramdisk is for? |
Not really, no. The initramdisk is a fake root filesystem, used to house user space tools needed to be run before the real root filesystem is mounted.
Thats things like starting raid, lvm, decrypting roof.
I suppose your init script could mount root and /etc, just as it can mount root and /usr and anything else you fancy.
It would be unusual.
I'm not sure where you get your speed figures from for rotating rust. They are possibly correct for sustained sequential reads but thats not a real world use case.
You need to factor in track seek (track to track) and track latency (1/2 a rotation) times before you even get to start reading. For SSDs these times are between zero and negligible.
This is what gives SSDs their much higher real world speed increase over rotating rust. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|