[PATCH v3] Improve the performance of --num-threads -d 31

"Zhou, Wenjian/周文剑" zhouwj-fnst at cn.fujitsu.com
Mon Mar 7 00:43:19 PST 2016


Hi Minoru,

I got two error dumpfiles by running it less than 100 times.

-- 
Thanks
Zhou

On 03/07/2016 04:22 PM, "Zhou, Wenjian/周文?" wrote:
> Hi Minoru,
>
> I have test your patch since you post.
> I can get a failure easily.
> If you run it several times, the dumpfile it produces may be different from the correct one.
>
> +			info->current_pfn = pfn + 1;
> +			pthread_mutex_unlock(&info->current_pfn_mutex);
> +			page_flag_buf->pfn = pfn;
> +			page_flag_buf->ready = FLAG_FILLING;
> The above code should be changed to the following:
>
> +			info->current_pfn = pfn + 1;
> +			page_flag_buf->pfn = pfn;
> +			page_flag_buf->ready = FLAG_FILLING;
> +			pthread_mutex_unlock(&info->current_pfn_mutex);
>
> I haven't run your code with the bug fixed.
> I'll try now.
>
> By the way, with my patch v3, I can't get an error dumpfile until run it by 5000 times.





More information about the kexec mailing list