CPU usage abnormal
Posted: 2012-02-22T00:53:51-07:00
Hi, all
Environment: centos6.0, 16 cores, 8G mem
My lab want to use magick++ to sample local images(the number of images is about 70,000). i write an auto-processing program using c to sample the images. when run it by single thread, type top in command line, found that CPU usage is about 1400-1500%. when run it by multi-thread, CPU usage is however about 150-300%. After reading some articales on the forum, i re-install from the source configured with --disable-openmp, under single thread, CPU usage is about 90-200%, multi-thread is about 200-300%. Obviously time cost increase 3 times.
The work is done, but i want to know why. Or i can control it's CPU usage. Or i can use the IM effectively. it's just personal interests.
thanks all.
Environment: centos6.0, 16 cores, 8G mem
My lab want to use magick++ to sample local images(the number of images is about 70,000). i write an auto-processing program using c to sample the images. when run it by single thread, type top in command line, found that CPU usage is about 1400-1500%. when run it by multi-thread, CPU usage is however about 150-300%. After reading some articales on the forum, i re-install from the source configured with --disable-openmp, under single thread, CPU usage is about 90-200%, multi-thread is about 200-300%. Obviously time cost increase 3 times.
The work is done, but i want to know why. Or i can control it's CPU usage. Or i can use the IM effectively. it's just personal interests.
thanks all.