How much memory should i have to allocate to the Server container?

hey guys~

I’m struggling to catch-up the latest block.
But The validator makes trouble.
Sometimes It is stopped(or killed, I guess).

I think the cause would be ‘out of memory’.

  • The amount memory the validator uses increases continuously.
  • I allocated 18GB memory & 2GB swap in the Docker Desktop settings(resources-advanced).

Q1. Is it a normal the validator uses large memory(almost 20GB)?
Once catching-up latest block, memory usage will be reduced?
Are there any memory leak bugs in the sawtooth?

Q2. How much memory did you allocated to docker?

Q3. Please share your validator stats.

  1. In my knowledge, 4GB of memory is enough, 8GB is recommended, and I’m successfully mining with 32GB. But I think that 16GB in total system memory will be enough.
    You need to import any snapshots to catch up the latest block. You can’t start sync from the genesis block, because of Hyperledger sawtooth’s bug.
    Memory usage stands still whether your server is in sync or not. Only swap memory will be increasing with time. No memory leakage have been occurred during my mining.

  2. My server’s OS is ubuntu, and it allocates resources automatically.
    Following is my server’s current status.

%Cpu(s): 4.0 us, 0.8 sy, 0.0 ni, 95.0 id, 0.0 wa, 0.0 hi, 0.2 si, 0.0 st
MiB Mem : 32097.6 total, 6329.8 free, 8114.5 used, 17653.3 buff/cache
MiB Swap: 976.0 total, 0.0 free, 976.0 used. 22975.5 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
******* root 20 0 3078.7g 996564 820948 S 129.6 3.0 2:50.24 sawtooth-valida

  1. I can’t get what do you mean by ‘validator stats’.

thanks again.
The ‘validator stats’ means Docker Desktop(windows) resource settings(cpu, memory, swap).
Your share about your mining server resource is enough to me.