Thank you for the reply, I just produced a minimal example that you can find here, basically a c++ script (write_restart.cc), that call a set of lammps command (in.set.lammps) a given number of times/iterations.
Inside the set of command, a simple succession of “read_restart”, “run”, and “write_restart” is performed. The used virtual memory is printed out, and increases at every iteration.
If the “write_restart” command is removed, then the used memory remain constant at every iteration.
I provided a quick README to show you how I compiled the c++ file and how to execute the c++ program.
I hope this is usable…