Re: [petsc-users] PETSc/SLEPc: Memory consumption, particularly during solver initialization/solve

2018-10-10 Thread Matthew Knepley
On Wed, Oct 10, 2018 at 3:38 AM Ale Foggia wrote: > Jed, Jose and Matthew, > I've finally managed to make massif (it gives pretty detailed information, > I like it) work in the correct way in the cluster and I'm able to track > down the memory consumption, and what's more important (for me), I

Re: [petsc-users] PETSc/SLEPc: Memory consumption, particularly during solver initialization/solve

2018-10-10 Thread Ale Foggia
Jed, Jose and Matthew, I've finally managed to make massif (it gives pretty detailed information, I like it) work in the correct way in the cluster and I'm able to track down the memory consumption, and what's more important (for me), I think now I'm able to make a more accurate prediction of the

Re: [petsc-users] PETSc/SLEPc: Memory consumption, particularly during solver initialization/solve

2018-10-05 Thread Jose E. Roman
> El 4 oct 2018, a las 19:54, Ale Foggia escribió: > > Jose: > - By each step I mean each of the step of the the program in order to > diagonalize the matrix. For me, those are: creation of basis, preallocation > of matrix, setting values of matrix, initializing solver, >

Re: [petsc-users] PETSc/SLEPc: Memory consumption, particularly during solver initialization/solve

2018-10-04 Thread Jed Brown
Matthew Knepley writes: > On Thu, Oct 4, 2018 at 1:54 PM Ale Foggia wrote: > >> Thank you both for your answers :) >> >> Matt: >> -Yes, sorry I forgot to tell you that, but I've also called >> PetscMemorySetGetMaximumUsage() right after initializing SLEPc. Also I've >> seen a strange behaviour:

Re: [petsc-users] PETSc/SLEPc: Memory consumption, particularly during solver initialization/solve

2018-10-04 Thread Matthew Knepley
On Thu, Oct 4, 2018 at 1:54 PM Ale Foggia wrote: > Thank you both for your answers :) > > Matt: > -Yes, sorry I forgot to tell you that, but I've also called > PetscMemorySetGetMaximumUsage() right after initializing SLEPc. Also I've > seen a strange behaviour: if I ran the same code in my

Re: [petsc-users] PETSc/SLEPc: Memory consumption, particularly during solver initialization/solve

2018-10-04 Thread Ale Foggia
Thank you both for your answers :) Matt: -Yes, sorry I forgot to tell you that, but I've also called PetscMemorySetGetMaximumUsage() right after initializing SLEPc. Also I've seen a strange behaviour: if I ran the same code in my computer and in the cluster *without* the command line option

Re: [petsc-users] PETSc/SLEPc: Memory consumption, particularly during solver initialization/solve

2018-10-04 Thread Jose E. Roman
Regarding the SLEPc part: - What do you mean by "each step"? Are you calling EPSSolve() several times? - Yes, the BV object is generally what takes most of the memory. It is allocated at the beginning of EPSSolve(). Depending on the solver/options, other memory may be allocated as well. - You

Re: [petsc-users] PETSc/SLEPc: Memory consumption, particularly during solver initialization/solve

2018-10-04 Thread Matthew Knepley
On Thu, Oct 4, 2018 at 4:43 AM Ale Foggia wrote: > Hello all, > > I'm using SLEPc 3.9.2 (and PETSc 3.9.3) to get the EPS_SMALLEST_REAL of a > matrix with the following characteristics: > > * type: real, Hermitian, sparse > * linear size: 2333606220 > * distributed in 2048 processes (64 nodes, 32

[petsc-users] PETSc/SLEPc: Memory consumption, particularly during solver initialization/solve

2018-10-04 Thread Ale Foggia
Hello all, I'm using SLEPc 3.9.2 (and PETSc 3.9.3) to get the EPS_SMALLEST_REAL of a matrix with the following characteristics: * type: real, Hermitian, sparse * linear size: 2333606220 * distributed in 2048 processes (64 nodes, 32 procs per node) My code first preallocates the necessary memory