Subject: Anyone tried maximally optimizing netbsd kernel?
To: None <netbsd-help@netbsd.org>
From: Sung N. Cho <sucho2@vt.edu>
List: netbsd-help
Date: 03/09/2002 01:38:27
Hi,
I read this article from LinuxToday,
http://linuxtoday.com/news_story.php3?ltsn=2002-03-08-010-20-PS, and
recompiled my NetBSD kernel with maximal optimization allowed by GCC and
it seem to compile without a glitch. In fact, the system seems to be
more responsive and faster! Maybe my imagination. Modification I made
was not including additional options that the author had added which
were already contained in -O9. Let the GCC enable/disable allowed
options, that's what -O9 does anyways.
Here's my /etc/mk.conf file:
COPTS+= -O9 -mcpu=i686 -march=i686
CXXFLAGS+= -O9 -mcpu=i686 -march=i686
CFLAGS+= -O9 -mcpu=i686 -march=i686
Anyone noticing any difference in performance?
Yours sincerely,
Sung N. Cho,
Saturday, Mar. 09, 2002.