Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
prospective new user / compiler choice
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
mek42
n00b
n00b


Joined: 18 Feb 2015
Posts: 12

PostPosted: Fri Feb 20, 2015 2:21 am    Post subject: prospective new user / compiler choice Reply with quote

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
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Fri Feb 20, 2015 4:49 am    Post subject: Reply with quote

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
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Fri Feb 20, 2015 8:09 am    Post subject: Reply with quote

What dol-sen said; stick with gcc.
Back to top
View user's profile Send private message
Irre
Guru
Guru


Joined: 09 Nov 2013
Posts: 434
Location: Stockholm

PostPosted: Fri Feb 20, 2015 8:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Fri Feb 20, 2015 8:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2284
Location: Adendorf, Germany

PostPosted: Fri Feb 20, 2015 10:20 am    Post subject: Reply with quote

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:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
mek42
n00b
n00b


Joined: 18 Feb 2015
Posts: 12

PostPosted: Fri Feb 20, 2015 11:30 am    Post subject: Reply with quote

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
View user's profile Send private message
augustin
Guru
Guru


Joined: 23 Feb 2015
Posts: 318

PostPosted: Mon Feb 23, 2015 9:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Mon Feb 23, 2015 10:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
mek42
n00b
n00b


Joined: 18 Feb 2015
Posts: 12

PostPosted: Wed Feb 25, 2015 2:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
mek42
n00b
n00b


Joined: 18 Feb 2015
Posts: 12

PostPosted: Wed Feb 25, 2015 2:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 772
Location: over here

PostPosted: Wed Feb 25, 2015 5:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
augustin
Guru
Guru


Joined: 23 Feb 2015
Posts: 318

PostPosted: Wed Feb 25, 2015 5:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54234
Location: 56N 3W

PostPosted: Wed Feb 25, 2015 7:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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