Slow Operating Environment Due to Too Large Image Size Set in dynamic_image_size and Too Many Batch Size Choices Set in dynamic_batch_size
Symptom
During dynamic-shape model conversion, the running of host-side operating environment is slow and other operations cannot be performed, requiring Ascend processor restart. Log message is printed, as shown in Figure 3-12.
Cause Analysis
During dynamic-shape model conversion, a large amount of memory is used for operator building. The swap space is used when host-side memory is full, causing fully written I/O and slow operating environment on the host.
Solution
In dynamic shape model conversion scenarios, especially when dynamic_image_size is set to a large value, or dynamic_batch_size provides too many batch size choices, you are advised to run the swapoff -a command to disable the use of swap space as memory to prevent slow operating environment.