Memory issue using Islands/Archipelagos #168
Unanswered
davide-roversi
asked this question in
Q&A
Replies: 1 comment 8 replies
-
@davide-roversi what is the memory consumption when you are using the BFE on a single population and how many individuals do you have in the population? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, I am posting this here and also on Gitter (link: https://app.gitter.im/#/room/#pagmo2_Lobby:gitter.im)
I am using Pygmo for the single-objective optimization of a problem of size 8 (i.e. 8 decision variables, and 1 fitness value per-evolution). The fitness function takes about 1~2 seconds to run on single-core. To speed things up, I implemented both multi-processing via bfe and multi-core using the island/archipelago setup.
Bfe works like a charm, significantly speeds up the process, and does not use a lot of RAM. The problem is, for single-objective optimization, it only works on GACO, PSO, PSO_GEN amd CMAES, all of which do not perform well with the problem I am trying to solve. SADE is a far better option, but does not support “set_bfe()”.
So I switched to the coarse-grained archipelago setup. I have 20 CPU cores (virtual + physical), and 32GB RAM at my disposal. Using SADE with a population of just 7 individuals per-island, times 20 islands, ram gets full at 99.9% after a few evolutions. If I increase the islands sizes, I sometimes get out-of-memory errors. Looking at the resource monitor as the optimization progresses, I see that the RAM usage continuously rises, and never gets reset throughout the evolutions.
My questions are two:
Other info:
Beta Was this translation helpful? Give feedback.
All reactions