make optimization

I have an old Compaq NC6000 with Pentium M inside. Because of its age I want to optimize FreeBSD as much as possible. Please tell me how much can give me changing make.conf file (insert CPU) and compile everything using ports? Can inserting CPU model to make.conf cause any problems?
 
rysic said:
Can inserting CPU model to make.conf cause any problems?
It can. But if you want to set anything CPUTYPE is the only thing you should set. Do NOT muck about with CFLAGS unless you fully understand the consequences.
 
SirDice said:
What exactly?

SirDice said:
It can. But if you want to set anything CPUTYPE is the only thing you should set. Do NOT muck about with CFLAGS unless you fully understand the consequences.
Yes I read about that so I'll try to use
Code:
CPUTYPE=pentium-m

Did you try it? Is there a big difference? How can I check if make is using any optimization?
 
rysic said:
Did you try it?
Yes.

Is there big difference?
No.

You need to realize the build system already has the most optimal options. There isn't much to gain unless you start fiddling with things. And even then the speed increase is marginal plus you add the risk of instability.

Best thing to do is to leave things as they are. You can tweak the kernel a bit by removing any debug options and options/devices that aren't used.
 
OK! So I'll use packages. Compilation takes extremely much time and if profit is not bit. About which options do you write in kernel?
 
Please don't follow that. Setting CFLAGS or COPTFLAGS often causes problems, and can prevent actual optimizations used by some ports. Setting CPUTYPE is about the only safe optimization to make in /etc/make.conf.
 
Back
Top