Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc nutzt nur maximal 30% cpu?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
aslocum
Apprentice
Apprentice


Joined: 28 May 2004
Posts: 217
Location: Germany, Frankfurt

PostPosted: Wed Aug 18, 2004 1:29 pm    Post subject: gcc nutzt nur maximal 30% cpu? Reply with quote

Hi,
bin grade xorg-cvs am kompilieren und mir ist (wieder mal) aufgefallen das gcc nur maximal etwa 30% der cpu nuzt.
Meistens sogar weniger, um 3-10% die meiste Zeit.
Nun gut...bei xorg wird autoamtisch auf -j2 runtergeschaltet (rechnet aber trotzdem nur mit cc1 laut top) aber der eine thread sollte doch mehr nutzen als 30%?
Da hat man nun einen 2.8Ghz P4 und rechnet auf P3 Niveu...wenn übrhaupt.
Irgendeine Idee woran das liegt, oder ist das normal?
Vielen Dank im vorraus!
Back to top
View user's profile Send private message
toskala
Advocate
Advocate


Joined: 14 Dec 2002
Posts: 2080
Location: hamburg, germany

PostPosted: Wed Aug 18, 2004 1:56 pm    Post subject: Reply with quote

ich glaube nicht, dass der gcc perm auf 30% rechnet, mit was misst du denn das?
_________________
adopt an unanswered post
erst denken, dann posten
Back to top
View user's profile Send private message
aslocum
Apprentice
Apprentice


Joined: 28 May 2004
Posts: 217
Location: Germany, Frankfurt

PostPosted: Wed Aug 18, 2004 2:04 pm    Post subject: Reply with quote

wiegesagt(geschrieben) laut "top" braucht der cc1 prozess (das ist ja der gcc) zwischen 3 und MAXIMAL 30% (meistens eher 10) Rechenleistung.
Back to top
View user's profile Send private message
toskala
Advocate
Advocate


Joined: 14 Dec 2002
Posts: 2080
Location: hamburg, germany

PostPosted: Wed Aug 18, 2004 2:07 pm    Post subject: Reply with quote

naja, das ist eigentlich ganz normal, du hast -j2, das macht bei den 2 cc prozessen die rennen sollten 60% cpu, dann gibts noch anderen schnodder der im hintergrund läuft, der verbrät ja auch noch was, etc.

noch dazu ist top jetzt nicht gerade der gradmesser für cpu-last, also du siehst ja meist nur in 3 sec abständen was passiert, kannst zwar auf 0.5 stellen oder so, aber das is immer noch nich wirklich toll.

ich würde mir da eher weniger sorgen machen.
_________________
adopt an unanswered post
erst denken, dann posten
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Wed Aug 18, 2004 2:14 pm    Post subject: Reply with quote

Ich glaub auch, daß der cc eher so _schnell_ ist, das das top mit seinen Berechnungsintervallen falsche Werte liefert.

AUSSER du hast Probleme mit deiner Festplatte. Dann kann es natürlich sein, daß der cc dauernd warten muss bis die files endlich auf disk sind.
Mit -pipe in den CFLAGS sollte das allerdings nicht auftreten, noch dazu müsste die Platterngeschwindigkeit gehörig im Ar^H^HKeller sein damit sie ernsthaft zum Flaschenhals wird.

Was is denn so dein loadavg?
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
toskala
Advocate
Advocate


Joined: 14 Dec 2002
Posts: 2080
Location: hamburg, germany

PostPosted: Wed Aug 18, 2004 2:22 pm    Post subject: Reply with quote

sei doch einfach mal ein wenig verbose, was steckt in deiner karre genau drin, etc.
_________________
adopt an unanswered post
erst denken, dann posten
Back to top
View user's profile Send private message
aslocum
Apprentice
Apprentice


Joined: 28 May 2004
Posts: 217
Location: Germany, Frankfurt

PostPosted: Wed Aug 18, 2004 2:29 pm    Post subject: Reply with quote

wenn nicht mit top.. womit könnte man der Sache den noch auf den grund gehen?

load average: 1.45, 1.47, 1.14

system ist ein p4 2.8ghz
1gb RD:RAM 1066
intel850 chipsatz


P.S. mit top -d 0.5 zeigt er schon eher etwas zufriedenstellendes an: bis zu 90% aber stark schwankend rauf/runter. womit könnte man noch die gcc leistung überwachen?
Back to top
View user's profile Send private message
toskala
Advocate
Advocate


Joined: 14 Dec 2002
Posts: 2080
Location: hamburg, germany

PostPosted: Wed Aug 18, 2004 2:51 pm    Post subject: Reply with quote

du kannst nich so eine präzise leistungsüberwachung haben, als dein prozessor die einzelnen cycles abarbeitet.

nimm einfach hin, dass deine karre gut rechnet, wenn deine load 1 oder > 1 ist :)

glaub uns das mal ;)
_________________
adopt an unanswered post
erst denken, dann posten
Back to top
View user's profile Send private message
aslocum
Apprentice
Apprentice


Joined: 28 May 2004
Posts: 217
Location: Germany, Frankfurt

PostPosted: Wed Aug 18, 2004 3:00 pm    Post subject: Reply with quote

ok ;)

danke !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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