Re: [PATCH] crypto: run qcrypto_pbkdf2_count_iters in a new thread

2024-08-30 Thread Daniel P . Berrangé
On Tue, Aug 13, 2024 at 10:19:28AM -0300, Tiago Pasqualini wrote: > CPU time accounting in the kernel has been demonstrated to have a > sawtooth pattern[1][2]. This can cause the getrusage system call to > not be as accurate as we are expecting, which can cause this calculation > to stall. > > The

Re: [PATCH] crypto: run qcrypto_pbkdf2_count_iters in a new thread

2024-08-23 Thread Tiago Pasqualini
Hi folks, Sorry for the ping, but any thoughts on this? I mainly implemented what was discussed in the upstream bug[0]. Let me know what you think or any suggestions for this. Thank you, Tiago [0] https://gitlab.com/qemu-project/qemu/-/issues/2398 On Tue, Aug 13, 2024 at 10:19 AM Tiago Pasqual

[PATCH] crypto: run qcrypto_pbkdf2_count_iters in a new thread

2024-08-13 Thread Tiago Pasqualini
CPU time accounting in the kernel has been demonstrated to have a sawtooth pattern[1][2]. This can cause the getrusage system call to not be as accurate as we are expecting, which can cause this calculation to stall. The kernel discussions shows that this inaccuracy happens when CPU time gets big