Собственно интересует как загрузить оба ядра проца, при сборке приложений с портов?
нашел следущее
>Как оптимизировать сборку ядра и системы в FreeBSD
>Правим /etc/make.conf пользуясь /etc/defaults/make.conf
>CPUTYPE=i686
>CFLAGS=-O2 -pipe
>COPTFLAGS=-O -pipe
>На SMP системах собираем через make -j2 buildworld
проверил, действительно загружены оба ядра.
с портами это не прокатывает, т.е при указании
make -j2 install clean, порт не собирается
>Собственно интересует как загрузить оба ядра проца, при сборке приложений с портов?
>
>нашел следущее
>>Как оптимизировать сборку ядра и системы в FreeBSD
>>Правим /etc/make.conf пользуясь /etc/defaults/make.conf
>>CPUTYPE=i686
>>CFLAGS=-O2 -pipe
>>COPTFLAGS=-O -pipe
>>На SMP системах собираем через make -j2 buildworld
>проверил, действительно загружены оба ядра.
>с портами это не прокатывает, т.е при указании
>make -j2 install clean, порт не собираетсяДолжны собираться. Что пишет?
>Должны собираться. Что пишет?
например пытаюсь собрать xorg
#cd /usr/ports/x11/xorg
#make -j2 install clean
cannot create /usr/ports/x11/xorg/work/.PLIST.flattened: No such file or directory
cannot open /usr/ports/x11/xorg/work/.PLIST.flattened: No such file or directory
cannot open /usr/ports/x11/xorg/work/.PLIST.flattened: No such file or directory
cannot open /usr/ports/x11/xorg/work/.PLIST.flattened: No such file or directory
/usr/bin/awk: can't open file /usr/ports/x11/xorg/work/.PLIST.flattened
source line number 12For more information, and contact details about the security
status of this software, see the following webpage:
http://www.x.org/
This is a meta-port, meaning that it just depends on its subparts of the port.
It won't build and install all the parts until you have typed make install
This port does not ensure things are upgraded; use portupgrade if you want to
upgrade X.Org. If you simply type 'make install' it may use over 2GB to build
all of the subports. You can install the ports singly if you are low on space.
===> Vulnerability check disabled, database not found
# make -j2 install clean
===> Patching for xorg-6.9.0
===> Cleaning for xorg-libraries-6.9.0
и т.д.
===> Cleaning for libiconv-1.9.2_2
===> Cleaning for xorg-6.9.0
вот и все, т.е не собирается вообще ...
если make install clean, то все отлично проходит
попробывал добавить в make.conf
MAKEOPTS="-j2"
результат нулевой
>попробывал добавить в make.conf
>MAKEOPTS="-j2"
>результат нулевой
you can add MAKE_ARGS="-j3" to your /etc/make.conf
Number of parallel processes is usually actual number + 1, but feel free to increase it a bit.Be warned that some ports may not install with this parameter (e.g. kdelibs3 and others). (They usually do compile - i.e. running "make" is fine - but do not install - they fail on running "make install".)
You may want to use the following in your make.conf:
.if ${.CURDIR:M*/ports/x11/kdelibs3} || ${.CURDIR:M*/ports/x11/kdebase3}
MAKE_ARGS="-j1"
.else
MAKE_ARGS="-j3"
.endif