Solved What should I type in make.conf?

Hi there!

I have an AMD Opteron 6320 processor:
Code:
# cat /var/run/dmesg.boot | grep -m 1 -A 9 CPU
CPU: AMD Opteron(tm) Processor 6320  (2800.05-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0x600f20  Family = 0x15  Model = 0x2  Stepping = 0
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x3e98320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C>
  AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
  AMD Features2=0x1ebbfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,TCE,NodeId,TBM,Topology,PCXC,PNXC>
  Standard Extended Features=0x8<BMI1>
  TSC: P-state invariant, performance statistics
real memory  = 17179869184 (16384 MB)
avail memory = 16583196672 (15814 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <112513 APIC1100>
FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs
FreeBSD/SMP: 2 package(s) x 8 core(s)

What should I put in /etc/make.conf? Currently I have only one line:
Code:
MAKE_JOBS_NUMBER=16

I know about CPUTYPE and CFLAGS, but the problem is that I don't know, does it work with the clang compiler. If it works - what should I choose, amdfam10, opteron-sse3, athlon64-sse3, k8-sse3, opteron, athlon64, k8, core2, nocona?
 
It's best not to set anything unless you truly understand what they do and what the consequences are.

The system is smart enough to pick the correct settings automatically.
 
Well first thing to ask yourself is why do you think you'd need to add something in there? FreeBSD does a lot of automated optimization itself, although there's always some room for tweaking of course. But unless you experience a noticeable lag during builds I personally wouldn't mess with the job amounts.

To start things off; a very good source of information on options which you could safely use is the make.conf(5) manual page. For example; you could consider specifying the CPU type. In your case a type of opteron sounds reasonable.

But even so; don't use options "just because".
 
Code:
CPUTYPE?=native
is the safest option. 'Over-optimization' (the Linux compile flag fetishism) is almost always asking for problems, which are usually very hard to diagnose.
 
Thank you a lot!

I think it's better to leave all my already compiled ports (without any additional options) as is and use CPUTYPE only with critical programs like ffmpeg and/or x264.
 
Back
Top