The host specs are irrelevant. How much resource have you allocated for the guest? i.e. CPU/core, RAM, and HDD or SSD?Under virtualbox client with host as below:
powercfg.cpl SYSDM.CPL Disable-ComputerRestore -Drive "C:\" SystemPropertiesAdvanced.exe dev.cpu.0.freq to the max or turbo. kern.hz in the /boot/loader.conf:kern.hz=100
Thanks for the comprehensive response.Yes. It is normal.
P.S.
...........
Hyper-V is the best option, esp. for Windows/NT guests. But I had a problem using FreeBSD on the Hyper-V.Since you're running Windows 10 Pro I can highly recommend Hyper-V (included) over Virtualbox.
Hyper-V is the best option, esp. for Windows/NT guests. But I had a problem using FreeBSD on the Hyper-V.
emulators/open-vm-tools didn't work. The port is necessary for changing the resolution (GUI). I'm not aware of current status.
When I was comparing vmware and vbox, I noticed that vmware was using less resources -- both RAM and CPU.
It wasn't a precise comparison though. Personally, I prefer to use vmware player. But it (the free version) doesn't have snapshot feature.
Yes. If you don't want to use GUI/Desktop, Hyper-V is better -- for SSH-ing, etc.Is that to run in desktop mode? I only ssh to the Freebsd guest, rarely work directly on the guest.
It works great for CLIIs that to run in desktop mode? I only ssh to the Freebsd guest, rarely work directly on the guest.
# List of packages that will always be allowed to use MAKE_JOBS
# regardless of ALLOW_MAKE_JOBS. This is useful for allowing ports
# which holdup the rest of the queue to build more quickly.
ALLOW_MAKE_JOBS_PACKAGES="pkg llvm* gcc* rust firefox node* mame"
Unless you're really memory constrained you can just set like -j2 or -j3 something globallyYou also want to change this setting in poudriere.conf:
That way the LLVM builds will use more than one core which will greatly reduce their build times. I've added a couple of other ports too, as they were regularly holding up the queue.Code:# List of packages that will always be allowed to use MAKE_JOBS # regardless of ALLOW_MAKE_JOBS. This is useful for allowing ports # which holdup the rest of the queue to build more quickly. ALLOW_MAKE_JOBS_PACKAGES="pkg llvm* gcc* rust firefox node* mame"
You could set this:Unless you're really memory constrained you can just set like -j2 or -j3 something globally
# By default MAKE_JOBS is disabled to allow only one process per cpu
# Use the following to allow it anyway
# ALLOW_MAKE_JOBS=yes
You also want to change this setting in poudriere.conf:
That way the LLVM builds will use more than one core which will greatly reduce their build times. I've added a couple of other ports too, as they were regularly holding up the queue.Code:# List of packages that will always be allowed to use MAKE_JOBS # regardless of ALLOW_MAKE_JOBS. This is useful for allowing ports # which holdup the rest of the queue to build more quickly. ALLOW_MAKE_JOBS_PACKAGES="pkg llvm* gcc* rust firefox node* mame"
How many cores does the machine have? By default it will spawn a number of jobs depending on the core count.I did that and still only one builder is compiling.
# parallel build support.
#
# By default poudriere uses hw.ncpu to determine the number of builders.
# You can override this default by changing PARALLEL_JOBS here, or
# by specifying the -J flag to bulk/testport.
#
# Example to define PARALLEL_JOBS to one single job
# PARALLEL_JOBS=1
# How many jobs should be used for preparing the build? These tend to
# be more IO bound and may be worth tweaking. Default: PARALLEL_JOBS * 1.25
# PREPARE_PARALLEL_JOBS=1
How many cores does the machine have? By default it will spawn a number of jobs depending on the core count.
poudriere bulk -b Only available on ports-mgmt/poudriere-devel at the moment. Not available yet on ports-mgmt/poudriere. Unless this has recently been updated, it wasn't a while ago.poudriere also has ability to use precompiled binaries, look forpoudriere bulk -b
How many cores does the machine have? By default it will spawn a number of jobs depending on the core count.
Code:# parallel build support. # # By default poudriere uses hw.ncpu to determine the number of builders. # You can override this default by changing PARALLEL_JOBS here, or # by specifying the -J flag to bulk/testport. # # Example to define PARALLEL_JOBS to one single job # PARALLEL_JOBS=1 # How many jobs should be used for preparing the build? These tend to # be more IO bound and may be worth tweaking. Default: PARALLEL_JOBS * 1.25 # PREPARE_PARALLEL_JOBS=1
Another thing that can happen is that this port is a dependency for a bunch of other ports. Those will all need to wait until that dependency is built. If you regularly have a port that's holding up the queue you probably want to add it to ALLOW_MAKE_JOBS_PACKAGES so it gets built as fast as possible.
Setting ccache(1) (CCACHE_DIR) may help too.
That's about 12 times faster than my machine! congratulation.compile the LLVM11 in just over an hour
-jN flag only works if ALL deps have been satisfied for a given port. Another comment from the same thread also mentions that the -jN flag (where N=4) for LLVM 10 cuts the compile time down from 2.5 hours to 50 minutes, a 3-fold improvement. My processor is a Ryzen 5 1400 3.4 Ghz. Would be nice if I could link to specific profile posts...[130i386-default] [2021-11-05_18h19m44s] [parallel_build:] Queued: 108 Built: 103 Failed: 0 Skipped: 0 Ignored: 0 Tobuild: 5 Time: 05:52:41
[04]: devel/llvm12 | llvm12-12.0.1_6 build (05:04:48 / 05:17:12)
[05:53:15] Logs: /usr/local/poudriere/data/logs/bulk/130i386-default/2021-11-05_18h19m44s
CPU: 25.4% user, 0.0% nice, 2.4% system, 0.7% interrupt, 71.5% idle