
Code: Select all
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"

And I have mounted /tmp on 1GB tmpfs, and /var/tmp on 10GB tmpfs. I will upgrade my RAM to 8GB soon, and the normal way for swap is RAM * 1.5, which is 12GB.desultory wrote:There are reasons to have relatively large quantities of swap space.poly_poly-man wrote:you have wayy too much swap - the general rule nowadays is to not go over 512MB... of course, if you have that much ram, why do you need swap anyway?
I have edited my flags according to what AMD is recommending for PhenomII. (But I am not brave enough to use *everything* they recommend, though) :d2_racing wrote:Also, for my Intel Quad Core Q9550, I use this :
Code: Select all
CFLAGS="-O2 -march=native -pipe" CHOST="x86_64-pc-linux-gnu" CXXFLAGS="${CFLAGS}" MAKEOPTS="-j5"
Code: Select all
# grep -i FLAG /etc/make.conf
## C-/LD-Flags Update for new Phenom II System, according to "Compiler Usage Guidelines for 64-Bit OS on AMD64"
CFLAGS="-march=amdfam10 -O2 -pipe -mno-push-args -mcx16 -msahf -funroll-loops -ftree-vectorize"
LDFLAGS="-s -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now -Wl,--hash-style=gnu"
CXXFLAGS="${CFLAGS}"
Some quads have sse4.1d2_racing wrote:Hi, are you sure that your Quad Core is compatible with -msse4.
I thought that it was for the CoreI7 :
http://en.gentoo-wiki.com/wiki/Safe_Cfl ... 2B.2FExxxx
Also, for my Intel Quad Core Q9550, I use this :
Code: Select all
CFLAGS="-O2 -march=native -pipe" CHOST="x86_64-pc-linux-gnu" CXXFLAGS="${CFLAGS}" MAKEOPTS="-j5"



Code: Select all
vendor_id : AuthenticAMD
cpu family : 16
model : 2
model name : AMD Phenom(tm) 9950 Quad-Core Processor
stepping : 3
cpu MHz : 2606.303
cache size : 512 KB
physical id : 0
siblings : 4
core id : 3
cpu cores : 4
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good pni monitor cx16 lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs
bogomips : 5213.26
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
Code: Select all
gentoob0x insecure # free -m
total used free shared buffers cached
Mem: 7921 5297 2623 0 320 3464
-/+ buffers/cache: 1512 6408
Swap: 980 0 980
Code: Select all
margretetorp ~ # genlop -i gcc
* sys-devel/gcc
Total builds: 1
Global build time: 10 minutes and 55 seconds.
Info about currently installed ebuild:
* sys-devel/gcc-4.3.2-r3
Install date: Fri Aug 14 07:26:03 2009

please compile a kernel with make -j, and tell me how long it takes... I want to droolRaze wrote:2x Intel Xeon CPU E5530 @ 2.40GHz
24GB Ram
3ware 9690SA
2x FUJITSU MBA3147RC ( 136GB, 15K SAS )
Goes like hell![]()
Two of these machines replaced 3 older, Netburst based Xeon. Querytime and systemload reduced by 50%

can you try with -j instead of -j32?JanR wrote:Hi,
dual Xeon 5570 (2x2.93 GHz, turbo up to 3,33 GHz)... compiles Openoffice in 25 minutes and an optimized kernel with -j32 in less than 30 seconds. 48 GB RAM make this machine even nicer...
Greetings,
Jan

Code: Select all
make clean; /usr/bin/time make -j32 > /dev/null
492.45user 37.89system 0:36.61elapsed 1448%CPU (0avgtext+0avgdata 0maxresident)k
Code: Select all
make clean ; /usr/bin/time make -j > /dev/null
496.01user 34.29system 0:37.02elapsed 1432%CPU (0avgtext+0avgdata 0maxresident)k
Code: Select all
make clean ; /usr/bin/time make -j24 > /dev/null
482.53user 37.17system 0:37.04elapsed 1402%CPU (0avgtext+0avgdata 0maxresident)k