Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CFlags for Intel Atom?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pyther
n00b
n00b


Joined: 12 Jun 2008
Posts: 4

PostPosted: Thu Jun 12, 2008 11:15 pm    Post subject: CFlags for Intel Atom? Reply with quote

Hello.
I was wondering if anyone knows what CFlags I might want to use with the Intel Atom Processor. I just purchased the Intel D945GCLF which has an Atom cpu.

Thanks!

EDIT: Fixed Type on Model


Last edited by pyther on Fri Jun 13, 2008 12:05 am; edited 1 time in total
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Thu Jun 12, 2008 11:50 pm    Post subject: Reply with quote

this?

no atom in there.... atom is a processor for handhelds - and AFAIK, it's not available anywhere yet.

What kind of processor do you really have (basically, on a livecd, cat /proc/cpuinfo)?

poly-p man
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
pyther
n00b
n00b


Joined: 12 Jun 2008
Posts: 4

PostPosted: Fri Jun 13, 2008 12:06 am    Post subject: Reply with quote

My bad I made a huge type the motherboard is Intel D945GCLF and it does have a atom processor.
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Fri Jun 13, 2008 12:24 am    Post subject: Reply with quote

can you give the contents of /proc/cpuinfo?

my guess is something like nocona, but I'm not sure what technologies this supports...

poly-p man
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
pyther
n00b
n00b


Joined: 12 Jun 2008
Posts: 4

PostPosted: Fri Jun 13, 2008 12:48 am    Post subject: Reply with quote

As I just ordered the hardware today I probably won't have the system until Tuesday or Wednesday of next week so I can't get the contents until then. Sorry
Back to top
View user's profile Send private message
ergobill
n00b
n00b


Joined: 14 Jun 2008
Posts: 1
Location: Media, PA

PostPosted: Sat Jun 14, 2008 3:44 am    Post subject: Intel Atom Reply with quote

Pyther is correct this is a new product from Intel going after VIA market. Very Low power mb with 945 chipset in mini-itx form. Ubuntu (canonical) is working on "netbook" version to take advantage of / optimize for the atom processor.
Back to top
View user's profile Send private message
Hun73r
n00b
n00b


Joined: 28 Jun 2004
Posts: 49

PostPosted: Mon Jun 16, 2008 12:07 am    Post subject: Reply with quote

Its basic a celeron with HT so the celeron CFlags probaly work with it ant it out performance the c7 from via
Back to top
View user's profile Send private message
crazycat
l33t
l33t


Joined: 26 Aug 2003
Posts: 838
Location: Hamburg, Germany

PostPosted: Tue Jun 17, 2008 1:19 pm    Post subject: Reply with quote

Atom has as much in common with "celeron with ht" as a giraffe with a crocodile. The only thing in common is that they are both x86. Atom is in-order cpu. That means compiler optimizations will have much more influence on the speed of execution. Atom's performance is also pretty weak - cflags are more important for the in-order cpu. Here is a very good article about atom architecture.
Back to top
View user's profile Send private message
tab21
n00b
n00b


Joined: 01 Aug 2006
Posts: 28

PostPosted: Wed Jun 18, 2008 4:30 am    Post subject: Reply with quote

I have the same board and used the following in my make.conf to install 64 bit Gentoo:

Code:

CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
CHOST="x86_64-pc-linux-gnu"
ALSA_CARDS="intel_hda"
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="i810"


I'm sure you can use -march=prescott and a 32bit stage3 tarball to get up and running as well.
Back to top
View user's profile Send private message
pyther
n00b
n00b


Joined: 12 Jun 2008
Posts: 4

PostPosted: Fri Jun 20, 2008 2:40 am    Post subject: Reply with quote

tab21: thanks, I'll try those

My /proc/cpuinfo

Code:

processor   : 0
vendor_id   : GenuineIntel
cpu family   : 6
model      : 28
model name   :          Intel(R) Atom(TM) CPU  230   @ 1.60GHz
stepping   : 2
cpu MHz      : 1596.084
cache size   : 512 KB
physical id   : 0
siblings   : 2
core id      : 0
cpu cores   : 1
fpu      : yes
fpu_exception   : yes
cpuid level   : 10
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl tm2 ssse3 cx16 xtpr lahf_lm
bogomips   : 3196.02
clflush size   : 64
cache_alignment   : 64
address sizes   : 32 bits physical, 48 bits virtual
power management:

processor   : 1
vendor_id   : GenuineIntel
cpu family   : 6
model      : 28
model name   :          Intel(R) Atom(TM) CPU  230   @ 1.60GHz
stepping   : 2
cpu MHz      : 1596.084
cache size   : 512 KB
physical id   : 0
siblings   : 2
core id      : 0
cpu cores   : 1
fpu      : yes
fpu_exception   : yes
cpuid level   : 10
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl tm2 ssse3 cx16 xtpr lahf_lm
bogomips   : 3193.10
clflush size   : 64
cache_alignment   : 64
address sizes   : 32 bits physical, 48 bits virtual
power management:
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Fri Jun 20, 2008 12:06 pm    Post subject: Reply with quote

Intel states that the Atom is ISA compliant with the Merom:

Code:
CFLAGS="-march=core2 -Os -fomit-frame-pointer -pipe"

But that's only if you're using GCC 4.3.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Fri Jun 20, 2008 2:25 pm    Post subject: Reply with quote

wswartzendruber wrote:
Intel states that the Atom is ISA compliant with the Merom:

Code:
CFLAGS="-march=core2 -Os -fomit-frame-pointer -pipe"

But that's only if you're using GCC 4.3.


correct....

however, if:

gcc < 4.2.0, 32-bit: prescott
gcc < 4.2.0, 64-bit: nocona
gcc >= 4.2.0: native


no kidding, I just found out about march=native....I'm switching to that now :D

poly-p man
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Jun 20, 2008 2:59 pm    Post subject: Reply with quote

poly_poly-man wrote:
wswartzendruber wrote:
Intel states that the Atom is ISA compliant with the Merom:

Code:
CFLAGS="-march=core2 -Os -fomit-frame-pointer -pipe"

But that's only if you're using GCC 4.3.


correct....

however, if:

gcc < 4.2.0, 32-bit: prescott
gcc < 4.2.0, 64-bit: nocona
gcc >= 4.2.0: native


no kidding, I just found out about march=native....I'm switching to that now :D

poly-p man


++

use -march=native, don't use -march=core2 since it breaks several apps like xorg-server, ... (at least for me + hardened)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Sat Jun 21, 2008 5:16 am    Post subject: Reply with quote

kernelOfTruth wrote:
poly_poly-man wrote:
wswartzendruber wrote:
Intel states that the Atom is ISA compliant with the Merom:

Code:
CFLAGS="-march=core2 -Os -fomit-frame-pointer -pipe"

But that's only if you're using GCC 4.3.


correct....

however, if:

gcc < 4.2.0, 32-bit: prescott
gcc < 4.2.0, 64-bit: nocona
gcc >= 4.2.0: native


no kidding, I just found out about march=native....I'm switching to that now :D

poly-p man


++

use -march=native, don't use -march=core2 since it breaks several apps like xorg-server, ... (at least for me + hardened)

Is not march=native just going to determine that you're running a Core 2? And I've never had any problems with march=core2, but I'm not running hardened.
_________________
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Back to top
View user's profile Send private message
Jinidog
Guru
Guru


Joined: 26 Nov 2003
Posts: 593
Location: Berlin

PostPosted: Sun Jun 29, 2008 5:12 pm    Post subject: Reply with quote

Well, -march=core2 should work, but is there any evidence that it is the fastest option?
The atom is a in-order CPU. Every CPU since the Pentium-Pro was a Out-Of-Order CPU.

Somebody could do some benchmarks. I would try -march=i586 together mit the -msse -msse2 -msse3 flags.
_________________
Just unused Microsoft-Software is good Microsoft-Software
Back to top
View user's profile Send private message
m0w1337
n00b
n00b


Joined: 09 Jul 2008
Posts: 1

PostPosted: Wed Jul 09, 2008 8:40 pm    Post subject: Reply with quote

Hi!

I just bought the same mainboard with the Atom on it and wondered, if you already found the right settings for this CPU to run good.

I would be very happy about an answer, because this is going to be my first attempt to install a gentoo linux, so i need every hint i can get ;)

Thanks
m0
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Thu Jul 10, 2008 6:24 pm    Post subject: Reply with quote

At the moment, there is no optimisation support for the Atom.

It's a bit tricky, but I'd guess that Pentium MMX with all the SSE flags would be the most efficient setup at the moment...
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1917

PostPosted: Sat Aug 30, 2008 1:39 pm    Post subject: Reply with quote

Pyther, how did this work for you? Everything up and running? Are you satisfied?
Which cflags did you use? I' ll get my Intel D945GCLF on tuesday and am looking for some practical tipps/experiences.
If i get it right it would be possible to use amd64 with this machine?
Also -march=native (GCC-4.3) works great here with a Core2Quad Q9450, i would really like to use it with the atom too. Which brings me to my main question:
I' d like to precompile the system with my Quad for obvious reasons. What exactly would happen with -march=native? It would be optimised for the Quad then, right?
Is precompiling for another machine even possible with that flag?
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
SDNick484
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 231

PostPosted: Thu Sep 11, 2008 1:25 am    Post subject: Reply with quote

Martux wrote:
Pyther, how did this work for you? Everything up and running? Are you satisfied?
Which cflags did you use? I' ll get my Intel D945GCLF on tuesday and am looking for some practical tipps/experiences.
If i get it right it would be possible to use amd64 with this machine?
Also -march=native (GCC-4.3) works great here with a Core2Quad Q9450, i would really like to use it with the atom too. Which brings me to my main question:
I' d like to precompile the system with my Quad for obvious reasons. What exactly would happen with -march=native? It would be optimised for the Quad then, right?
Is precompiling for another machine even possible with that flag?


Wow, oddly enough I'm in the exact same boat. I just picked up an Intel C2Q 9300 from Fry's over the weekend ($180, sweet!), and my Acer One with an Atom N270 arrived yesterday. I got rid of it's base OS (Linpus, a Fedora 8 off shoot), and through on Xubuntu, but I'm very tempted to go with Gentoo (which I plan to run on the quad & already run on my gracefully aging laptop).

Anyways, if I get a chance to try it, I'll post back.

EDIT:
Went to look at the online documentation for GCC and noticed:
<<<<<
native - This selects the CPU to tune for at compilation time by determining the processor type of the compiling machine. Using -mtune=native will produce code optimized for the local machine under the constraints of the selected instruction set. Using -march=native will enable all instruction subsets supported by the local machine (hence the result might not run on different machines).
...
prescott - Improved version of Intel Pentium4 CPU with MMX, SSE, SSE2 and SSE3 instruction set support.
...
core2 - Intel Core2 CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3 and SSSE3 instruction set support.
>>>>>

I will probably give native a try, but my hopes are lower. It looks like I may need prescott for builds to work on both systems.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Sep 11, 2008 2:04 am    Post subject: Reply with quote

poly_poly-man wrote:

however, if:

gcc < 4.2.0, 32-bit: prescott
gcc < 4.2.0, 64-bit: nocona
gcc >= 4.2.0: native

no kidding, I just found out about march=native....I'm switching to that now :D

poly-p man


Hi Poly, if I use native with my T7200

Code:

gentootux ~ # cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz
stepping        : 6
cpu MHz         : 2000.000
cache size      : 4096 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips        : 3993.26
clflush size    : 64
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz
stepping        : 6
cpu MHz         : 2000.000
cache size      : 4096 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
apicid          : 1
initial apicid  : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips        : 3988.61
clflush size    : 64
power management:

gentootux ~ #                         


I will endup with a 32 bits or a 64 bits installation ?
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Thu Sep 11, 2008 2:50 am    Post subject: Reply with quote

d2_racing wrote:
I will endup with a 32 bits or a 64 bits installation ?

It depends on your chost, not your cflags.
_________________
“And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Sep 11, 2008 11:16 am    Post subject: Reply with quote

AM088 wrote:
d2_racing wrote:
I will endup with a 32 bits or a 64 bits installation ?

It depends on your chost, not your cflags.


Good,that's what I tought :P
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1917

PostPosted: Thu Sep 11, 2008 2:43 pm    Post subject: Reply with quote

SDNick484, thanks for your answer.
In the meantime, i' ve done the following:
I just copied over my "-march=native" compiled system from the C2Q, 64Bit, with adjusted kernel of course (hyperthreading and the likes) and it booted just fine.
Then i thought the atom would be powerful enough to re-compile itself using "native".
GCC alone took over 8h compile time... :roll: (that's about the time the C2Q take compiling the whole system) So for now i just use it that way and cannot see any performance issues. It does what it should do: play music and videos and serve the net.
No need for more tuning. The only thing is i can't get GLX-extensions to work with the xf86-video-i810 driver whatsoever, but that will soon be another thread.
Thanks again for bringing light into the "mysterious" march=native thing.
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Sep 12, 2008 2:38 am    Post subject: Reply with quote

Martux wrote:
GCC alone took over 8h compile time... :roll: (that's about the time the C2Q take compiling the whole system) So for now i just use it that way and cannot see any performance issues. It e thing.


It's insane, 8h, maybe GCC is not optimised for this CPU.
Back to top
View user's profile Send private message
int2str
Guru
Guru


Joined: 29 Sep 2003
Posts: 362

PostPosted: Fri Sep 12, 2008 11:31 pm    Post subject: Reply with quote

Martux wrote:
GCC alone took over 8h compile time...


That's not right at all...

I just did it again to see how mine compares. Command was "time emerge gcc". Result:

* Messages for package sys-devel/gcc-4.1.2:
...
real 82m24.540s
user 75m56.971s
sys 6m51.811s

1h, 20mins... that's a long shot from your 8 hours.
_________________
Adpot an unanswered post today!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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