OSError: [Errno 12] Cannot allocate memory

There is such an error in the operation, why? Because the memory is not enough? It was still good when I was running a few days ago.

Can you check your disk space? It seems your disk is full.

Did you solve it? I meet this error too.

Did you solve it? I meet this error too.

Could you check your memory usage (RAM and swap)? This error is usually thrown, if your run out of memory.

I know how to avoid this mistake. If the host configuration is not high and the amount of data is large, it is recommended to turn off multithreaded reading, that is, num_workers is set to 0